Skip to main content

Plotting of data imported by the dnora package

Project description

dnplot 💻

dnplot is a tool designed for the visualization of dnora objects, such as 🌬️ wind, 🌊 wave and ocean current data.

dnplot Visualization

Quick Installation 🚀

Ready to dive in? You can easily install dnplot using pip:

$ pip install dnplot 

Example

To quickly visualize the wave data outputted by SWAN to a netcdf file:

import dnplot
from dnora.wavegrid import WaveGrid

data = WaveGrid.from_netcdf('model_output.nc')
point = data.sel(lon=5.25, lat=62.3, method='nearest') # Pick just one point

# The dict could be a dnora ModelRun object containing the data
plot = dnplot.Matplotlib({'wavegrid': data, 'waveseries': point})

# default value for var=["hs", ("tm01", "tm02"), "dirm"] 
plot.waveseries(var=['hs', ('tp','tm01'), 'dirp']) 
plot.wavegrid('hs')

Docs 📚

Looking for more details? Our documentation (currently under development) provides information about the package, its features, and how to use it. Explore it here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnplot-0.3.16.tar.gz (21.8 MB view details)

Uploaded Source

File details

Details for the file dnplot-0.3.16.tar.gz.

File metadata

  • Download URL: dnplot-0.3.16.tar.gz
  • Upload date:
  • Size: 21.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for dnplot-0.3.16.tar.gz
Algorithm Hash digest
SHA256 1a6632c6b3f997d0c7587233fe1b3d6300fc35d5aeba5dd7818a19cb5d62d2e8
MD5 8703960f20d3992d6a1a63643c3227fc
BLAKE2b-256 af585eac50fdd50a48f59e84294083b431c79ddc4a9ec0f5e30f4ed252dd3ae6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page