Re: a_scale parameter for writing GTiff file


Alan Snow
 

The scales and offsets properties on the DatasetWriter object should allow you to update the raster.
I recommend masking your data before scaling your data as the mask value is for the raw data.

Reference for how rioxarray does it:
  • Writing the scales/offsets to file: code
  • Reading with scales and offsets: code

Join main@rasterio.groups.io to automatically receive all group messages.