Skip to main content

An Odim hdf5 file reader.

Project description

pyodim

pyodim is a Python library for reading ODIM H5 radar files, transforming them into xarray datasets with geographic coordinates. This library is designed for users needing direct access to ODIM H5 files, providing tools to read and process radar data.

Table of Contents

Overview

The pyodim library provides essential functions for handling ODIM H5 radar data. It reads radar sweeps and converts them into xarray datasets, handling various metadata and radar coordinates transformations. The main function, read_odim, enables easy access to radar data in a format compatible with Python's data analysis ecosystem.

Installation

pyodim is available on PyPI:

pip install pyodim

It requires the following packages: h5py pyproj pandas numpy xarray dask.

Usage

The main entry point for pyodim is the read_odim function, which reads a sweep from an ODIM H5 file and outputs an xarray dataset.

Example

from pyodim import read_odim

# Read an ODIM H5 file
dataset = read_odim("radar_file.h5", nslice=0)
print(dataset)

read_odim takes the following parameters:

  • odim_file (str): Path to the ODIM H5 file.
  • nslice (int, optional): Sweep number to read (default is 0).
  • include_fields (List, optional): Fields to read.
  • exclude_fields (List, optional): Fields to exclude.
  • check_NI (bool, optional): Check Nyquist parameter consistency (default is False).
  • read_write (bool, optional): Open in read-write mode if True.

Feel free to contribute to pyodim by submitting issues or pull requests.

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

pyodim-0.5.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

pyodim-0.5.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pyodim-0.5.0.tar.gz.

File metadata

  • Download URL: pyodim-0.5.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyodim-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4e3abcae204e02de1e9b39a361e6b470ea774a76eec05713f02ab07f48343670
MD5 b0e11e28a05d292b7748efc0ed7824d5
BLAKE2b-256 4a3d36eebb8aa7d43abb232d547e34608a4779709e3cad0efc3dbab649e93a0e

See more details on using hashes here.

File details

Details for the file pyodim-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyodim-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyodim-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56581d921af36957a049c4014c81bd616f01ee120581ab5e2f4dd303d9535e38
MD5 08dc9fa05a3971df3a1b856c49a0be27
BLAKE2b-256 5cee744f0b748627ac94dc83881acfd2d05d89eb95231b18ee767143178e76e9

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