vapour icon indicating copy to clipboard operation
vapour copied to clipboard

scale and offset issues

Open mdsumner opened this issue 4 years ago • 2 comments

  • [ ] gdal_raster_io doesn't apply scale/offset
  • [ ] currently, scaling overrides the _int type request
  • [ ] allow user set "scale = TRUE"
  • [ ] defaults: return native type, return float64 if scale/offset present
  • [ ] if type is specified return that
  • [ ] if scaling is turned off just ignore it

(don't have entire clarity on this rn, currently _int returns scaled floats, though)

and see 31c386e

mdsumner avatar Sep 13 '21 11:09 mdsumner

currently working towards pulling the band-reader stuff out of the warper function, it might make sense to create a function for each R type and only do scaling in the float64 one, and allow that to be turned off

because, really the curent rasterio stuff should be called by the warper function from an open dataset

mdsumner avatar Sep 18 '21 09:09 mdsumner

  • [ ] (perhaps) provide GetScale and GetOffset

mdsumner avatar Mar 28 '22 22:03 mdsumner