Read GEMPAK data with pure Python.
Project description
gempakIO
gempakIO is a pure-Python package that will read and write GEMPAK grid, sounding, and surface data. Because Python is platform independent, this brings the ability to read GEMPAK data in Windows much more easily.
How It Works
gempakIO uses three decoding classes (GempakGrid, GempakSounding, and GempakSurface) to read each respective data type. Three other classes (GridFile, SoundingFile, and SurfaceFile) are used to write GEMPAK data. Because of how the code is structured, data from the GEMPAK files is lazily loaded. You only do I/O on the data that you select and avoid as much unnecessary loading as possible. For more information on reading data, see the documentation for the GempakGrid.gdxarray, GempakSounding.snxarray, GempakSurface.sfjson methods. More information about writing data can be found in the documentationn for GridFile.to_gempak, SoundingFile.to_gempak, and SurfaceFile.to_gempak. There is a notebook with examples in it to help you get started.
Things Not Currently Implemented
- GEMPAK grids can be packed using GRIB2 compression. These files cannot be decoded yet, but plans are in place to add that functionality.
- GEMPAK grids packed with the NMC method cannot be read. I have not found a file to test in the wild so this may not get added.
- GEMPAK had conversion methods for floating point number representations (e.g., IBM, IEEE, etc.). This package assumes IEEE. As it is relatively unlikely that there are much data not using IEEE floats, there is no plan to add conversions from other formats unless the need arises.
- GEMPAK sounding and surface files can have their parameter data packed/compressed, but this is not currently implemented. GEMPAK grids do have basic GRIB packing by default, but GRIB2 packing is not implemented at this time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file gempakio-1.4.4.tar.gz.
File metadata
- Download URL: gempakio-1.4.4.tar.gz
- Upload date:
- Size: 89.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a903971834029511ceee0e4f8fdf95eb70f97e0440236e36721b057d0e629e91
|
|
| MD5 |
89539c46bfe4a846e55520372ca1f039
|
|
| BLAKE2b-256 |
dbb4dd09ddc757005a0af920e0619d7a1b89499b73049f77bba598d25ef3e092
|
Provenance
The following attestation bundles were made for gempakio-1.4.4.tar.gz:
Publisher:
release.yml on nawendt/gempakio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gempakio-1.4.4.tar.gz -
Subject digest:
a903971834029511ceee0e4f8fdf95eb70f97e0440236e36721b057d0e629e91 - Sigstore transparency entry: 1630754929
- Sigstore integration time:
-
Permalink:
nawendt/gempakio@d25203741137664bbf24110589fddeb7e005b021 -
Branch / Tag:
refs/tags/v1.4.4 - Owner: https://github.com/nawendt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d25203741137664bbf24110589fddeb7e005b021 -
Trigger Event:
push
-
Statement type: