Skip to main content

Provide a unified way to read a data collection, independent of the underlying data representation.

Project description

Altimetry-io

A library providing a unified way to read an altimetry data collection, independent of the underlying data representation.

  • Relies on Files Collections for NetCDF files collections reading
  • Can also read ZCollections format

Installation

conda install altimetry-io -c conda-forge

Use

from altimetry.io import AltimetryData, FileCollectionSource

alti_data = AltimetryData(
    source=FileCollectionSource(
        # Path to a local directory containing NetCDF data
        path="data_dir",
        # Available ftype: SWOT_L2_LR_SSH, SWOT_L3_LR_SSH, SWOT_L3_LR_WIND_WAVE, NADIR_L2, NADIR_L3
        ftype="SWOT_L3_LR_SSH",
        # Available ftype for SWOT_L3_LR_SSH: Basic, Expert, Unsmoothed, Technical
        subset="Unsmoothed"
    ),
)

ds = alti_data.query_orbit(
    cycle_number=13,
    pass_number= [153, 155],
    variables=["time", "latitude", "longitude", "quality_flag", "ssha_unedited"],
    polygon=(-151, -109, 71, 78)
)
print(ds.sizes)

Output:

Frozen({'num_lines': 15893, 'num_pixels': 519})
print(list(ds.data_vars))

Output:

['quality_flag', 'ssha_unedited', 'cycle_number', 'pass_number']

Project status

⚠️ This project is still subject to breaking changes. Versioning will reflects the breaking changes using SemVer convention

License

Apache 2.0 — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

altimetry_io-0.2.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

altimetry_io-0.2.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file altimetry_io-0.2.0.tar.gz.

File metadata

  • Download URL: altimetry_io-0.2.0.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for altimetry_io-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98f62a6b59f12d368e984cd036eaf794f2d9cab916235cdf17eb2c462b917d2c
MD5 2d86eb0e0ac4ca687c78c7f06137815e
BLAKE2b-256 581191f7aed3d29fdfb121e3286381e1341b7cc117ed86ecc898a8e04c2400a9

See more details on using hashes here.

File details

Details for the file altimetry_io-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: altimetry_io-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for altimetry_io-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76a4b7f52c343e2a1a2904fce1e53ce3952118a776bd1f2c95a7a3aa0598150b
MD5 f2e06b3e4a0acd3e2f4c654198cc25f1
BLAKE2b-256 10983579692840cfef50249cf859ce11d26ac40db022508575d35d9fc57a8390

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page