This modifies the data input assumptions so that we now assume that the x and y coordinates are the same coordinates of the D8 raster. Previously, it was assumed that they represented model indices from the lower left. To accommodate this change I have modified faster-unmixer.cpp so that it converts the input coordinates into model indices from the upper left, by reading in the projection information using the GDAL API. I have also modified the test datasets to consider an (arbitrary) origin to the lower left of the domain. I also provide the d8 in .tiff and .nc to check it works for a variety of geospatial inputs. This closes Issue #30.
@r-barnes I'm not a native C++ programmer so do let me know if I've made any errors.
This modifies the data input assumptions so that we now assume that the x and y coordinates are the same coordinates of the D8 raster. Previously, it was assumed that they represented model indices from the lower left. To accommodate this change I have modified
faster-unmixer.cpp
so that it converts the input coordinates into model indices from the upper left, by reading in the projection information using the GDAL API. I have also modified the test datasets to consider an (arbitrary) origin to the lower left of the domain. I also provide the d8 in.tiff
and.nc
to check it works for a variety of geospatial inputs. This closes Issue #30.@r-barnes I'm not a native
C++
programmer so do let me know if I've made any errors.