Closed remi-braun closed 1 year ago
Same issue for:
This is a complicated issue.
How to handle that?
1️⃣ Create a VRT, but how do we merge the metadata ? (seems the most natural) ✔️
2️⃣ Create several products but this needs a global change in the Reader().open()
function (outputs a list of products instead of one product) ❌
3️⃣ Only manage the first sub-product (with a warning) ❌ (this is the current and wrong behaviour)
So there is a question of how to merge the metadata
Here is the difference between two metadata files for two subproducts of the same product (PSScene) : https://diffonline.net/Qndq9IrvW6 Workaround for the changes:
identifier
: 20210902_093940_06_245d_3B_AnalyticMS_8b vs 20210902_093942_54_245d_3B_AnalyticMS_8bfileName
acquisitionDate
: 2021-09-02T09:39:40+00:00 vs 2021-09-02T09:39:42+00:00archivingDate
, beginPosition
, endPosition
, acquisitionDateTime
incidenceAngle
: 4.338212e+00 vs 4.334479e+00illuminationAzimuthAngle
, illuminationElevationAngle
, azimuthAngle
, spaceCraftViewAngle
pos
, topLeft
, topRight
, bottomRight
and bottomLeft
lat/lonnumRows
and numColumns
✔️ Compute from VRTreflectanceCoefficient
are product dependant
❓ Add them in the VRT file (if possible):one: Create VRT with the corresponding reflectance coefficients, remove stats and coefficients and set the bands in Float32
:two: Take the latest acquired subproduct metadata file
:three: Apply the described changes on this XML
Same work for SkySatScene : https://diffonline.net/Qndq9IrvW6 Workaround for the changes:
coordinates
id
: 20220706_060910_ssc19d1_0005 vs 20220706_060910_ssc19d1_0006clear_confidence_percent
clear_percent
, satellite_azimuth
shadow_percent
, view_angle
Same work for PSOrthoTile : https://diffonline.net/5nJ6eavnA9 Workaround for the changes:
identifier
: 5876232_3261410_2022-08-23_2233_BGREN_Analytic vs 5876232_3261411_2022-08-23_2233_BGREN_Analytic
✔️ Choose the latest for the datetime
Idem for acquisitionDate
and fileName
tileId
: 3261410 vs 3261411incidenceAngle
: 4.338212e+00 vs 4.334479e+00pos
, topLeft
, topRight
, bottomRight
and bottomLeft
lat/lonnumRows
and numColumns
✔️ Compute from VRT
Some PlanetScope data may come as a bundle of several tiles:![2022-08-26_09h36_51](https://user-images.githubusercontent.com/67311115/186848928-91c19d7e-d68f-4e66-a363-d3196a845077.png)
For now, only the first one is processed, so add a mosaicing process before anything (create VRT of the stacks)
Maybe it can be difficult to manage the metadata (name etc.) -> create synthetic metadata? How to manage cloud cover ?