Skip to content

Commit

Permalink
Sentinel2: support L1B products with geolocation arrays (MPC Sen2VM)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 7, 2024
1 parent 48ddd5d commit bc28823
Show file tree
Hide file tree
Showing 23 changed files with 1,056 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<VRTDataset rasterXSize="95" rasterYSize="428">
<GeoTransform> -1.7500000000000000e+00, 4.5000000000000000e+00, 0.0000000000000000e+00,-1.75, 0.0000000000000000e+00,4.5 </GeoTransform>
<Metadata>
<MDI key="GEOREFERENCING_CONVENTION">TOP_LEFT_CORNER</MDI>
<MDI key="LINE_OFFSET">-1.75</MDI>
<MDI key="LINE_STEP">4.5</MDI>
<MDI key="PIXEL_OFFSET">-1.75</MDI>
<MDI key="PIXEL_STEP">4.5</MDI>
<MDI key="SRS">EPSG:4326</MDI>
<MDI key="X_BAND">1</MDI>
<MDI key="Y_BAND">2</MDI>
</Metadata>
<VRTRasterBand dataType="Float64" band="1">
</VRTRasterBand>
<VRTRasterBand dataType="Float64" band="2">
</VRTRasterBand>
</VRTDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<VRTDataset rasterXSize="284" rasterYSize="1281">
<GeoTransform> -1.7500000000000000e+00, 4.5000000000000000e+00, 0.0000000000000000e+00,-1.75, 0.0000000000000000e+00,4.5 </GeoTransform>
<Metadata>
<MDI key="GEOREFERENCING_CONVENTION">TOP_LEFT_CORNER</MDI>
<MDI key="LINE_OFFSET">-1.75</MDI>
<MDI key="LINE_STEP">4.5</MDI>
<MDI key="PIXEL_OFFSET">-1.75</MDI>
<MDI key="PIXEL_STEP">4.5</MDI>
<MDI key="SRS">EPSG:4326</MDI>
<MDI key="X_BAND">1</MDI>
<MDI key="Y_BAND">2</MDI>
</Metadata>
<VRTRasterBand dataType="Float64" band="1">
</VRTRasterBand>
<VRTRasterBand dataType="Float64" band="2">
</VRTRasterBand>
</VRTDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<VRTDataset rasterXSize="95" rasterYSize="428">
<GeoTransform> -1.7500000000000000e+00, 4.5000000000000000e+00, 0.0000000000000000e+00,-1.75, 0.0000000000000000e+00,4.5 </GeoTransform>
<Metadata>
<MDI key="GEOREFERENCING_CONVENTION">TOP_LEFT_CORNER</MDI>
<MDI key="LINE_OFFSET">-1.75</MDI>
<MDI key="LINE_STEP">4.5</MDI>
<MDI key="PIXEL_OFFSET">-1.75</MDI>
<MDI key="PIXEL_STEP">4.5</MDI>
<MDI key="SRS">EPSG:4326</MDI>
<MDI key="X_BAND">1</MDI>
<MDI key="Y_BAND">2</MDI>
</Metadata>
<VRTRasterBand dataType="Float64" band="1">
</VRTRasterBand>
<VRTRasterBand dataType="Float64" band="2">
</VRTRasterBand>
</VRTDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<n1:Level-1B_DataStrip_ID xmlns:n1="https://psd-15.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1B_Datastrip_Metadata.xsd" datastripIdentifier="S2B_OPER_MSI_L1B_DS_2BPS_20241019T153411_S20241019T120215_N05.11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://psd-15.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1B_Datastrip_Metadata.xsd /dpc/app/s2ipf/FORMAT_METADATA_DS_L1B/06.03.00/scripts/../../../schemas/15.00.00/PSD/S2_PDI_Level-1B_Datastrip_Metadata.xsd">

<n1:General_Info> <!-- removed -->
</n1:General_Info>

<n1:Image_Data_Info>
<Granules_Information metadataLevel="Standard">
<Detector_List>
<Detector detectorId="01">
<Granule_List>
<Granule granuleId="S2B_OPER_MSI_L1B_1_N01.03">
<POSITION>1</POSITION>
</Granule>
<Granule granuleId="S2B_OPER_MSI_L1B_1_N01.03">
<POSITION>2305</POSITION>
</Granule>
<Granule granuleId="S2B_OPER_MSI_L1B_1_N01.03">
<POSITION>4609</POSITION>
</Granule>
<Granule granuleId="S2B_OPER_MSI_L1B_1_N01.03">
<POSITION>6913</POSITION>
</Granule>
<Granule granuleId="S2B_OPER_MSI_L1B_1_N01.03">
<POSITION>9217</POSITION>
</Granule>
</Granule_List>
</Detector>
</Detector_List>
</Granules_Information>
<!-- lots of stuff removed -->
</n1:Image_Data_Info>
<!-- lots of stuff removed -->
</n1:Level-1B_DataStrip_ID>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<n1:Level-1B_Granule_ID xmlns:n1="https://psd-13.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1B_Granule_Metadata.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://psd-12.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1B_Granule_Metadata.xsd /dpc/app/s2ipf/FORMAT_METADATA_GR_L1B/02.09.06/scripts/../../../schemas/02.11.07/PSD/S2_PDI_Level-1B_Granule_Metadata.xsd">

<n1:General_Info>
<GRANULE_ID metadataLevel="Brief">S2B_OPER_MSI_L1B_GR_MTI__20151231T235959_S20151231T235959_D02_N01.03</GRANULE_ID>
<DETECTOR_ID metadataLevel="Brief">02</DETECTOR_ID>
<DATASTRIP_ID metadataLevel="Brief">S2B_OPER_MSI_L1B_DS_MTI__20151231T235959_S20151231T235959_N01.03</DATASTRIP_ID>
<DOWNLINK_PRIORITY metadataLevel="Standard">NOMINAL</DOWNLINK_PRIORITY>
<SENSING_TIME metadataLevel="Standard">2015-12-31T23:59:59.999Z</SENSING_TIME>
<Archiving_Info metadataLevel="Expertise">
<ARCHIVING_CENTRE>MTI_</ARCHIVING_CENTRE>
<ARCHIVING_TIME>2015-12-31T23:59:59.999Z</ARCHIVING_TIME>
</Archiving_Info>
</n1:General_Info>

<n1:Geometric_Info>
<Granule_Footprint metadataLevel="Brief">
<Granule_Footprint>
<Footprint>
<EXT_POS_LIST>46 11 1 45 11 2 45 13 3 46 13 4 46 11 1</EXT_POS_LIST>
</Footprint>
</Granule_Footprint>
<RASTER_CS_TYPE>POINT</RASTER_CS_TYPE>
<PIXEL_ORIGIN>1</PIXEL_ORIGIN>
</Granule_Footprint>
<Granule_Position metadataLevel="Standard">
<POSITION>1</POSITION>
<Geometric_Header>
<GROUND_CENTER>45.5 12 2.5</GROUND_CENTER>
<QL_CENTER>0 0</QL_CENTER>
<Incidence_Angles>
<ZENITH_ANGLE unit="deg">8</ZENITH_ANGLE>
<AZIMUTH_ANGLE unit="deg">96</AZIMUTH_ANGLE>
</Incidence_Angles>
<Solar_Angles>
<ZENITH_ANGLE unit="deg">43</ZENITH_ANGLE>
<AZIMUTH_ANGLE unit="deg">158</AZIMUTH_ANGLE>
</Solar_Angles>
</Geometric_Header>
</Granule_Position>
<Granule_Dimensions metadataLevel="Standard">
<Size resolution="10">
<NROWS>2304</NROWS>
<NCOLS>2552</NCOLS>
</Size>
<Size resolution="20">
<NROWS>1152</NROWS>
<NCOLS>1276</NCOLS>
</Size>
<Size resolution="60">
<NROWS>384</NROWS>
<NCOLS>1276</NCOLS>
</Size>
</Granule_Dimensions>

</n1:Geometric_Info>

<n1:Quality_Indicators_Info metadataLevel="Standard">
<Image_Content_QI>
<CLOUDY_PIXEL_PERCENTAGE>0</CLOUDY_PIXEL_PERCENTAGE>
<DEGRADED_MSI_DATA_PERCENTAGE>0</DEGRADED_MSI_DATA_PERCENTAGE>
</Image_Content_QI>
<Pixel_Level_QI geometry="FULL_RESOLUTION">
<MASK_FILENAME bandId="0" detectorId="02" type="MSK_CLOLOW">S2B_OPER_MSK_CLOLOW_MTI__20151231T235959_S20151231T235959_D02_B01_MSIL1B.gml</MASK_FILENAME>
</Pixel_Level_QI>
</n1:Quality_Indicators_Info>

</n1:Level-1B_Granule_ID>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Really a fake product, only for GDAL testing purposes of the L1B_MODE=DATASTRIP mode for datasets with geolocation arrays.
Loading

0 comments on commit bc28823

Please sign in to comment.