rmfi_prj_length_multiplier: Obtain a multiplier to convert MODFLOW length units to...

View source: R/spatial.R

rmfi_prj_length_multiplierR Documentation

Obtain a multiplier to convert MODFLOW length units to projection length units

Description

Obtain a multiplier to convert MODFLOW length units to projection length units

Usage

rmfi_prj_length_multiplier(dis, prj, to)

Arguments

dis

RMODFLOW dis object

prj

RMODFLOW prj object

to

either 'grid' or 'xyz' specifying if the multiplier should convert coordinates to the modflow grid or to real world coordinates (inverse)

Details

The MODFLOW length unit (dis$lenuni) can be different from the projection unit (prj$crs$units). When converting coordinates using rmf_convert_grid_to_xyz or rmf_convert_xyz_to_grid the difference in length unit needs to be corrected for.

Value

single numeric value which can be used to multiply MODFLOW coordinates with so to convert them to prj length units.


rogiersbart/RMODFLOW documentation built on Jan. 14, 2023, 4:21 a.m.