sertit / eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
https://eoreader.readthedocs.io/en/latest/
Apache License 2.0
276 stars 23 forks source link

ENH: Handle S1 COGs from Copernicus Dataspace #172

Closed remi-braun closed 1 month ago

remi-braun commented 1 month ago

It would be great to handle S1 COGs from Copernicus Dataspace now that SNAP 10 is out.

For SNAP version, maybe parse:


>>> gpt --diag
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
SNAP Release version 9.0.0
SNAP home: C:\Program Files\snap\bin\/..
SNAP debug: null
SNAP log level: null
Java home: c:\program files\snap\jre\jre
Java version: 1.8.0_242
Processors: 16
Max memory: 39.1 GB
Cache size: 8.0 GB
Tile parallelism: 4
Tile size: 1024 x 1024 pixels

To configure your gpt memory usage:
Edit snap/bin/gpt.vmoptions

To configure your gpt cache size and parallelism:
Edit .snap/etc/snap.properties or gpt -c ${cachesize-in-GB}G -q ${parallelism}
remi-braun commented 1 month ago

Function snap.get_snap_version has been implemented in sertit-utils. To be released in next version.