dctools.data.transforms

Data transformation registry and pipeline utilities.

Functions

build_transform_pipeline(config_list[, ...])

Factory to build a composition of transforms from a config list.

detect_and_normalize_longitude_system(ds[, ...])

Detect the longitude coordinate system and normalize it in the -180° to 180° range.

get_dataset_transform(alias, metadata, ...)

Retrieves the appropriate transformation pipeline for a dataset based on its alias and name.

register_transform(name)

Decorator to register a transform class.

Classes

AssignCoordsTransform(coord_name, ...)

A custom transform dependent on time axis.

CustomTransforms(transform_name, ...)

Wrapper for dataset transformations.

InterpolationTransform(dataset_processor, ...)

Transform to interpolate the dataset to target ranges.

RenameCoordsVarsTransform([...])

A custom transform dependent on time axis.

ResetTimeCoordsTransform()

Transform to reset time coordinates.

SelectVariablesTransform(variables)

Transform to select specific variables from the dataset.

StdLongitudeTransform()

A custom transform dependent on time axis.

StdPercentageTransform(var_names)

Transform percentage variables in the [0, 100] range to [0,1].

SubsetCoordTransform(coord_name, coord_vals)

A custom transform dependent on time axis.

ToEpsg3413Transform()

Converts a dataset with lat/lon coordinates into the EPSG 3413 CRS.

ToSurfaceTransform([depth_coord_name])

Reduces 'depth' dimension to the shallowest available value.

ToTimestampTransform(time_names)

Transform to convert time coordinates to timestamps.

WrapLongitudeTransform([lon_name])

Transforms xarray dataset longitudes from [0, 360] to [-180, 180].