Conversion: model coordinates to nodes

convModelCoordinatesToNodes(modelCoords, dx = 1, dy = 1)

Arguments

modelCoords

as retrieved by convRealToModelCoordinates()

dx

horizontal model grid spacing (Default: 1)

dy

vertical model grid spacing (Default: 1)

Value

Model nodes corresponding to model coordinates

Examples

shp.dir <- system.file("extdata", "qgis", package="kwb.demeau") shp.files <- dir(path = shp.dir, pattern = ".shp", full.names = TRUE) gisData <- importShapefiles(shp.files) ### Optionally remove some features # gisData <- removeFeatures(gisData = gisData, ignoreFeatureIDs = c(3,20)) modelCoords <- convRealToModelCoordinates(gisData, dx=1, dy=1)
#> Feature: Settling basin of Ponds.shp (Left boundary lies inside. Minimum distance set to 0) #> Feature: Settling basin of Ponds.shp (Left boundary lies inside. Maximum distance set to 91.6)
modelNodes <- convModelCoordinatesToNodes(modelCoords=modelCoords)