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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file altimetry_io-0.2.1.tar.gz.
File metadata
- Download URL: altimetry_io-0.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01415494f615c046631fb1713bb4d53f0b678eab1daa9805330e189e2ec5d367
|
|
| MD5 |
5e11a5420f3a3b68bf6fb42b9dcda3dc
|
|
| BLAKE2b-256 |
86f6e7e8ac189d89f1d2ef63cfd9f1b22bd623f2274a42c21d2c56a55e31e9d3
|
File details
Details for the file altimetry_io-0.2.1-py3-none-any.whl.
File metadata
- Download URL: altimetry_io-0.2.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ee57baa86dac72543418cc8703c6ab3bcea420fe3ceab94947e71e6d708c0e
|
|
| MD5 |
77fec8353df7c2d5f420d5c53453b9e8
|
|
| BLAKE2b-256 |
a7c53a0064f3d18fc0519b6efaaaedfaa95619c1e46761cef542bd8794aa55b9
|