[gdal-dev] Reading sentinel 2 L2A datasets
Róbert Špir
spir.robert at gmail.com
Thu Nov 2 23:55:57 PDT 2017
Hi all,
I'm using GDAL to process sentinel-2 data (in c++). I have no problem
processing S2B and S2A L1C datasets, I can open them, read the subdatasets
and process the data.
But when I try to open L2A dataset, it looks like there are no subdatasets
and I cannot access the bands.
I have attached gdalinfo output from this dataset and the dataset xml. Is
there any way how I can access the subdatasets or this type of dataset is
not currently supported in GDAL?
Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171103/f5cf502e/attachment-0001.html>
-------------- next part --------------
Driver: SENTINEL2/Sentinel 2
Files: /vsizip//data/tmp/soft/S2A_MSIL2A_20171015T095031_N0205_R079_T33UXP_20171015T095357.zip/S2A_MSIL2A_20171015T095031_N0205_R079_T33UXP_20171015T095357.SAFE/MTD_MSIL2A.xml
Size is 512, 512
Coordinate System is `'
Metadata:
AOT_RETRIEVAL_ACCURACY=0.0
CLOUD_COVERAGE_ASSESSMENT=0.1984
CLOUD_COVERAGE_PERCENTAGE=0.518579
CLOUD_SHADOW_PERCENTAGE=0.094366
DARK_FEATURES_PERCENTAGE=1.190103
DATATAKE_1_DATATAKE_SENSING_START=2017-10-15T09:50:31.026Z
DATATAKE_1_DATATAKE_TYPE=INS-NOBS
DATATAKE_1_ID=GS2A_20171015T095031_012088_N02.05
DATATAKE_1_SENSING_ORBIT_DIRECTION=DESCENDING
DATATAKE_1_SENSING_ORBIT_NUMBER=79
DATATAKE_1_SPACECRAFT_NAME=Sentinel-2A
DEGRADED_ANC_DATA_PERCENTAGE=0
DEGRADED_MSI_DATA_PERCENTAGE=0
FOOTPRINT=POLYGON((16.360279246283664 48.74498411169783, 17.852438708473066 48.71769475117851, 17.798094715302927 47.73104447774509, 16.3343313489668 47.75740973734738, 16.360279246283664 48.74498411169783))
FORMAT_CORRECTNESS_FLAG=PASSED
GENERAL_QUALITY_FLAG=PASSED
GENERATION_TIME=2017-10-19T08:52:27Z
GEOMETRIC_QUALITY_FLAG=PASSED
HIGH_PROBA_CLOUDS_PERCENTAGE=0.105969
L1C_TOA_QUANTIFICATION_VALUE=10000
L1C_TOA_QUANTIFICATION_VALUE_UNIT=none
L2A_AOT_QUANTIFICATION_VALUE=1000.0
L2A_AOT_QUANTIFICATION_VALUE_UNIT=none
L2A_BOA_QUANTIFICATION_VALUE=10000
L2A_BOA_QUANTIFICATION_VALUE_UNIT=none
L2A_WVP_QUANTIFICATION_VALUE=1000.0
L2A_WVP_QUANTIFICATION_VALUE_UNIT=cm
MEDIUM_PROBA_CLOUDS_PERCENTAGE=0.406588
NODATA_PIXEL_PERCENTAGE=0.000100
NOT_VEGETATED_PERCENTAGE=40.847874
PREVIEW_GEO_INFO=Not applicable
PREVIEW_IMAGE_URL=Not applicable
PROCESSING_BASELINE=02.05
PROCESSING_LEVEL=Level-2Ap
PRODUCT_START_TIME=2017-10-15T09:50:31.026Z
PRODUCT_STOP_TIME=2017-10-15T09:50:31.026Z
PRODUCT_TYPE=S2MSI2Ap
PRODUCT_URI_1C=S2A_MSIL1C_20171015T095031_N0205_R079_T33UXP_20171015T095357.SAFE
PRODUCT_URI_2A=S2A_MSIL2A_20171015T095031_N0205_R079_T33UXP_20171015T095357.SAFE
RADIATIVE_TRANSFER_ACCURAY=0.0
RADIOMETRIC_QUALITY_FLAG=PASSED
REFERENCE_BAND=B1
REFLECTANCE_CONVERSION_U=1.00445351171828
SATURATED_DEFECTIVE_PIXEL_PERCENTAGE=0.000000
SENSOR_QUALITY_FLAG=PASSED
SNOW_ICE_PERCENTAGE=0.002143
SPECIAL_VALUE_NODATA=0
SPECIAL_VALUE_SATURATED=65535
THIN_CIRRUS_PERCENTAGE=0.006022
UNCLASSIFIED_PERCENTAGE=3.285500
VEGETATION_PERCENTAGE=52.199417
WATER_PERCENTAGE=1.862016
WATER_VAPOUR_RETRIEVAL_ACCURACY=0.0
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 512.0)
Upper Right ( 512.0, 0.0)
Lower Right ( 512.0, 512.0)
Center ( 256.0, 256.0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MTD_MSIL2A.xml
Type: text/xml
Size: 53783 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171103/f5cf502e/attachment-0001.xml>
More information about the gdal-dev
mailing list