You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function ds.GetGeoTransform from GDAL does not always return the upper left corner of the raster. Instead, it return an affine transformation from a corner of the raster, with delta x and delta y (i.e., xres and yres), and in the case of GLDAS tiff files, ds.GetGeoTransform returns the lower left corner instead of upper left corner. Hence the function get_raster_bounds returns incorrect boundary.
The text was updated successfully, but these errors were encountered:
The
get_raster_bounds
intopoflow36.utils.regrid
returns incorrect bounds for some GeoTIFF files. The problem is in these lines:The function
ds.GetGeoTransform
from GDAL does not always return the upper left corner of the raster. Instead, it return an affine transformation from a corner of the raster, with delta x and delta y (i.e., xres and yres), and in the case of GLDAS tiff files,ds.GetGeoTransform
returns the lower left corner instead of upper left corner. Hence the functionget_raster_bounds
returns incorrect boundary.The text was updated successfully, but these errors were encountered: