Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic Products and Algorithms / Satellite Data Access / SeaWiFS authorization fail with wget (locked) (979 hits)
By daurin Date 2012-05-22 15:39
As part of a scripted imagery acquisition program, I am pulling SeaWiFS data < 5 years old and therefore need user authorization.
The script uses a call to wget and fails the authorization.  Here is an example on command line of what happens:

$ echo S2007136181200.L2_MLAC_OC | wget -B http://oceancolor.gsfc.nasa.gov/restrict/browse.pl --user=$usr --password=$pwd --content-disposition -i -
--2012-05-22 10:53:35--  http://oceancolor.gsfc.nasa.gov/restrict/S2007136181200.L2_MLAC_OC
Resolving oceancolor.gsfc.nasa.gov... 169.154.128.44
Connecting to oceancolor.gsfc.nasa.gov|169.154.128.44|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to oceancolor.gsfc.nasa.gov|169.154.128.44|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-05-22 10:53:35 ERROR 404: Not Found.

What am I missing here?
Dirk
By @norman Date 2012-05-22 16:00
Hi Dirk,

I believe what you want is this.

echo S2007136181200.L2_MLAC_OC | wget -B http://oceandata.sci.gsfc.nasa.gov/cgi/getfile/ --user=$usr --password=$pwd --content-disposition -i -

Norman
By daurin Date 2012-05-22 16:05
Solved.  Thanks Norman.
Previous Next Up Topic Products and Algorithms / Satellite Data Access / SeaWiFS authorization fail with wget (locked) (979 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo