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.nchttps://doi.nilu.no/doi/8HWP-FRNNhttps://doi.org/10.48597/8HWP-FRNNhttps://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
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 0.2.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 | |
|---|---|---|---|
| ebas_plot-0.2.0.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ebas_plot-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.7 kB
Release files / ebas_plot-0.2.0.tar.gz
| Download URL | ebas_plot-0.2.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6da1cc83fbcfe6bf47ca986dcf3311741535289c8d04cb37334877218b930617
|
|
BLAKE2b-256 checksum How to use checksums |
e95d0d74f5f05b2741c6ea0f0c25026b68903fc7833bbfeda1fa21a5a01755c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / ebas_plot-0.2.0-py3-none-any.whl
| Download URL | ebas_plot-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d95f425fd113d20b23b9dc15eb096067eb2e295b8100ad72792565c7a2dbff2a
|
|
BLAKE2b-256 checksum How to use checksums |
d10671d719c2fe4080e00c033646b0ade7e283a64e0d7d9e15de848ace83720f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|