https://github.com/noaa-mdl/tdlpackio
Python interface for reading and writing TDLPACK data.
https://github.com/noaa-mdl/tdlpackio
f2py fortran python python-interface statistical-postprocessing statistics weather
Last synced: 10 days ago
JSON representation
Python interface for reading and writing TDLPACK data.
- Host: GitHub
- URL: https://github.com/noaa-mdl/tdlpackio
- Owner: NOAA-MDL
- License: gpl-3.0
- Created: 2017-03-18T12:35:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T17:00:40.000Z (19 days ago)
- Last Synced: 2025-04-19T04:16:48.500Z (18 days ago)
- Topics: f2py, fortran, python, python-interface, statistical-postprocessing, statistics, weather
- Language: Fortran
- Homepage: https://noaa-mdl.github.io/tdlpackio
- Size: 44.2 MB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytdlpack
[](https://app.travis-ci.com/eengl/pytdlpack)
[](https://www.python.org/downloads/release/python-360/)
[](https://www.python.org/downloads/release/python-370/)
[](https://www.python.org/downloads/release/python-380/)
[](https://www.python.org/downloads/release/python-390/)
[](https://www.python.org/downloads/release/python-3100/)
[](https://badge.fury.io/py/pytdlpack)## Introduction
NOAA/NWS Meteorological Development Lab ([MDL](https://www.weather.gov/mdl/)) produces model output statistics (MOS) for a variety of NOAA/NCEP Numerical Weather Prediction (NWP) models. MOS is produced via MDL's in-house MOS-2000 (MOS2K) Fortran-based software system. MOS2K uses a GRIB-like binary data format called TDLPACK. `pytdlpack` is a Python interface to reading and writing TDLPACK files. A brief introduction to TDLPACK files and data format can be found [here](TDLPACK.md).
## Motivation
Provide a Python interface for reading and writing TDLPACK files.
## Requirements
* Python 3.6+
* setuptools 34.0+
* NumPy 1.12+
* GNU or Intel Fortran compiler## Installation
```shell
pip3 install pytdlpack
```### Build and Install from Source
```shell
python3 setup.py build_ext --fcompiler=[gnu95|intelem] build
python3 setup.py install [--user |--prefix=PREFIX]
```
## ModulesThe pytdlpack package contains 2 modules. See the docstrings for usage of each module
### pytdlpack
```python
import pytdlpack
```### TdlpackIO
```python
import TdlpackIO
```
**IMPORTANT:** ```TdlpackIO``` is **experimental** and it usage and functionality could change with future releases. TdlpackIO is a pure python implementation for reading TDLPACK "sequential" files (i.e. Fortran variable-length record binary files). Currently, it does not read TDLPACK random-access files and it may never have that capability. It requires ```pytdlpack``` for unpacking records.