Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

8 - Vertical Transformation with transformez

transformez supports vertical datum and reference-frame transformation workflows. In coastal DEM development, vertical consistency is critical because topographic and bathymetric datasets often come from different sources and may use different vertical references.

A coastal DEM may combine data referenced to:

fetchez can prepare source data through hooks such as cropping, filtering, datatype assignment, and horizontal reprojection. transformez focuses on the vertical component: it generates vertical shift grids or applies vertical datum transformations to existing rasters, moving source elevations and depths into a common vertical reference before they are used in a DEM workflow.

The main concept is that datasets cannot be compiled reliably into one coastal DEM until their elevation and depth values are referenced consistently. During this workshop, the goal is to understand where transformez fits into the CUDEM workflow rather than to cover every vertical datum case in detail.


Basic Help CommandΒΆ

Run:

transformez --help

The main command groups are:

CommandPurpose
gridGenerate a standalone vertical shift grid
rasterApply a vertical datum shift to an existing DEM
listList supported vertical datums and EPSG options
htdpManage and run NGS HTDP
vdatumManage and run NOAA VDatum

List Supported DatumsΒΆ

Use list to see supported vertical datums and EPSG options:

transformez list

This is useful when you need to confirm the correct input or output datum name before running a transformation.


Generate a Vertical Shift GridΒΆ

Use transformez grid when you want to create a standalone vertical shift grid for a region.

Inspect the available options:

transformez grid --help

General command pattern:

transformez grid -R WEST/EAST/SOUTH/NORTH -E RESOLUTION -I INPUT_DATUM -O OUTPUT_DATUM -o shift_grid.tif

Example:

transformez grid -R 178.25/178.65/-18.30/-17.95 -E 3s -I mllw -O 3855 -o fiji_shift_grid.tif

Command BreakdownΒΆ

Command optionPurpose
transformez gridCreate a vertical shift grid
-R WEST/EAST/SOUTH/NORTHSet the target region
-E 3sSet the output resolution
-I INPUT_DATUMSet the source or input vertical datum
-O OUTPUT_DATUMSet the target or output vertical datum
-o shift_grid.tifSet the output shift-grid filename

Preview the shift grid:

transformez grid -R 178.25/178.65/-18.30/-17.95 -E 3s -I mllw -O 3855 --preview

The shift grid represents the vertical correction required to move values from the input datum to the output datum across the selected region.


Apply a Vertical Datum Transformation to a RasterΒΆ

Use transformez raster to apply a vertical datum shift to an existing DEM.

General pattern:

transformez raster INPUT_FILE -I INPUT_DATUM -O OUTPUT_DATUM [OPTIONS]

Example:

transformez raster input_dem.tif -I 3855 -O mhw --decay-pixels 0 -o output_dem.tif

Command breakdown:

By default, tidal transformation values may decay toward zero over inland areas. Setting --decay-pixels 0 preserves the transformation surface without applying the inland decay.

Additional options:


How transformez Connects to the Fiji RecipeΒΆ

In the Fiji workflow, spatial reference information is defined in the YAML recipe through settings and hooks such as:

These settings tell the workflow:

Source-level preparation can be handled with CUDEM hooks. For example, set-srs assigns reference information to a dataset, while stream_reproject converts it into the target coordinate reference system.

transformez handles the vertical relationship between the source and target datums. It can generate vertical shift grids or apply those shifts directly to rasters before the datasets are combined during DEM compilation.

The general workflow is:

Assign source reference information
β†’ Reproject source data horizontally
β†’ Generate or apply the vertical datum shift
β†’ Combine the harmonized datasets
β†’ Build the final DEM

What to Look ForΒΆ

When using transformez, check:


Main TakeawayΒΆ

transformez makes vertical datum handling explicit and automated within CUDEM workflows.

This is critical because vertical-reference mistakes can introduce significant offsets when combining topography, bathymetry, tidal datums, chart datums, and other elevation sources into a composite DEM.

The basic workflow is:

identify the source vertical datum
β†’ identify the target vertical datum
β†’ generate or apply the vertical shift
β†’ inspect the transformed output
β†’ use the harmonized data in the DEM workflow

DocumentationΒΆ

Transformez documentation