Skip to main content

API Reference

Classes​

ClassDescription
CubeGpuRendererLow-level Cesium primitive that keeps cube values and colormapping on the GPU.
TileDataCacheA simple LRU cache for tile data. The cache is keyed by a string, which is typically a combination of the layer ID and tile coordinates.
ZarrCubeDataProviderLoads and spatially subsets a three-dimensional Zarr variable without rendering it.
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.
ZarrImageryLayerCesium imagery layer backed by a shared ZarrTileProvider.
ZarrLayerProviderThin Cesium adapter around the framework-independent Zarr tile renderer. Dataset loading, slicing, styling, caching, and WebGL rendering live in zarr-maps-tiling. This class only translates Cesium tile requests.
ZarrTileProviderProvides Zarr dataset access and rendering capabilities for web-map layers.

Interfaces​

InterfaceDescription
BoundsPropsGeographic bounding box definition (degrees).
ColorMapInfoStructure of the global color map registry.
ColorScalePropsNumerical range and colors used to render a scalar field.
CubeGpuRendererOptions-
CubeOptions-
CubeVelocityProps-
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.
FullTransectResultA distance-by-elevation transect. Values are indexed [elevation][position].
FullTransectStreamChunkA streamed full-depth transect chunk.
LayerOptions-
QueryBackendMinimal interface required by the framework-neutral convenience queries.
QueryMultiPolygonGeometryGeoJSON multipolygon geometry, reserved for region-query support.
QueryOptionsControls a shared Zarr data query.
QueryPointGeometryGeoJSON point geometry expressed as WGS84 longitude and latitude.
QueryPolygonGeometryGeoJSON polygon geometry, reserved for region-query support.
QueryResultValues and coordinates returned from a shared Zarr query.
QueryStreamOptionsControls how many coordinates are returned by each streamed query chunk.
RequestOverridesSerializable static fetch options suitable for application state and FetchStore.
RequestParameters-
ResolvedCRSValidated transformation between WGS84 and a rectilinear source grid.
ResolvedValueMetadataFully resolved packing and no-data metadata for a numeric Zarr variable.
TileCacheOptionsControls the in-memory cache used to recolor tiles without reading Zarr data again.
TileCacheStatsRuntime counters for a provider's decoded tile cache.
TransectQueryOptionsSampling controls for one-level and full-depth transects.
TransectResultA one-level transect. Values preserve no-data gaps as null.
TransectStreamChunkA streamed one-level transect chunk.
VelocityOptions-
VelocityQueryResultValues and coordinates returned from a shared Zarr query.
XYLimitsDescribes the XY coordinate boundaries of a dataset.
XYLimitsPropsAlias of XYLimits with explicit type name for Zarr coordinate bounds.
ZarrCubeData-
ZarrCubeDataOptions-
ZarrLevelMetadataMetadata for a single multiscale level in a Zarr dataset.
ZarrSelectorsDescribes a selector for a Zarr dataset dimension.
ZarrSelectorsProps-
ZarrTileOptionsFramework-neutral options for the shared 2D Zarr tile renderer.

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.
colormapBuilderBuilds a color ramp (discrete or continuous) from a specified colormap.
createColorRampTextureCreates a flexible 1D color-ramp texture supporting either normalized (0–1) or integer (0–255) color definitions.
createFetchStoreCreates a Zarrita FetchStore with optional static and dynamic request settings.
createProgramCreates and links a WebGL program using the specified vertex and fragment shaders.
createShaderCreates and compiles a WebGL shader from source code.
createTransformedFetchCreates a fetch implementation that applies dynamic request configuration.
decodeCFTimeDecodes CF-compliant time coordinate values into ISO date strings.
defaultTileCacheBytesSelects a conservative per-layer budget while allowing up to five active layers. deviceMemory is deliberately treated as a hint, not an allowance.
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.
getFullTransectQueries all elevation levels along a line between two WGS84 positions.
getTimeSeriesQueries every time coordinate at one point and the selected elevation.
getTransectQueries one scalar level along a line between two WGS84 positions.
getVerticalProfileQueries every elevation coordinate at one point and the selected time.
getXYLimitsRetrieve the geographic coordinate limits (min/max latitude/longitude) for a Zarr array.
getZarrDataReads an array with the same Zarrita module instance that opened it. Zarrita 0.7 keeps array decoding context module-local, so consumers must not call a separately resolved copy of zarrita.get on arrays returned here.
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.
latDegToMercY-
limitStoreRequestsWrap a Zarrita store so all reads share one request-concurrency budget.
loadDimensionValuesLoads the coordinate values for a specific dimension.
lonDegToMercX-
openLevelArrayOpens and caches a specific multiscale level array. Keeps a small LRU-style cache of up to three levels.
parseCFUnitsParses a CF-compliant units string into its components.
resolveCRSResolve an explicit or metadata-declared rectilinear source CRS.
resolveNoDataRangeResolves the no-data value range for masking dataset values.
resolveValueMetadataResolves numeric packing and no-data metadata from an ordered attribute hierarchy.
sampleTransectPositionsBuilds evenly spaced WGS84 samples along the shortest longitude path.
sourceBoundsToGeographicTransform a source rectangle to WGS84 by sampling a regular interior grid.
streamFullTransectStreams full-depth transect rows as they are read from the backend.
streamTimeSeriesStreams time-series chunks as they are read from the backend.
streamTransectStreams ordered chunks of a one-level transect.
streamVerticalProfileStreams vertical-profile chunks as they are read from the backend.
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
BrowserNameBrowser names used for WebGL compatibility handling.
CalendarDateRepresents a date in a calendar system.
CesiumHost-
CFCalendarSupported CF calendar types.
ColorMapNameName of a bundled Matplotlib-inspired colormap.
CRSCRS identifier understood by proj4 (for example EPSG:4326 or EPSG:32630).
CRSDefinitionProjection definition accepted by proj4.
CubeCrossSectionPoint-
ElevationModeControls whether vertical coordinates are interpreted as heights or depths.
MultiscaleFormatSupported conventions for discovering multiscale Zarr levels.
OnAuthError-
QueryGeometryGeometry accepted by the shared query API. Only points are implemented currently.
QueryPositionWGS84 longitude/latitude coordinate used by convenience query APIs.
SliceArgsRepresents a multidimensional slice argument for Zarr array indexing.
TransformRequest-
VelocityWindOptions-