Skip to main content

PyPI version Downloads GitHub issues

AntADatabase

Visit antadatabase.com to explore the database in 3D or download it, and the documentation for full examples.

SQL database for the AntArchitecture Community Data

AntADatabase is a Python package providing efficient access to Internal Reflecting Horizons (isochrones) data across Antarctica. Designed for ice sheet modelers, it offers fast, memory-efficient data structures to constrain models with published IRH data.

Key Features

  • SQL Indexing: Fast querying of IRH data by dataset, institute, project, age, region, basin, variable, or line ID
  • netCDF Storage: Data stored in netCDF-4 (HDF5) files for optimal read performance
  • Plotting Tools: Built-in visualization functions for quick data exploration
  • Lazy Data Generation: Generate data for later use

Data Variables

Each dataset contains (when available):

  • PSX, PSY: Coordinates
  • Distance: Along-track distance
  • IRH_DEPTH: Internal Reflecting Horizon depth
  • IRH_NUM: Number of traced IRHs per point
  • ICE_THK: Ice thickness
  • SURF_ELEV: Surface elevation
  • BED_ELEV: Bed elevation

Installation

pip install anta_database

This installs what is needed to query and plot the database. Optional extras:

pip install "anta_database[compile]"  # compile the database from raw data
pip install "anta_database[pism]"     # plot comparisons with PISM outputs
pip install "anta_database[all]"      # everything

For the latest development version:

pip install git+https://github.com/antoinehermant/anta_database.git

Downloading the data

Download the database, or update it to the latest published version (only new or changed files are downloaded):

from anta_database import sync
sync()                            # default local directory
sync("/path/to/AntADatabase/")    # or a directory of your choice

or from the command line: anta-sync --dir /path/to/AntADatabase/. From an existing Database, use db.sync(), or Database(sync=True) to always sync when loading.

When loading a synced database, Database tells you if a newer version is published (disable with check_updates=False). Updates are never downloaded without you asking, so your results only change when you decide to sync.

Keep the package up to date as well (pip install -U anta_database): if some features of the latest data need a newer package, sync() and Database print a warning. In the unlikely case of a breaking change to the data format, each package version keeps syncing the data it can read, and a newer package is needed to get the new data.

When sync() downloads files, it sends one anonymous count (first download or later sync, number of files and bytes, package and database versions) for the download statistics of the AntADatabase; nothing that identifies you is kept. Turn it off with ANTA_NO_STATS=1, sync(stats=False) or anta-sync --no-stats. See antadatabase.com/privacy.

Quick Start

from anta_database import Database

# Load the database (without a path, uses the default directory of sync())
db = Database()

# Query data by various criteria
db.query(dataset="Cavitte_2020", age=10000)

# Visualize data
db.plot.var(title="My IRH Data")

Documentation

Full documentation and examples are available in the documentation.

Data Access

The AntADatabase is free to download with sync() (see Downloading the data). Any data used must be cited at source using the DOIs provided in the metadata.

Support

Citation

If you use this tool in your work, please cite this repository and the original data sources using their provided DOIs.

Acknowledgments

Developed as part of the CHARIBDIS project (Swiss National Science Foundation grant no. 211542).

Metadata

Release files for anta-database 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anta-database 0.6.3
File Size Uploaded Provenance Actions
anta_database-0.6.3.tar.gz 8.3 MB With provenance Details for anta_database-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anta-database 0.6.3
File Interpreter ABI Platform Actions
anta_database-0.6.3-py3-none-any.whl Python 3 none any Details for anta_database-0.6.3-py3-none-any.whl

Total release size: 10.7 MB

Release files / anta_database-0.6.3.tar.gz

Download URL anta_database-0.6.3.tar.gz
Size 8.3 MB
Tags Source
SHA-256 checksum
How to use checksums
0d67ad0f0f0df61a67c35af3a2b68f9199da70b57ef6edd875fd2e9513063834
BLAKE2b-256 checksum
How to use checksums
39587aacd21982372e84020f55398bdd86f7ac33bdca600185b2d78129ee13bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / anta_database-0.6.3-py3-none-any.whl

Download URL anta_database-0.6.3-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f76d04bf15ae581382073289f199282f4a9c6b65a2b030f2b1fbfa15a86bf5fc
BLAKE2b-256 checksum
How to use checksums
55c2dbfa873732bb9d6e4595ff2328132790f08e2aa92fb57932888c6df89db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for anta-database 0.6.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anta_database-0.6.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page