Difference between revisions of "TUFLOW Message 0657"

From Tuflow
Jump to navigation Jump to search
 
Line 4: Line 4:
 
|type=[[ERROR]]
 
|type=[[ERROR]]
 
|message_desc=The input grid cell width (dx) is not the same as the cell height (dy) which means that the raster input is using rectangular cells rather than square cells.
 
|message_desc=The input grid cell width (dx) is not the same as the cell height (dy) which means that the raster input is using rectangular cells rather than square cells.
|suggestions=Check the process on how the grid was generated. If possible, check if there is an option to set the output resolution and re-export. If it isn't possible to change the export options (e.g. the raster is downloaded from a government webpage and there aren't any export options) then the raster will need to be converted into square cells using a program like QGIS, ArcGIS, or GDAL. In QGIS, the option to change the raster resolution is available in the dialog after right clicking the layer and selecting "Export >> Save As". If using GDAL (gdal_translate.exe), the target resolution can be set using <tt>"-tr <xres> <yres>"</tt>.
+
|suggestions=
 +
* Check the process on how the grid was generated. If possible, check if there is an option to set the output resolution and re-export.  
 +
* If it isn't possible to change the export options (e.g. the raster is downloaded from a government webpage and there aren't any export options) then the raster will need to be converted into square cells using a program like QGIS, ArcGIS, or GDAL.  
 +
* In QGIS, use the "warp" tool to reproject the grid to a Cartesian coordinate system.  
 +
* If using GDAL (gdal_translate.exe), the target resolution can be set using <tt>"-tr <xres> <yres>"</tt>.
 
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]
 
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]
 
}}
 
}}

Latest revision as of 15:40, 18 September 2024

TUFLOW Message
ERROR 0657 - Grid does not use square cells.

Alternate Message
ERROR 0657 - Grid does not use square cells. dx: [dx], dy: [dy]

Message Type
ERROR

Description
The input grid cell width (dx) is not the same as the cell height (dy) which means that the raster input is using rectangular cells rather than square cells.

Suggestions

  • Check the process on how the grid was generated. If possible, check if there is an option to set the output resolution and re-export.
  • If it isn't possible to change the export options (e.g. the raster is downloaded from a government webpage and there aren't any export options) then the raster will need to be converted into square cells using a program like QGIS, ArcGIS, or GDAL.
  • In QGIS, use the "warp" tool to reproject the grid to a Cartesian coordinate system.
  • If using GDAL (gdal_translate.exe), the target resolution can be set using "-tr <xres> <yres>".


Up
Go-up.png 0xxx Messages