CRON Job and changing file name

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
ermill99
Posts: 19
Joined: Tue Feb 11, 2020 10:00 am America/New_York

CRON Job and changing file name

by ermill99 » Sun Feb 16, 2020 5:45 pm America/New_York

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.

Tags:

OB ODPS - jgwilding
Subject Matter Expert
Subject Matter Expert
Posts: 112
Joined: Fri Feb 19, 2021 1:09 pm America/New_York

CRON Job and changing file name

by OB ODPS - jgwilding » Sun Feb 16, 2020 10:02 pm America/New_York

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

ermill99
Posts: 19
Joined: Tue Feb 11, 2020 10:00 am America/New_York

CRON Job and changing file name

by ermill99 » Sun Feb 16, 2020 10:13 pm America/New_York

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.

Post Reply