File format conversions to cfdb
Project description
cfdb-ingest
Convert meteorological model output to cfdb with standardized CF conventions
Documentation: https://mullenkamp.github.io/cfdb-ingest/
Source Code: https://github.com/mullenkamp/cfdb-ingest
Overview
cfdb-ingest converts meteorological file formats (netCDF4/HDF5) from various model outputs into cfdb. It standardizes variable names and attributes to be consistent with CF conventions, making it straightforward to work with datasets from different sources through a single interface.
Key features:
- Automatic variable mapping -- source variable names are translated to CF-standard names with proper metadata
- Wind rotation -- grid-relative wind components are rotated to earth-relative
- 3D level interpolation -- eta-level variables are interpolated to user-specified height or pressure levels
- WPS intermediate file export -- convert cfdb datasets to WPS intermediate format for metgrid.exe
- Spatial and temporal filtering -- subset by bounding box and/or date range
- Multi-file support -- seamlessly spans multiple input files
Installation
Requires Python >= 3.10.
pip install cfdb-ingest
Quick Start
from cfdb_ingest import WrfIngest
wrf = WrfIngest('wrfout_d01_2023-02-12_00:00:00.nc')
wrf.convert(
cfdb_path='output.cfdb',
variables=['T2', 'WIND10'],
start_date='2023-02-12T06:00',
end_date='2023-02-12T18:00',
)
cfdb-ingest wrf wrfout_d01_*.nc output.cfdb -v T2,WIND10 -s 2023-02-12T06:00 -e 2023-02-12T18:00
For WPS export, use the --preset wps flag:
cfdb-ingest wrf /path/to/wrfout/ output.cfdb --preset wps -s 2023-02-10 -e 2023-02-10_06
cfdb-to-int output.cfdb -s 2023-02-10 -e 2023-02-10_06
See the full documentation for details.
License
This project is licensed under the terms of the Apache Software License 2.0.
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
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 cfdb_ingest-0.3.0.tar.gz.
File metadata
- Download URL: cfdb_ingest-0.3.0.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dc86eea693073058c90b78bda280af124f8dd6be1e6e65dc975f91275ebcdd1
|
|
| MD5 |
9ee7285ff78d0e79a5ff2c4b6827aad0
|
|
| BLAKE2b-256 |
df3b5c84dda4645b6d614c1cb20a8d35b81cbec5d81215584761eeefee2a7b24
|
File details
Details for the file cfdb_ingest-0.3.0-py3-none-any.whl.
File metadata
- Download URL: cfdb_ingest-0.3.0-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84dec4e01eac563545f097f2080867c64f4347ccb39c50264ca53d097430788e
|
|
| MD5 |
6fba390507331d9a33a930c3b943f172
|
|
| BLAKE2b-256 |
e2964af4a689e173dfeae0e72dbae5720faa365fa46dd5d09cb36ddaf5ea1ce9
|