Skip to main content

NCPlot

pypi Documentation Status

NCPlot

Easy interactive viewing of NetCDF files in Python.

An easy to use Python (3.6 and above) package for quickly plotting the contents of NetCDF files or xarray datasets in Python or on the command line.

This package is designed to work with CF compliant NetCDF data.

Installation

To install from conda:

conda install -c conda-forge ncplot

To install from pypi:

pip install ncplot 

Install the development version using using pip:

pip install git+https://github.com/pmlmodelling/ncplot.git

How to use in Python

The package is made up of a simple and easy to use function: view. To visualize everything in a file:

from ncplot import view

view("example.nc")

or to visualize a specific variable or list of variables:

from ncplot import view

view("example.nc", vars)

where vars is either a string representing a variable or a list of variables.

If you want to plot xarray datasets dataarrays, first import the xarray accessor, then plot in a similar way to xarray's built in plotting method:

import ncplot.xarray
import xarray as xr

ds = xr.open_dataset("example.nc") 
ds.ncplot.view()

How to use on the command line

Command line usage is as simple as:

ncplot example.nc

Reference and tutorials

A full API reference, and a how-to guide are available at the NCPlot website and on readthedocs.

Metadata

Release files for ncplot 0.4.2

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

Source distribution (sdist)

Source distribution for ncplot 0.4.2
File Size Uploaded Provenance Actions
ncplot-0.4.2.tar.gz 2.9 MB Without provenance Details for ncplot-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ncplot 0.4.2
File Interpreter ABI Platform Actions
ncplot-0.4.2-py3-none-any.whl Python 3 none any Details for ncplot-0.4.2-py3-none-any.whl

Total release size: 3.0 MB

Release files / ncplot-0.4.2.tar.gz

Download URL ncplot-0.4.2.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
0c132bea300ec5c443d998af8f3d3ffcbe1ca0a617eca9d8d8a87bf1d8c6d286
BLAKE2b-256 checksum
How to use checksums
c985727b7dade79173d3ae66429003e7a15a2b03171059254e49fed50ce22566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / ncplot-0.4.2-py3-none-any.whl

Download URL ncplot-0.4.2-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03c331fbbbf2b5c6dc03214be080b41825f0bd5bd87c22081a624c9e466dc369
BLAKE2b-256 checksum
How to use checksums
ff4b7d6658ab3cbcde85f9872ca6618d05699e4ca4abc6198597d294ba5aee4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for ncplot 0.4.2

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

0.4.2 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