Skip to main content

Python interface for reading and writing TDLPACK data

Project description

# pytdlpack

[![Build Status](https://travis-ci.com/eengl/pytdlpack.svg?branch=master)](https://travis-ci.com/eengl/pytdlpack) [![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) [![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/) [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/) [![PyPI version](https://badge.fury.io/py/pytdlpack.svg)](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+ * 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] ` ## Modules

The 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.

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

pytdlpack-1.0.4.tar.gz (46.3 MB view details)

Uploaded Source

File details

Details for the file pytdlpack-1.0.4.tar.gz.

File metadata

  • Download URL: pytdlpack-1.0.4.tar.gz
  • Upload date:
  • Size: 46.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for pytdlpack-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c9f9f6540c8e6a3725f06dbb48d36b8be265cac3181a134581991f3ff345d038
MD5 54ee190b9a780b87f4546e6541cab83f
BLAKE2b-256 7d16118f8a5550ee1a502013888ac714bab0befebdbf65e508f0eadbb479b3c6

See more details on using hashes here.

Supported by

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