Skip to main content

ebas-plot

Plotting utilities for EBAS NetCDF datasets.

Installation

For normal use, install the latest released version from the public Python Package Index (PyPI):

python3 -m pip install ebas-plot

This installs a fixed release, such as 0.1.0, together with its required dependencies. It is the recommended installation method.

Usage

Command line

ebas-plot <url>

<url> can be a local EBAS NetCDF file or a remote EBAS dataset:

  • /path/to/dataset.nc
  • https://doi.nilu.no/doi/8HWP-FRNN
  • https://doi.org/10.48597/8HWP-FRNN
  • https://thredds.nilu.no/thredds/dodsC/ebas_doi/...
  • https://thredds.nilu.no/thredds/fileServer/ebas_doi/...

The plot type is selected automatically: datasets with a d_D dimension are shown as PNSD heatmaps; other supported EBAS datasets are shown as time series.

Choose the time-series rendering explicitly with --mode line or --mode scatter:

ebas-plot --mode scatter /path/to/dataset.nc

Datasets with a coarse resolution are shown as scatter points by default, and all others as lines. Scatter datasets can also be drawn as lines.

Use --info to see which modes a dataset supports. It prints JSON, and the plot is still shown:

ebas-plot --info https://doi.nilu.no/doi/8HWP-FRNN
{
  "plot": "timeseries",
  "default_mode": "scatter",
  "available_modes": ["scatter", "line"]
}

A line plot offers only line, and a dataset with a single time step offers only scatter. PNSD heatmaps have no mode.

Limit the plotted time range with --time "[START,END]" (inclusive ISO dates/times; leave one side empty for an open-ended range, e.g. "[2020-01-01,]"). When omitted, the whole dataset is plotted. For remote datasets only the selected range is fetched over OPeNDAP. An invalid format prints the expected format and exits:

ebas-plot --time "[2020-01-01,2020-12-31]" https://doi.nilu.no/doi/8HWP-FRNN

Use --var_plots to open one plot per physical quantity rather than one combined time-series plot:

ebas-plot --var_plots https://doi.nilu.no/doi/8HWP-FRNN

As a library

from ebas_plot import open_dataset, plot, plot_pnsd, plot_timeseries

# Auto-detect a remote dataset's plot type.
fig = plot("https://doi.nilu.no/doi/8HWP-FRNN")
fig.show()

# Open a local EBAS NetCDF file and select scatter points.
ds = open_dataset("/path/to/dataset.nc")
fig = plot_timeseries(ds, mode="scatter")
fig.show()

# Produce one time-series figure per physical quantity.
figures = plot("https://doi.nilu.no/doi/8HWP-FRNN", var_plots=True, mode="line")
for figure in figures:
	figure.show()

# Only fetch and plot 2020 (whole dataset if time is omitted).
fig = plot("https://doi.nilu.no/doi/8HWP-FRNN", time="[2020-01-01,2020-12-31]")
ds = open_dataset("https://doi.nilu.no/doi/8HWP-FRNN", time=("2020-01-01", None))

License

Copyright (C) 2026 Lise Eder Murberg, Marthe Brevig, and Jonathan Elias Holme.

This project is licensed under the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later). The full license text is available at https://www.gnu.org/licenses/agpl-3.0.html.

Metadata

Release files for ebas-plot 1.0.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 ebas-plot 1.0.1
File Size Uploaded Provenance Actions
ebas_plot-1.0.1.tar.gz 18.7 kB Without provenance Details for ebas_plot-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ebas-plot 1.0.1
File Interpreter ABI Platform Actions
ebas_plot-1.0.1-py3-none-any.whl Python 3 none any Details for ebas_plot-1.0.1-py3-none-any.whl

Total release size: 37.5 kB

Release files / ebas_plot-1.0.1.tar.gz

Download URL ebas_plot-1.0.1.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a8cf831e44b84a1f6e94d0d801f9c0835b7b2bc3f8856b1f5f89a748156efb9e
BLAKE2b-256 checksum
How to use checksums
366aa3fdbb73c8c0d82c122ac04d9b69c3fbadac4a00bb3f66c0b1ab2be31b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / ebas_plot-1.0.1-py3-none-any.whl

Download URL ebas_plot-1.0.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a02d67ef6e17c32aa8674dd050b70dfd267b73ee603f7efed13595272b2c7739
BLAKE2b-256 checksum
How to use checksums
4ff481695ab163f238b633767ee125eb409cb2f800792db85734fae974c5a262
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for ebas-plot 1.0.1

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.

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