djura.data_loader

Download, cache, and load the bundled NGA-West2 dataset.

See Bundled dataset (NGA-West2) for a user-facing explanation of how the dataset is distributed and how to configure a custom path.

Download, cache, and load the bundled NGA-West2 pickle dataset.

The dataset is too large (>100 MB) to ship inside the wheel, so it is hosted as a gzip-compressed asset on a GitHub Release and fetched on first use into a per-user cache directory.

djura.data_loader.load_data()[source]

Return the deserialized dataset, downloading and caching it if needed.

Return type:

Any

djura.data_loader.clear_cache()[source]

Remove the cached dataset so it is re-downloaded on next load_data().

Return type:

None

djura.data_loader.get_nga_west2()[source]

Return the NGA-West2 metadata, loading it at most once per process.

Override the source by setting the DJURA_METADATA_PATH environment variable to the path of a custom pickle file.

Return type:

Any