xdem.DEM.to_vcrs#
- DEM.to_vcrs(vcrs, force_source_vcrs=None, inplace=False)[source]#
Convert the DEM to another vertical coordinate reference system.
- Parameters:
vcrs (
Union
[Literal
['Ellipsoid'
,'EGM08'
,'EGM96'
],VerticalCRS
,str
,Path
,int
]) – Destination vertical CRS. Either as a name (“WGS84”, “EGM08”, “EGM96”), an EPSG code or pyproj.crs.VerticalCRS, or a path to a PROJ grid file (OSGeo/PROJ-data)force_source_vcrs (
Union
[Literal
['Ellipsoid'
,'EGM08'
,'EGM96'
],VerticalCRS
,str
,Path
,int
,None
]) – Force a source vertical CRS (uses metadata by default). Same formats as for vcrs.inplace (
bool
) – Whether to return a new DEM (default) or the same DEM updated in-place.
- Return type:
- Returns:
DEM with vertical reference transformed, or None.