Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.4580471
27 January 2026, 12:50:42 UTC
  • Code
  • Branches (0)
  • Releases (3)
  • Visits
    • Branches
    • Releases
      • 3
      • 3
      • 2
      • 1
    • 0e26676
    • /
    • pmlmodelling-ncplot-90f6735
    • /
    • README.md
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:b22c4a9d8c1840d2933194e48f99e6e3b2ec3ba8
    origin badgedirectory badge
    swh:1:dir:ac374409961452f2379311dfe50b017d3cd82032
    origin badgesnapshot badge
    swh:1:snp:23b28b3c5f98768718b058b80f93f6a55c0da318
    origin badgerelease badge
    swh:1:rel:eb85c9f1c6c27fa59180350f0067b439578aa8b0

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    README.md
    
    # ncplot - Easy interactive viewing of NetCDF files in Python 
    
    
    
    [![pypi](https://img.shields.io/pypi/v/ncplot.svg)](https://pypi.python.org/pypi/ncplot/)
    [![Documentation Status](https://readthedocs.org/projects/ncplot/badge/?version=latest)](https://ncplot.readthedocs.io/en/latest/?badge=latest)
    
    
    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](https://cfconventions.org/) compliant NetCDF data.
    
    ## Installation
    
    To install from conda:
    ```sh
    conda install -c conda-forge ncplot
    
    ```
    
    To install from pypi:
    ```sh
    pip install ncplot 
    ```
    
    Install the development version using using pip:
    ```sh
    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:
    
    ```sh
    from ncplot import view
    
    view("example.nc")
    
    ```
    
    or to visualize a specific variable or list of variables:
    
    ```sh
    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:
    
    
    ```sh
    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:
    
    
    ```sh
    
    
    ncplot example.nc
    
    ```
    
    
    
    
    
    
    
    
    
    
    
    
    # Reference and tutorials
    
    A full API reference, and a how-to guide are available at [readthedocs](https://ncplot.readthedocs.io/en/latest/).
    
    
    
    
    
    
    
    
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API