Combine DALES MPI-split NetCDF tiles into an HDF5 virtual dataset (VDS).
Project description
DALES tile combiner
This script combines DALES MPI-split NetCDF (.nc) files into a single HDF5 Virtual Dataset (VDS) file. This HDF5 file is made in such a way as to appear like a netCDF file, so most readers I've tried don't even know it's a VDS.
The resultant file can be read with any of your usual netCDF tools, and all attributes in the original files should be preserved.
Installation
Install dependencies via requirements.txt:
pip install -r requirements.txt
Usage
python dales_tile_combiner.py <data_directory>
given the directory
<data_directory>
fielddump.000.000.001.nc
fielddump.000.001.001.nc
fielddump.000.002.001.nc
fielddump.000.003.001.nc
yields
fielddump.nc # is an in-file relative symbolic link to <data_directory>
<data_directory>
fielddump.000.000.001.nc
fielddump.000.001.001.nc
fielddump.000.002.001.nc
fielddump.000.003.001.nc
yields The script automatically detects known file types (fielddump, cape, surfcross, slrbcross, crossxy, crossxz, crossyz) and generates combined VDS files in the current directory (e.g., fielddump.nc).
Crosssections
Crosssections made with modcrossection (crossxy, crossxz, crossyz) are all combined into a single file. They are combined along dimension (zt/zm, yt/ym, xt/xm) respectively and given coordinate (zt/zm, yt/ym, xt/xm) corresponding to their INDEX. (not their actual coordinate as that information is not available within the crosssection file)
Limitations
- There is no support yet for LSM crosssections like lsmcrossyz and lxmcrossxz.
- The resultant file does not contain the actual data, merely (relative) links to the data files. Moving the datafiles thus breaks the VDS file.
Bugs?
Please raise an issue and let me know if I can do anything.
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 dales_tile_combiner-0.1.0.tar.gz.
File metadata
- Download URL: dales_tile_combiner-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc206b467b703ad8055d6ddc5b70af6758b9bfe43b13b9e08d0cc6a19f48062
|
|
| MD5 |
5a8986973b827f1ac8f9f95f1f62bcd2
|
|
| BLAKE2b-256 |
d13194f91b66feb1b83cbdcbed5fa8dc25c0f4cdfe67669e30cfc315cf34c7ea
|
File details
Details for the file dales_tile_combiner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dales_tile_combiner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db09fd964fbdf40d822809b637da3014995d27c85cfabb91513cd30c601b8344
|
|
| MD5 |
324a1494034c691ab51501f53a5ece6f
|
|
| BLAKE2b-256 |
f1b1b6dc3fed86836657aa2102c233de5bab1302bda79e76522c25ff81a7a9e3
|