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
Built Distribution
File details
Details for the file ncconvert-0.1.4.tar.gz
.
File metadata
- Download URL: ncconvert-0.1.4.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13bc81ca5ed65cb31d138f786f248d1fd340a0a798c3b77a7ac961ca4b1999f8 |
|
MD5 | a6e7dd181041c6ec9a00d1dc121b7b7f |
|
BLAKE2b-256 | 742ab8494d635d63fdaf33d03b87b15abf3a4ad1cdde534fc304f930230a4d45 |
File details
Details for the file ncconvert-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: ncconvert-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae05b1eb88bf32518ce89faf4fa8a1ea87527d6af0472e3f6fb23576104b73b6 |
|
MD5 | 18dce844c6170a3e385c589af1b66859 |
|
BLAKE2b-256 | 43936ffd374b655a06783f7be342b1aadf94f67053c419c154c31a30f7683d92 |