Skip to main content

API Reference

Classes

ClassDescription
ZarrCubeProviderProvides rendering of volumetric (3D) Zarr datasets as Cesium primitives.
ZarrCubeVelocityProviderProvider responsible for loading and rendering 3D velocity fields (U and V components) from Zarr datasets as animated Cesium WindLayers.
ZarrImageryLayerCustom Cesium imagery layer for Zarr datasets.
ZarrLayerProviderImagery provider for rendering Zarr datasets as Cesium imagery tiles.

Interfaces

InterfaceDescription
BoundsPropsGeographic bounding box definition (degrees).
ColorMapInfoStructure of the global color map registry.
ColorScalePropsDescribes a numerical-to-color mapping for visualizing scalar fields.
CubeOptionsConfiguration for a 3D cube visualization (volumetric rendering).
CubeVelocityPropsRepresents the in-memory structure of a velocity field slice.
DataSlicePropsDescribes a slice of a multidimensional array.
DimensionNamesPropsDescribes the mapping between dataset dimensions and their standardized names.
DimensionValuesMapping of dimension names to their corresponding coordinate arrays.
DimIndicesPropsMaps dimension keys to their indices and associated coordinate arrays.
LayerOptionsConfiguration for a 2D raster (image) layer visualization.
VelocityOptionsConfiguration for a vector (velocity) visualization layer.
XYLimitsDescribes the XY coordinate boundaries of a dataset.
XYLimitsPropsAlias of XYLimits with explicit type name for Zarr coordinate bounds.
ZarrLevelMetadataMetadata for a single multiscale level in a Zarr dataset.
ZarrSelectorsPropsDescribes a selector for a Zarr dataset dimension.

Functions

FunctionDescription
calculateElevationSliceDetermines the index range of the elevation axis to load from a Zarr cube.
calculateHeightMetersConverts elevation index to Cesium height (meters), applying vertical exaggeration and optional below-sea-level offset.
calculateNearestIndexFinds the index of the value in values nearest to target.
calculateSliceArgsConstructs Zarr slice arguments for extracting a subregion of a multidimensional array.
calculateSliceArgsRequestImageConstructs Zarr slice arguments for extracting a subregion of a multidimensional array.
calculateXYFromBoundsConverts geographic bounds (lat/lon) to pixel-space indices for slicing Zarr arrays. Supports both EPSG:4326 and EPSG:3857 projections.
colormapBuilderBuilds a color ramp (discrete or continuous) from a specified colormap.
colorScaleByNameReturns a color scale function for a given colormap name.
createColorRampTextureCreates a flexible 1D color-ramp texture supporting either normalized (0–1) or integer (0–255) color definitions.
createProgramCreates and links a WebGL program using the specified vertex and fragment shaders.
createShaderCreates and compiles a WebGL shader from source code.
deriveRectangleAndSchemeComputes a Cesium Rectangle and TilingScheme for a Zarr dataset.
detectBrowserDetects the current browser based on the user agent string.
detectCRSDetects the coordinate reference system (CRS) of a Zarr dataset based on metadata or coordinate range. Defaults to EPSG:4326 (WGS84) if uncertain.
extractNoDataMetadataExtracts no-data related metadata from a Zarr array's attributes.
getCubeDimensionsComputes cube dimension ordering and strides based on dimension indices. Useful for reshaping 3D Zarr arrays into Cesium-renderable layouts.
getXYLimitsRetrieve the geographic coordinate limits (min/max latitude/longitude) for a Zarr array.
identifyDimensionIndicesIdentify the indices of common dimensions (lat, lon, time, elevation) in a Zarr array, optionally using CF-compliant standard names or custom dimension mappings.
initZarrDatasetOpens a Zarr variable (single-scale or multiscale pyramid) and prepares its metadata.
latDegToMercYConverts a latitude value (in degrees) to Web Mercator Y coordinate (in meters).
loadDimensionValuesLoads the coordinate values for a specific dimension.
lonDegToMercXConverts a longitude in degrees into a Web Mercator X coordinate (meters).
openLevelArrayOpens and caches a specific multiscale level array. Keeps a small LRU-style cache of up to three levels.
resolveNoDataRangeResolves the no-data value range for masking dataset values.
updateImgDataUpdates an ImageData object with a new pixel color derived from a numeric value and a ColorScaleProps colormap.
validateBoundsValidates whether geographic bounds are logically consistent.

Type Aliases

Type AliasDescription
BrowserNameSupported browser names for compatibility checks.
CalendarDateRepresents a date in a calendar system.
CFCalendarSupported CF calendar types.
ColorMapNameType representing valid color map names. The values are derived from the allColorScales array imported from the jsColormaps module and are based on matplotlib colormap (https://matplotlib.org/stable/users/explain/colors/colormaps.html).
CRSSupported Coordinate Reference Systems.
SliceArgsRepresents a multidimensional slice argument for Zarr array indexing.