Date
1 - 2 of 2
Any way to ensure cell resolutions stay square?
himat15@...
I am resampling a raster to become a different resolution, but it seems like the resolutions are not entirely accurate.Here is the code I have (the code is very standard, taken from the documentation).
Code output:upscale factor: 0.3333333333333333 Orig arr shape: (1, 9240, 2671) Scaled ds shape: (1, 3080, 890) Orig ds res: (5.0, 5.0) Scaled ds res: (15.0, 15.00561797752809) But in the final scaled ds resolution, why is the vertical scale direction slightly different? (15.0, 15.00561797752809)?
|
|
Luke
Try going the other way - multiply the resolution by a scale factor (i.e. 3 in your case) and divide the dimensions - see example gist On Fri, 13 Mar 2020 at 14:35, himat15 via Groups.Io <himat15=yahoo.com@groups.io> wrote: I am resampling a raster to become a different resolution, but it seems like the resolutions are not entirely accurate. |
|