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
278 stars 22 forks source link

[Optical] Do not use SNAP #12

Closed remi-braun closed 2 years ago

remi-braun commented 3 years ago

Sentinel-3

Do not geocode S3 data with SNAP, to remove this dependency for optical data.

Reproject

:warning: Geocoding is not as simple as initially thought

The goal is to apply lon/lat/alt arrays to every rasters (maybe through GCPs ? or -geoloc in gdalwarp ?)

Take a look at the ongoing @rioxarray #329 discussion. And maybe at this thread

This solution using gdal warp -geoloc (script) exists (from this thread and this gdal documentation) but uses gdal CLI, which is not really wanted...

Rad2Refl

rad2refl: here

    public static float radianceToReflectance(float rad, float sza, float e0) {
        return (float) ((rad * Math.PI) / (e0 * Math.cos(sza * RAD_PER_DEG)));
    }