Date
1 - 5 of 5
a_scale parameter for writing GTiff file
calba@...
Hi,
I'm trying to transform the dtype of my input raster from float32 to int16 (I'm using dask, dask-rasterio and rasterio). So I multiplied the data in my matrix by 100 and convert the dtype of my dask array to rasterio.int16. def multiply(array): Now, I want to write a new GTiff file with scale 0.01 using rasterio.open and the equivalent in rasterio of the a_scale parameter from gdal_translate function. But I don't find this equivalent yet. After numerous tests and researches, I still haven't found the a_scale option in rasterio... So can someone explain to me if this is possible ? And if so, how ? Thank you in advance :) |
|
Sean Gillies
Hi, Hi, -- Sean Gillies |
|
calba@...
Hello,
Firtsly, thanks for your response ! Even if there is no option to scale on opening or on reading, do you know if it's possible to write metadatas with rasterio ? Thank you in advance :) |
|
Alan Snow
|
|
calba@...
Ok thanks, I will try it !
|
|