Page 2 of 2

CRON Job and changing file name

Posted: Sun Feb 16, 2020 5:45 pm America/New_York
by ermill99
Ok, here is what I am doing.

1) The downloaded files (14 total) are used on an HTML webpage as map layers. 7 for chlorophyll layers and 7 for sea surface temperature layers based on US coastal regions.
2) These satellite files change daily.
3) I run CRON job to determine the daily new file names via email.
3) I then physically edit the new file name into another CRON job. 
4) I then run a daily wGET/ CRON job to download the new files to my server where they are renamed to the referenced file name in the HTML.

If I can predict the file name, I can set up the CRON jobs to run automatically without the need to check my email and then redo do the file name in the WGET command.

CRON Job and changing file name

Posted: Sun Feb 16, 2020 10:02 pm America/New_York
by OB ODPS - jgwilding
How familiar are you with the binning and mapping processes we offer?  It seems like you could bin the L2 files and then generate a single daily map product for each of your regions. 

The L2 files vary enough by time that trying to predict them would be difficult.  If you downloaded whatever files were indicated by the file_search API call, you could determine the day they belong to, and from there run the binning and mapping processes on the regional groups.

john

CRON Job and changing file name

Posted: Sun Feb 16, 2020 10:13 pm America/New_York
by ermill99
Thanks John, I am not familiar at all with binning, but I'll do some research on it. 

At this point, I'm open to anything.