nhrap-hazus / FAST

Hazus - Flood Assessment Structure Tool
GNU General Public License v3.0
31 stars 7 forks source link

index out of range on certain large depth grids #6

Open ujvalak opened 4 years ago

ujvalak commented 4 years ago

There is a strange index out of range message that shows up for certain depth grids that are very large in size.

plrvn commented 4 years ago

It seems this is happening when structure points are outside of the raster grid extent. For example, try to run FAST using the ND_Minot_rpd100.tif and the HI_Honolulu_UDF.csv.

I was getting this error trying to run the FAST tool in a location where I had structure points within and outside the raster extent. I selected only the structures within the raster extent and it ran without the error.

ujvalak commented 4 years ago

Hello aervinp,

If the index out of range was occurring due to the points outside the extents of the depth grid then you should not see any rows with no depth values, but FAST processes rows outside of the extents of the depth grid.

It does happen while trying to use a depth grid that was compressed with LZ77. We recommend using uncompressed depth grids.