Skip to main content

ncPyTools README

Python tools for the handling of netcdf files based on the python-netCDF4 library. These tools currently only support files of netcdf classic structure.

Tools inlcuded

ncdfView

Simple python wrapper around the python-netCDF4 library to read netcdf files from the command line.

Useage

Help-string:

ncdfView.py [-h] [-o] [-q QUIET] [-n NOMASK] [filename]

Read netcdf files from command line.

positional arguments:
  filename              Filename of the netfdf file to open.

optional arguments:
  -h, --help            show this help message and exit
  -o, --object          Open file as pure netCDF4 object.
  -q QUIET, --quiet QUIET
                        Suppress header outputs.
  -n NOMASK, --nomask NOMASK
                        Don't mask fill values

In order to obatin an interactive prompt with the netcdf file loaded into a the ncdfView object called nc launch:

python3 -i -m ncPyTools.ncdfViewncPyTools.ncdfView

netCDFTemplate:

Useage

Help-string:

usage: netCDFTemplate [-h] [-c COMPRESS] yamlfile

Create netcdf file from yaml metadata.

positional arguments:
  yamlfile              yaml metadata file.

optional arguments:
  -h, --help            show this help message and exit
  -c COMPRESS, --compress COMPRESS
                        Compression level (0 = no compression, 9 = maximum
                        compression)

Example yaml metadata file:

filename: month_flux_2006c.nc
dimensions:
    t: None
    y: 45
    x: 72
unlimited_shape:
    t: 12
variables:
    LAT:
        long_name: latitude
        units: degrees_north
        value: 1.e12
        fill_value: 1.e12
        dimensions: y
        type: f4
    LON:
        long_name: longitude
        units: degrees_east
        value: 1.e12
        fill_value: 1.e12
        dimensions: x
        type: f4

Installation:

After downloading the source from github install via pip, descending into the top-level of the source tree and launching:

pip install .

or to install in developers mode:

pip install -e .

Or install the latest releaase from PyPI:

pip install ncPyTools

Documentation:

Documentation of this package can be found readthedocs.

Metadata

Release files for ncPyTools 20.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ncPyTools 20.4
File Size Uploaded Provenance Actions
ncPyTools-20.4.tar.gz 23.2 kB Without provenance Details for ncPyTools-20.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ncPyTools 20.4
File Interpreter ABI Platform Actions
ncPyTools-20.4-py2.py3-none-any.whl Python 3, Python 2 none any Details for ncPyTools-20.4-py2.py3-none-any.whl

Total release size: 45.7 kB

Release files / ncPyTools-20.4.tar.gz

Download URL ncPyTools-20.4.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
25fe981e11bc0e9f804164b376893f11cb4c33abefd76166c23cf655bf3bc7b8
BLAKE2b-256 checksum
How to use checksums
a3218c14803e8557bf6d6bdf0d085ff595626d928617a5faa2ae8c37025e620b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release files / ncPyTools-20.4-py2.py3-none-any.whl

Download URL ncPyTools-20.4-py2.py3-none-any.whl
Size 22.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5f52bab8cc1d894efc3323e5c970ddbce1a72b9a3ffbf1a09ae77c06d3d9dde5
BLAKE2b-256 checksum
How to use checksums
5e349537145be9540a4ca191575a49dcba4b3cc48e16760320aa015fe6ae54ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Security for ncPyTools 20.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.

Release history Release notifications | RSS feed

This release

20.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page