swisstopo / topo-satromo

Erdbeobachtungs-Satellitendaten fürs Trockenheitsmonitoring (SATROMO)
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Generate LUT for terrain_shadow #83

Open davidoesch opened 2 months ago

davidoesch commented 2 months ago

GOAL

https://github.com/swisstopo/topo-satromo/blob/be3f38851ebdd7f54267f8f9c469bbf99309865c/step0_processors/step0_processor_s2_sr.py#L320

out of scope

Deliverables

STEPS

davidoesch commented 1 month ago

@Tschoun please confirm Define start end hours of S2 orbits : assuming that INGESTTIME according to https://code.earthengine.google.com/197d0cb28197c8cef1646976468818aa 10:10 UTC and 10:48 UTC for all 19k+ tiles

davidoesch commented 1 month ago

Working example gridded_curved_DEM_SRTM_SCHWEIZ.py.zip for SRTM data based on https://github.com/ChristianSteger/HORAYZON/blob/4ed462c3dc00869ab1d665c16c468af2ab1a3f57/examples/shadow/gridded_curved_DEM_SRTM.py : The resolution 100m, to take into account:

davidoesch commented 1 month ago

Evaluated the use of r.sunmask.datetime of GRASS via QGIS: the approach is simpler than HORAYZON but seems to work. Example with 10x10 resampled for a specific day 2024-04-05 in 10:16 UTC https://data.geo.admin.ch/browser/index.html#/collections/ch.swisstopo.swisseo_s2-sr_v100/items/2024-04-05t101559?.asset=asset-ch.swisstopo.swisseo_s2-sr_v100_mosaic_2024-04-05t101559_bands-10m.tif

image

result SHADOW in RED 10:10, BLUE 10:15 , YELLOW 10:20 image

if we zoom in , we see that within 5min in April we have 10m changes in shadow: image

Key findings

next steps

davidoesch commented 3 weeks ago

Test_Swisssurface with max Values in 10meters in 32632 test_small.zip

davidoesch commented 2 weeks ago

File https://github.com/swisstopo/topo-satromo/issues/83#issuecomment-2168122131 successfully tested.

Bild unten ROT: Swissalti gemäss satromo 1.0.0 , WEISS gemäss test_swisssurface image