dctools.data.transforms.ToSurfaceTransform
- class dctools.data.transforms.ToSurfaceTransform(depth_coord_name='depth')
Reduces ‘depth’ dimension to the shallowest available value.
For gridded data (where depth[0] always has values) this behaves identically to the previous
isel(depth=0)approach. For sparse observation data such as Argo profiles, where the first depth level may be NaN for most profiles,bfillalong depth propagates the shallowest valid value to the surface before selecting depth[0], dramatically improving spatial coverage.The implementation stays fully lazy (dask-compatible) and never calls
.valueson the dataset.- Parameters:
depth_coord_name (str)
- __init__(depth_coord_name='depth')
Initialize.
- Parameters:
depth_coord_name (str)
Methods
__init__([depth_coord_name])Initialize.