Registry / database / odc-loader

odc-loader

JSON →
library0.6.4pypypiunverified

Tooling for constructing xarray objects from parsed metadata, part of the Open Data Cube ecosystem. Current version 0.6.4, requires Python >=3.10. Release cadence is irregular.

pip install odc-loader
INSTALL
IMPORT
SIG · ODC-LOADER
O
odc-loader
databasepythonv0.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ODCEra5
from odc.loader import ODCEra5
from odc.loader import ODCEra5

Basic usage: create an ODCEra5 object from an xarray dataset and a GeoBox.

import xarray as xr from odc.loader import ODCEra5 from odc.geo.geobox import GeoBox # Example: load ERA5 data ds = xr.open_dataset('path/to/era5.nc') gbx = GeoBox.from_bbox((112, -44, 154, -10), ...) odc_ds = ODCEra5(ds, geobox=gbx) print(odc_ds)
Debug
Known issues
breakingIn version 0.6.0, the 'grid' parameter in ODCEra5 was renamed to 'geobox'. Check all calls using the old parameter name.
fix
Replace grid=... with geobox=... when constructing ODCEra5 or other loader classes.
affects: >=0.6.0
gotchaCRS handling: The loader expects CRS information to be passed via GeoBox. Omitting CRS or using incompatible CRS leads to silent coordinate misalignment.
fix
Always supply a geobox with correct CRS (e.g., via GeoBox.from_crs) and ensure CRS matches your data.
affects: all
gotchaInstallation missing optional dependencies: odc-loader depends on odc-geo. If odc-geo is missing, imports fail with ModuleNotFoundError.
fix
Install both: pip install odc-loader odc-geo
affects: all
Upgrade
Version history
0.6.4latest on PyPI · released Jan 14, 2026
Audit
Dependencies
odc-georequiredProvides geometry and CRS utilities used by loader
xarrayrequiredCore dependency for constructing xarray objects
Agent activity
12 hits · last 30 days
node
12
Resources
odc-loader — pip install odc-loader · libregistry