spaceml-org / rs_tools

https://spaceml-org.github.io/rs_tools/
Apache License 2.0
6 stars 1 forks source link

6 code improvements #50

Closed annajungbluth closed 4 months ago

annajungbluth commented 4 months ago

Added option to save patches as .tif, and removed deletion of coordinate reference system in msg geoprocessor.

Open points in patcher:

jejjohnson commented 4 months ago

Added option to save patches as .tif, and removed deletion of coordinate reference system in msg geoprocessor.

Open points in patcher:

  • add band_names to .nc patches?

The band names should automatically be in the .nc patches. But their will be differences with the .tif patches. There one needs to manually set the band names (in order of the file) as attributes.

  • do we also save the band_wavelengths in the .tif patches? I don't think we currently do.

We also don’t do this for the tiff patches. One option could be to do the same as the band names. However, something easier to do is just to make a dictionary with the band names as keys and the wavelengths as values because:

  1. it’s a static variable that doesn’t change
  2. you’re only going to use that for ML training. This is actually what’s typically done in practice and I think the CloudSAT team already did this for their dataset.