Skip to main content

PyPI version Downloads GitHub issues

AntADatabase

Visit the Home Page for full documentation and 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 flight ID
  • HDF5 Storage: Data stored in HDF5 format 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.

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 on the Home Page.

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.5.1

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.5.1
File Size Uploaded Provenance Actions
anta_database-0.5.1.tar.gz 7.8 MB With provenance Details for anta_database-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 9.9 MB

Release files / anta_database-0.5.1.tar.gz

Download URL anta_database-0.5.1.tar.gz
Size 7.8 MB
Tags Source
SHA-256 checksum
How to use checksums
dbad5fa10b3d89cae905a88d318884be6a643721099ffad6878f371b91e6b94b
BLAKE2b-256 checksum
How to use checksums
a7b2da10190eab993c94aace490d87356a52bbcea84b489e5f5f0e3b3f2dc9ea
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 Oct 28, 2026.

Transparency log

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

Download URL anta_database-0.5.1-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d4f2378de63ac05420bb791e79d18e996c96140c11343d7e6e81dbca06979b26
BLAKE2b-256 checksum
How to use checksums
3d61f0ebb28a66fb6122b802c01108c37d104d8a3cb56865f6a47ba95dbe7f47
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 Oct 28, 2026.

Transparency log

Security for anta-database 0.5.1

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.5.1.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 Oct 28, 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