Lightweight NetCDF viewer with detached plot windows, GIF export, and full matplotlib customization.
Install
pip install nc2
Requires Python 3.8+. Cartopy is needed for map projections (optional for non-geographic data).
Usage
nc2 # launch empty, open file from menu
nc2 data.nc # open a file directly
python -m nc2 data.nc4 # alternate invocation
Features
- Spatial plots -- pcolormesh, contourf, contour, imshow, quiver, streamplot
- Vertical sections -- depth vs. lat/lon cross-sections
- Timeseries -- click any point to extract temporal evolution
- Depth profiles -- vertical structure at a point
- GIF export -- animate over time with configurable FPS and frame range
- Full matplotlib API -- normalization (log, symlog, power), interpolation, alpha, colorbar controls, contour styling, quiver/streamplot parameters
- 182 colormaps -- every registered matplotlib colormap at runtime
- Cartopy projections -- PlateCarree, Mercator, Robinson, Orthographic, and more
- Flexible dimensions -- auto-detects time/depth/lat/lon, manual override for non-standard files
- Extra dimensions -- unassigned dims get their own sliders automatically
- Playback -- animate through time with loop/bounce/once modes and speed control
- Detached windows -- each plot is an independent matplotlib window with toolbar
- Batch export -- export all frames as individual images
- Performance -- LRU slice cache, lazy coordinate loading, threaded I/O
Dependencies
| Package | Purpose |
|---|---|
| numpy | Array operations |
| matplotlib | Plotting engine |
| netCDF4 | File I/O |
| cartopy | Map projections and features |
| ttkbootstrap | GUI styling |
| Pillow | Image handling |
| imageio | GIF assembly |
License
GPL-3.0. Copyright (c) 2026 Rhett R. Adam.
Metadata
Release files for nc2 2.1.0
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 |
|---|---|---|---|---|
| nc2-2.1.0.tar.gz | 85.5 kB | Without provenance | Details for nc2-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nc2-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for nc2-2.1.0-py3-none-any.whl |
Total release size: 172.8 kB
Release files / nc2-2.1.0.tar.gz
| Download URL | nc2-2.1.0.tar.gz |
|---|---|
| Size | 85.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f32e0896363ce5cff4a18b5abaf7f47f74f0bca5ffc0398637ab6742f55b833f
|
|
BLAKE2b-256 checksum How to use checksums |
a1d61ed11ef5679267ba21f935e0c1237f16cc6a396d69a7959d3199665af322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / nc2-2.1.0-py3-none-any.whl
| Download URL | nc2-2.1.0-py3-none-any.whl |
|---|---|
| Size | 87.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f184a12d4d85b4026b42c8af4f79b05e6a7b477dd71999865c7be4f54f7aec7f
|
|
BLAKE2b-256 checksum How to use checksums |
0d54a99bf8353a744bf3c3b4ac91ac702fbc89a441e645842eed408748e9ad1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Security for nc2 2.1.0
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.