retrieving extracted L1/L2 data requested through the L1/L2 data ordering system

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
monger
Posts: 26
Joined: Wed May 26, 2010 4:19 pm America/New_York
Answers: 0

retrieving extracted L1/L2 data requested through the L1/L2 data ordering system

by monger » Tue Jan 21, 2020 9:23 am America/New_York

Hi -- Sorry if this is a repeat message, but I think my original post never made it to you (my fault).  I am seeking advice on retrieving data ordered through the L1/L2 data ordering system.  I think I have my secure file transfer credentials set properly.  I can use both wget and curl to retrieve data (single file) from the Direct Data Access system using information you give on your new transfer methods page. However, I am having trouble getting extracted data that was requested through the L1/L2 data ordering system. Could you give me some advice on how to retrieve a single file contained in the manifest that I receive after ordering data through the L1/L2 data ordering system? Below are two examples of data I am trying to retrieve with wget or curl.  BTW-- I can download the files by pasting a single line below into a web browser (Safari).  I am using wget version 1.20.3.  Thanks for any help here! :)

https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/A2012240172500.L2_LAC_OC.x.nc?h=ocdist205&p=/data1/d090d0a04422e150/requested_files
https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/A2012243175500.L2_LAC_OC.x.nc?h=ocdist205&p=/data1/d090d0a04422e150/requested_files

Bruce

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1470
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

retrieving extracted L1/L2 data requested through the L1/L2 data ordering system

by OB.DAAC - SeanBailey » Tue Jan 21, 2020 6:46 pm America/New_York

Bruce,
Try:

wget --content-disposition --auth-no-challenge=on --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies "https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/A2012240172500.L2_LAC_OC.x.nc?h=ocdist205&p=/data1/d090d0a04422e150/requested_files"
or
curl -o A2012240172500.L2_LAC_OC.x.nc -b ~/.urs_cookies -c ~/.urs_cookies -L -n  "https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/A2012240172500.L2_LAC_OC.x.nc?h=ocdist205&p=/data1/d090d0a04422e150/requested_files"

Sean

monger
Posts: 26
Joined: Wed May 26, 2010 4:19 pm America/New_York
Answers: 0

retrieving extracted L1/L2 data requested through the L1/L2 data ordering system

by monger » Thu Jan 23, 2020 9:42 am America/New_York

Hi Sean -- Thanks VERY much for your suggestion. Things are now working.  I had previously used the wget and curl approach you suggested, but did so without the double quotes around the //filename.  Adding the double quotes did the trick!!!!  --Bruce

Post Reply