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.1

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.1
File Size Uploaded
ncplot-0.4.1.tar.gz 2.7 MB Details

Built distribution (wheel)

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

Total release size: 2.8 MB

Release files / ncplot-0.4.1.tar.gz

Download URL ncplot-0.4.1.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
4b31b8e6234448e4fce94d5d6ac07f28ebd0dd4c9f1244fc093e9175a0294dba
BLAKE2b-256 checksum
How to use checksums
1671296c94f0684f085b762f5114c9ac75e4235fab09bb0688d7f6c90099f5ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

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

Download URL ncplot-0.4.1-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
888ddfe9d6afc2da6330eb9dd28596fc58a1023c0ce8deb25c3b10ac4d4dd9e5
BLAKE2b-256 checksum
How to use checksums
f36e80bea1c68002d2a78e61d7f595b7ea5204fc1231ae59306b06d4d52203de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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