ImportDEM (Filepath / Type )
The ImportDEM command imports whatever section of an external DEM lies within a CatchmentSIM project. The Import DEM command does NOT require a DEM to be setup as it is adopting an external DEM.
Parameter |
Description |
Accepted Values / Data Type |
FilePath |
The file path for the DEM. |
String |
Type |
Select which of the supported file types to import. Alternatively, this field can be left blank and CatchmentSIM will identify the file type automatically - this is the suggested approach. |
SRTM3 : SRTM3 file (*.hgt) |
Eg., ImportDEM(“c:\demo.txt”,ASCII) or ImportDEM(“c:\demo.txt”)
SetupDEM (CellSize, Rows, Columns, XMin, YMin, XMax, YMax )
The SetupDEM command creates an empty DEM in CatchmentSIM. This command can be used in 3 main variations:
•Create a DEM that covers the entire project extents
-> Set XMin, YMin, XMax, YMax as -1
•Create a DEM based on specifying a cell size
-> Set Cellsize to required value, set Rows and Columns to -1
•Create a DEM based on specifying the number of rows and columns (may be rectangular)
-> Set Rows and Columns to required values, Cellsize to -1
Parameter |
Description |
Accepted Values / Data Type |
CellSize |
The cell size in map units. |
Decimal |
Rows |
The number of DEM rows. |
Integer |
Columns |
The number of DEM columns. |
Integer |
XMin |
The minimum easting of the DEM. |
Decimal |
YMin |
The minimum northing of the DEM. |
Decimal |
XMax |
The maximum easting of the DEM. |
Decimal |
YMax |
The maximum northing of the DEM. |
Decimal |
Eg., SetupDEM (5,-1,-1,-1,-1,-1,-1) or SetupDEM (-1,-600,600,-1,-1,-1,-1) or SetupDEM (5,-1,-100,100,500,500)
SampleRasterDEM (Filepath / Type )
The SampleRasterDEM command samples an external raster DEM. That is, DEM cells without elevation attributes are assigned the elevation of the external DEM. You must have setup a DEM to use this command. This command assumes that the external raster DEM is in the sample projection as the project (otherwise, do it manually within CatchmentSIM).
Parameter |
Description |
Accepted Values / Data Type |
FilePath |
The file path for the DEM. |
String |
Type |
Select which of the supported file types to import. Alternatively, this field can be left blank and CatchmentSIM will identify the raster file type automatically - this is the suggested approach. |
SRTM3 : SRTM3 file (*.hgt) |
Eg., SampleRasterDEM(“c:\demo.txt”,ASCII) or SampleRasterDEM(“c:\demo.txt”)
SampleTINDEM (Filepath / Type )
The SampleTINDEM command samples an external Triangular Irregular Network (TIN) DEM. That is, DEM cells without elevation attributes are assigned the elevation of the external DEM. You must have setup a DEM to use this command. This command assumes that the external TIN DEM is in the sample projection as the project (otherwise, do it manually within CatchmentSIM).
Parameter |
Description |
Accepted Values / Data Type |
FilePath |
The file path for the DEM. |
String |
Type |
Select which of the supported file types to import. |
ASCIITIN : ESRI ASCII-TIN Format |
Eg., SampleTINDEM (“c:\demo.net”,ASCIITIN)
ImportSpotHeights (Filepath / HeaderRow / Type )
The ImportSpotHeights command imports a list of external points into an existing CatchmentSIM DEM. That is, DEM cells without elevation attributes are assigned the elevation of the imported point. You must have setup a DEM to use this command. This command assumes that the points are in the sample projection as the project (otherwise, do it manually within CatchmentSIM).
Parameter |
Description |
Accepted Values / Data Type |
FilePath |
The file path for the DEM. |
String |
HeaderRow |
Specifies if the first row is a header or the first point (set to 1 for header, 0 for first point). This field is ignored for LIDAR types. |
Integer (0 or 1) |
Type |
Select which of the supported point list types |
TAB : Tab delimiter ASCII |
Eg., ImportSpotHeights (“c:\demo.txt”,1 ,COMMA)
InterpolateContours
This command runs the interpolate contours menu item. You should have previously setup a DEM and imported contours.
InterpolateWatercourses
This command runs the interpolate watercourses menu item. You should have previously setup a DEM, imported contours, imported watercourses and interpolated contours.
InterpolateDEM ( NumberOfRays )
This command runs the interpolate DEM menu item. You should have previously setup a DEM, imported and interpolated contours, imported and interpolated watercourses (if available). The NumberOfRays parameter specifies the number of search rays for the algorithm. Typically, select 8 or 16 for this value.
StreamBurning ( Depth )
This command runs the stream burning menu item. You should have previously setup a DEM, imported and interpolated contours, imported and interpolated watercourses (if available), and interpolated the DEM. The Depth parameter indicates the depth in map units to burn the watercourses.
ApplyClipMask (Filepath )
The ApplyClipMask command applies a clip mask to the DEM to exclude all data outside of the polygons in a GIS file. The Filepath variable indicates the .shp or .mif file path for the data.
Eg., ApplyClipMask (“c:\demo.shp”)