Skip to main content

CryoSwath

GitHub top language Conda Version DOI GitHub License Conda Downloads PyPI - Downloads

CryoSwath is a Python package for processing CryoSat-2 SARIn data, from waveform-level processing to gridded elevation products.

What CryoSwath provides

  • Discovery of CryoSat-2 tracks over a region of interest
  • L1b download and preprocessing
  • Swath and POCA elevation retrieval
  • Aggregation to regular spatial/temporal grids
  • Gap filling and trend estimation workflows

Important notes

  • Install CryoSwath in a dedicated environment (pixi, conda/mamba, venv, or uv). The dependency tree is broad, and future dependency conflicts are otherwise likely.
  • Supported Python version: >=3.12.
  • Downloading CryoSat SARIn L1B resources requires an ESA EO account. MAAP assets use a personal MAAP offline token; Science Server FTP fallback uses ESA username/password credentials.
  • Automatic RGI downloads from NSIDC require NASA Earthdata credentials; see the prerequisites docs for setup details.
  • CryoSat SARIn L1b track discovery uses MAAP anonymously. When MAAP cannot provide a usable asset, downloads fall back to the authenticated CryoSat Science Server FTP service.
  • Anonymous FTP login does not grant access to CryoSat product directories.
  • Install xarray and zarr together to avoid version mismatches.

Installation

For full setup details, see the docs: cryoswath.readthedocs.io

For development setup and contribution checks, see CONTRIBUTING.md.

git clone https://github.com/j-haacker/cryoswath.git
cd cryoswath
pixi install --locked -e test
pixi run -e test test-unit

For an interactive shell in the project environment:

pixi shell -e test

Option 2: install from conda-forge

mamba create -n cryoswath conda-forge::cryoswath
mamba activate cryoswath

Option 3: editable install from source

git clone https://github.com/j-haacker/cryoswath.git
mamba env create -n cryoswath -f cryoswath/environment.yml
mamba activate cryoswath
mamba install pip
pip install --editable cryoswath

Option 4: reproducible Pixi environment

git clone https://github.com/j-haacker/cryoswath.git
cd cryoswath
pixi install --locked -e test
pixi shell -e test

This uses the lock file and is the most robust option when dependency resolvers disagree.

Contributor lockfile workflow

For regular development runs:

pixi install --locked -e test

If you change dependency manifests (pyproject.toml and/or pixi.toml):

pixi lock
pixi run -e test test-unit
pixi run -e docs docs-build

Optional: Docker image

If local dependency resolution fails, you can use Docker. The image provides the CryoSwath runtime and the base JupyterLab kernel:

docker run -it -p 8888:8888 -v <proj_dir>:/home/jovyan/project_dir cryoswath/jupyterlab:nightly

Find setup instruction in the prerequisite documentation.

Configure a project

CryoSwath keeps project data outside the package install directory. If no configuration file is present, paths default to ./data relative to the current working directory. For a reusable project configuration, run the bootstrap commands inside a project folder:

mkdir <proj_dir>
cd <proj_dir>
cryoswath create-config
cryoswath download-aux-data
cryoswath get-tutorials

cryoswath create-config writes cryoswath.cfg with your base data path. cryoswath download-aux-data installs the Zenodo auxiliary-data baseline. cryoswath get-tutorials copies packaged tutorial notebooks to tutorials/. The tutorial notebooks assume CryoSwath is installed in the active Python environment and import it directly. You can also set CRYOSWATH_DATA or more specific CRYOSWATH_* path variables; environment variables override config files. Set CRYOSWATH_CONFIG to select a config file explicitly. Legacy config.ini files are still read.

MAAP downloads require a personal ESA MAAP offline token associated with an ESA EO Sign-In account. Store it in keyring with cryoswath update-maap-token, or set ESA_MAAP_OFFLINE_TOKEN for automation. The token is different from an ESA username/password and should not be stored in cryoswath.cfg or .netrc. The authenticated Science Server FTP fallback uses existing ESA username/password credentials. Generate a 90-day token through the ESA MAAP portal.

Tutorials and documentation

External dependencies and data

CryoSwath relies on:

  • Python dependencies: requirements.txt
  • reference elevation models
  • RGI glacier outlines

The package points to required external resources during setup and use.

Known limitations

  • ESA's data server is not reachable from all internet service providers.
  • Projected RGI basin geometries can sometimes be invalid; use .make_valid() where required.
  • Most testing and validation has focused on the Arctic.

Further details: open issues

Citation and attribution

If you use CryoSwath, please cite:

@software{cryoswath,
  author       = {Haacker, Jan},
  title        = {CryoSwath 0.2.10},
  month        = nov,
  year         = 2026,
  publisher    = {Zenodo},
  version      = {0.2.10},
  doi          = {10.5281/zenodo.14825358} % concept DOI on release; update to specific afterward
}

Please also acknowledge upstream data/resources used in your workflow:

License

MIT. See LICENSE.txt.

Metadata

Release files for cryoswath 0.2.10

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

Source distribution (sdist)

Source distribution for cryoswath 0.2.10
File Size Uploaded Provenance Actions
cryoswath-0.2.10.tar.gz 172.6 kB With provenance Details for cryoswath-0.2.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cryoswath 0.2.10
File Interpreter ABI Platform Actions
cryoswath-0.2.10-py3-none-any.whl Python 3 none any Details for cryoswath-0.2.10-py3-none-any.whl

Total release size: 351.9 kB

Release files / cryoswath-0.2.10.tar.gz

Download URL cryoswath-0.2.10.tar.gz
Size 172.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2f15c95011bcd91eac8a1880ada5f2a48fe28891775f3a9edfa5dc17b4ecf55e
BLAKE2b-256 checksum
How to use checksums
12386d319aeafcf46fdafa3011ae70a7e6f9a55ad43f5e447ad0228aaf338167
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 5, 2026.

Transparency log

Release files / cryoswath-0.2.10-py3-none-any.whl

Download URL cryoswath-0.2.10-py3-none-any.whl
Size 179.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99647d0c4a358aacbfe99b74d8bbe7eeefeb9bc6e9fe4b47da4587e7bbdd9b8c
BLAKE2b-256 checksum
How to use checksums
a5f9cd7c77937b11b22b69e3bdfa4c1aff1f77e5963b10e8cf54993f03d7b6a5
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 5, 2026.

Transparency log

Security for cryoswath 0.2.10

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 cryoswath-0.2.10.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 5, 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.

Release history Release notifications | RSS feed

This release

0.2.10 This release

2 release files Full provenance

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