identifyDimensionIndices()
function identifyDimensionIndices(
dimNames,
dimensionNames?,
coordinates?): DimIndicesProps;
Identify the indices of common dimensions (lat, lon, time, elevation) in a Zarr array, optionally using CF-compliant standard names or custom dimension mappings.
Parameters
| Parameter | Type | Description |
|---|---|---|
dimNames | string[] | Names of the array dimensions. |
dimensionNames? | DimensionNamesProps | Optional explicit mapping of dimension names (see DimensionNamesProps). |
coordinates? | Record<string, any> | Optional coordinate variable dictionary. |
Returns
A DimIndicesProps object describing each dimension’s index and name.