Rich NcDump
Features
This project provides an easy way of previewing netCDF files with nicely formatted text in your terminal. The information extracted from the .nc files are obtained in a similar way to this example, with some modifications. The source code used on the website can be downloaded as netcdf_example.py with:
$ curl -O http://schubert.atmos.colostate.edu/~cslocum/code/netcdf_example.py
To make the output more readable it is formatted using the python library rich.
Requirements
The project depends on the python packages click, netCDF4 and rich. Installation via pip or pipx ensures that all dependencies are installed correctly.
Installation
You can install Rich NcDump via pip from PyPI:
$ pip install ncdump-rich
or perhaps even better via pipx:
$ pipx install ncdump-rich
Usage
Please see the Command-line Reference for details.
Examples
Use the program as a previewer for .nc files, for example through stpv. My own fork provides additional support for previewing .nc files using this project.
Preview in lf
Similarly you can get preview of .nc files in nnn by including an option for the extension nc in the preview-tui plugin.
nc) fifo_pager ncdump-rich "$1" ;;
Preview in nnn
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the GPL 3.0 license, Rich NcDump is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.
Metadata
Release files for ncdump-rich 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ncdump_rich-0.5.4.tar.gz | 33.8 kB | Without provenance | Details for ncdump_rich-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ncdump_rich-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for ncdump_rich-0.5.4-py3-none-any.whl |
Total release size: 53.1 kB
Release files / ncdump_rich-0.5.4.tar.gz
| Download URL | ncdump_rich-0.5.4.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4655f645547fe140167c0ec0ac07d83e8d0649211d4cebe6c80e757e50c85282
|
|
BLAKE2b-256 checksum How to use checksums |
7ba38fb0439e14908993e8c3639f3bd5feed5398517fb8f15d6359fde12e06f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / ncdump_rich-0.5.4-py3-none-any.whl
| Download URL | ncdump_rich-0.5.4-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e429909d10daa4a5c546d41e561e54510276de4f949c1697e544694aa2a80c1
|
|
BLAKE2b-256 checksum How to use checksums |
979241238e04b0866ea2eab93f78a1729ac8ed32b87f825fca27fe5b2192d8eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for ncdump-rich 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.