make-surface icon indicating copy to clipboard operation
make-surface copied to clipboard

addressing fillfacets dtype and proj errors

Open aaronpdennis opened this issue 10 years ago • 0 comments

I was receiving errors when trying to makesurface fillfacets with a variety of raster data sources.

The first was an error that 'proj' was not a key in the rasCRS variable. The second was that the filler arrays were not the same datatype as the raster src and an error "ValueError: the array's dtype 'float64' does not match the file's dtype 'int16'" was returned.

With these changes, I was able to successfully run makesurface fillfacets on three different test rasters. However, because I removed - 999 from generating the filler np.zeros array, identifying no data values in the output triangular lattice is more difficult (they now have a value of 0 instead of -999). As it is, the code also assumes all raster bands have the same data type as the first band.

aaronpdennis avatar Feb 22 '15 03:02 aaronpdennis