Convert netCDF to other formats.
Project description
nc-convert
Convert netCDF files to other formats
Usage
pip install "ncconvert[cli]"
ncconvert to_csv data/*.nc --output-dir output_data/ --verbose
Formats other than csv are also supported. To see more information about supported formats, run
ncconvert --help
A python API is also available for each format, e.g.:
import xarray as xr
from ncconvert import to_csv
ds = xr.open_dataset("netcdf-file.nc")
to_csv(ds, "output_folder/filename.csv")
Developing
Create a python environment using at least python 3.8, then install the requirements:
pip install ".[dev,cli]"
Run make coverage
to generate a report of test coverage.
Releasing the package is as simple as creating a tagged release in GitHub. Make sure to create a new tag using vX.Y.Z
format, where X
is the major version, Y
is the minor version, and Z
is the micro version. Set the release title
to X.Y.Z
.
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
ncconvert-0.1.3.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for ncconvert-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b098cdf656c1fbf2d2c44fb37dcacc927ba8040b5093d83bc4692042b74c2182 |
|
MD5 | 331fc200898d5760eeb35f844864e68a |
|
BLAKE2b-256 | 6c5a297d82f02a7322667880e0b6a1f85e254e2eacb73bbfdcedbf0330bbe3fc |