Ticket #509 (closed Defect: fixed)
Run Coral Reef Connectivity Simulation tool fails with python.exe: ValueError: The input file "C:\Temp\...\ReefIDsImage.bin" does not contain the expected number of cells. It was expected to contain ... but actually contains ....
| Reported by: | jjr8 | Owned by: | jjr8 |
|---|---|---|---|
| Priority: | Medium | Milestone: | 0.8 |
| Component: | Tools - Connectivity - Coral Reefs | Version: | |
| Keywords: | Cc: |
Description
The problem here is that the various Load Currents tools internally use the ArcGIS Clip tool to clip the currents rasters to the extent of the reef grids, but the Clip tool sometimes includes an extra row or column. As a result, the clipped currents grids contain more cells than the reef grids, when they are expected to contain exactly the same number.
I have encountered this problem with the Clip tool before, when writing other MGET tools. A reasonable solution here is to switch to using the Extract By Mask tool, which does not seem to suffer from this problem.
Change History
Note: See
TracTickets for help on using
tickets.
