OLCI Data Download

Please enter here to ask a question about any NASA Science related topics!
Post Reply
avmehta
Posts: 120
Joined: Mon Feb 03, 2020 10:27 am America/New_York

OLCI Data Download

by avmehta » Sat May 30, 2020 10:34 am America/New_York

Hello,
  I am trying to download OLCI data from OC L1&L2 Browser. I have selected dates/geographical region and get 506 swaths. I chose 'ORDER DATA' and also selected 'Do extract my order for me' and picked Level-1 data. I submitted the order and saved the urls in a file. Should I expect any email confirmation about theorder?

I used the following wget command (I have a .netrc file):
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies --content-disposition -i geturl19.txt

I get the following error  - any suggestion?
--2020-05-30 09:43:33--  https://oceandata.sci.gsfc.nasa.gov/sentinel/getfile/S3A_OL_1_EFR____20191028T150020_20191028T150320_20191029T190924_0179_051_025_2340_LN1_O_NT_002.zip
Connecting to oceandata.sci.gsfc.nasa.gov|xx.xxx.xx.xx|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/authorize?response_type=code&client_id=onClX3wZwggzbKMGnT2LFg&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fsentinel%2Fgetfile%2Frestrict&required_scope=study_area,country [following]
--2020-05-30 09:43:33--  https://urs.earthdata.nasa.gov/oauth/authorize?response_type=code&client_id=onClX3wZwggzbKMGnT2LFg&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fsentinel%2Fgetfile%2Frestrict&required_scope=study_area,country
Connecting to urs.earthdata.nasa.gov|xx.xxx.xx.xx|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2020-05-30 09:43:33 ERROR 400: Bad Request.

Thanks.
Amita

Tags:

OB WebDev - dana.r.wilson
Subject Matter Expert
Subject Matter Expert
Posts: 45
Joined: Mon Apr 20, 2020 8:04 am America/New_York

OLCI Data Download

by OB WebDev - dana.r.wilson » Tue Jun 02, 2020 2:54 pm America/New_York

Amita
We had some server issues this morning could you try the files again.

avmehta
Posts: 120
Joined: Mon Feb 03, 2020 10:27 am America/New_York

OLCI Data Download

by avmehta » Tue Jun 02, 2020 3:06 pm America/New_York

Thanks Dana.
I tried again and I do get the SA3 zip files (which are supposed to be directories). But when I try to unzip the files I get the following message (I have posted this also):

Archive:  S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip or
        S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip.zip, and cannot find S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip.ZIP, period.

Thanks for your help.
Amita

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

OLCI Data Download

by OB.DAAC - SeanBailey » Tue Jun 02, 2020 3:21 pm America/New_York

Have you checked to make sure it's a zip file?  On Linux, use the file command, e.g.: 
file S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip

avmehta
Posts: 120
Joined: Mon Feb 03, 2020 10:27 am America/New_York

OLCI Data Download

by avmehta » Tue Jun 02, 2020 4:00 pm America/New_York

The url list I get when I order data has flies with .zip.
  I have used L-1 S3A data before and they do come as zipped directories.
Thanks.
Amita

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

OLCI Data Download

by OB.DAAC - SeanBailey » Tue Jun 02, 2020 4:11 pm America/New_York

Yes, but is the file you are having issues with REALLY a zip file?  Sometimes transfer issues will result in not getting what you expect.  Just because the file has the .zip extension doesn't mean it's really a zip file (or a complete zip file).  The error you are seeing when unzipping the file suggests it's either not complete (transfer issue or other corruption) or not a zip file at all.

Sean

avmehta
Posts: 120
Joined: Mon Feb 03, 2020 10:27 am America/New_York

OLCI Data Download

by avmehta » Tue Jun 02, 2020 5:05 pm America/New_York

Yes, that must be so. I checked and it does not say it is a zip file! I get the following:
S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip: HTML document, ASCII text, with very long lines
I also looked at the direct access option - for example this link is for 31 July 2019: https://oceandata.sci.gsfc.nasa.gov/S3AOLCI/L1/2019/212/
I found the above file and I can click on it to download complete zipped directory! I think I will have to somehow get to these directories from the list of url I got from the L1&L2 Browser data order!
Thanks.
Amita

gnwiii
Posts: 575
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

OLCI Data Download

by gnwiii » Tue Jun 02, 2020 7:24 pm America/New_York

You can learn more about the reason for:
S3A_OL_1_EFR____20190731T150748_20190731T151048_20190801T182818_0179_047_296_2340_LN1_O_NT_002.zip: HTML document, ASCII text, with very long lines
by renaming the file to replace ".zip" with ".html" and viewing it in a browser.   I (too often) get "with very long lines" for the EOSDIS login page when wget misbehaves.   Sean posted a python download script that is more reliable for me than wget.

Post Reply