R2022 processing

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
mkahru
Posts: 22
Joined: Wed Apr 27, 2005 1:20 pm America/New_York
Answers: 0

R2022 processing

by mkahru » Sun Oct 16, 2022 3:56 am America/New_York

Hi,
SeaWiFS is declared finished with R2022 but I cannot get any SeaWiFS MLAC data, only GAC.
Any advise? Thanks.

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1381
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

Re: R2022 processing

by OB.DAAC - SeanBailey » Mon Oct 17, 2022 10:59 am America/New_York

Mati,

I'm assuming you're not finding the data on the L1/2 browser...the reason is complicated, but boils down to the fact that the L1 filenames were forced to have a start time that matched the start time for the GAC file of the orbit containing the LAC data. With our new naming convention, we're ensuring that the start time matches the start time of the first valid scan in the file, but we didn't rename the L1 files...well that means the times are most likely never going to match and the browser expects that they do, so the L2 file don't get "found" and associated with the parent L1.

We're working on a new browser that doesn't suffer from this issue, but until it is ready, you can either use the Earthdata Search tool (https://search.earthdata.nasa.gov) or the CMR API to find the files you seek.

Here is an example of a call to the CMR API that will retrieve the MLAC files for 1997 that cover the southern California coast:

Code: Select all

curl -d "page_size=200&sort_key=short_name&sort_key=start_date&short_name=SeaWiFS_L2_MLAC_OC&provider=OB_DAAC&temporal=1997-09-04,1998-01-01&bounding_box=-130,30,-115,35" https://cmr.earthdata.nasa.gov/search/granules.csv


Regards,
Sean

mkahru
Posts: 22
Joined: Wed Apr 27, 2005 1:20 pm America/New_York
Answers: 0

Re: R2022 processing

by mkahru » Tue Oct 18, 2022 3:26 am America/New_York

Hi Sean,
Thanks for a quick reply. I issued the curl command you suggested (in Windows command window) and got some list on my screen. How do I get to download these files? Sorry, that's probably a stupid question...
Mati

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1381
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

Re: R2022 processing

by OB.DAAC - SeanBailey » Tue Oct 18, 2022 10:51 am America/New_York

Mati,

Not a silly question at all. The second element of the returned CSV is the filename, while the fifth element is the URL to download the file. So, you could do something as simple as this:

Code: Select all

$ curl --silent -d "page_size=2000&sort_key=short_name&sort_key=start_date&short_name=SeaWiFS_L2_MLAC_OC&provider=OB_DAAC&temporal=1997-09-04,1998-01-01&bounding_box=-130,30,-115,35" https://cmr.earthdata.nasa.gov/search/granules.csv | awk -F',' '{print $5}' | grep getfile|xargs -n 1 curl -LJO -n -c ~/.urs_cookies -b ~/.urs_cookies
Or, save the list of files to a text file that you later pass to the obdaac_download script (distributed with SeaDAS or obtained from https://oceancolor.gsfc.nasa.gov/data/download_methods/)

Code: Select all

$ curl --silent -d "page_size=2000&sort_key=short_name&sort_key=start_date&short_name=SeaWiFS_L2_MLAC_OC&provider=OB_DAAC&temporal=1997-09-04,1998-01-01&bounding_box=-130,30,-115,35" https://cmr.earthdata.nasa.gov/search/granules.csv | awk -F',' '{print $2}' |grep -v Producer > filelist.txt

$ obdaac_download -v --filelist=filelist.txt
Sean

Post Reply