Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle older style eos s2 l1 #196

Open
dunkgray opened this issue Aug 2, 2021 · 0 comments
Open

Can't handle older style eos s2 l1 #196

dunkgray opened this issue Aug 2, 2021 · 0 comments

Comments

@dunkgray
Copy link
Contributor

dunkgray commented Aug 2, 2021

Example
eo3-prepare sentinel-l1 /g/data/fj7/Copernicus/Sentinel-2/MSI/L1C/2016/2016-11/50S155E-55S160E/S2A_OPER_PRD_MSIL1C_PDMC_20161130T025434_R058_V20161127T231132_20161127T231132.zip --output-base .

Result
/g/data/v10/private/modules/ard-pipeline/devv2.1/lib/python3.6/site-packages/eodatasets3/assemble.py:322: UserWarning: Closing assembler without finishing. Either call done() or cancel() before closing
"Closing assembler without finishing. "
Traceback (most recent call last):
File "/g/data/v10/private/modules/ard-pipeline/devv2.1/bin/eo3-prepare", line 8, in
sys.exit(run())
File "/g/data/v10/public/modules/dea-env/20200612/lib/python3.6/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/g/data/v10/public/modules/dea-env/20200612/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/g/data/v10/public/modules/dea-env/20200612/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/g/data/v10/public/modules/dea-env/20200612/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/g/data/v10/public/modules/dea-env/20200612/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/g/data/v10/private/modules/ard-pipeline/devv2.1/lib/python3.6/site-packages/eodatasets3/prepare/sentinel_l1c_prepare.py", line 376, in main
uuid, path = prepare_and_write(ds_path, output_yaml, producer)
File "/g/data/v10/private/modules/ard-pipeline/devv2.1/lib/python3.6/site-packages/eodatasets3/prepare/sentinel_l1c_prepare.py", line 185, in prepare_and_write
jp2_offsets = _extract_esa_fields(ds_path, p)
File "/g/data/v10/private/modules/ard-pipeline/devv2.1/lib/python3.6/site-packages/eodatasets3/prepare/sentinel_l1c_prepare.py", line 271, in _extract_esa_fields
datastrip_md = one("MTD_DS.xml")
File "/g/data/v10/private/modules/ard-pipeline/devv2.1/lib/python3.6/site-packages/eodatasets3/prepare/sentinel_l1c_prepare.py", line 267, in one
f"Expected exactly one file called {suffix} in {dataset}, found {len(matches)}"
ValueError: Expected exactly one file called MTD_DS.xml in /g/data/fj7/Copernicus/Sentinel-2/MSI/L1C/2016/2016-11/50S155E-55S160E/S2A_OPER_PRD_MSIL1C_PDMC_20161130T025434_R058_V20161127T231132_20161127T231132.zip, found 0

from
https://www.usgs.gov/centers/eros/science/usgs-eros-archive-sentinel-2?qt-science_center_objects=0#qt-science_center_objects

Data Products
The USGS Earth Resources Observation and Science (EROS) Center repackages Sentinel-2 products on a per tile basis while preserving the Sentinel Standard Archive Format for Europe (SAFE) format specification, which allows for the distribution of a user-friendly file size that is approximately 650 MB. Each Level-1C product is a 100 km x 100 km tile with a UTM/WGS84 (Universal Transverse Mercator/World Geodetic System 1984) projection and datum. The Sentinel-2 tiling grid is referenced to the U.S. Military Grid Reference System (MGRS). Tiles can be fully or partially covered by image data. Partially covered tiles correspond to those at the edge of the swath. The download package from the USGS includes one file for each of the 13 spectral bands plus metadata. Update: Data acquired after December 5, 2016 are distributed from ESA in a single tile basis with a shorter naming convention and include a full-resolution True-Colour Image. Previously offered Sentinel-2 data in the EROS archive will be replaced as data with the True-Colour Image become available from ESA. Users may see temporary scene duplication in search results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant