awi-response / darts-nextgen

Panarctic Database of Active Layer Detachment Slides and Retrogressive Thaw Slumps from Deep Learning on High Resolution Satellite Imagery.
https://awi-response.github.io/darts-nextgen/
MIT License
5 stars 1 forks source link

Add function to save a tile #44

Open relativityhd opened 5 days ago

relativityhd commented 5 days ago

For NC: maybe utilize the encoding. E.g.

tile.to_netcdf(
    "test_offset.nc",
    engine="h5netcdf",
    encoding={"ndvi": {"dtype": "uint16", "scale_factor": 1 / 10000, "add_offset": - 1}},
)