Skip to content

Commit

Permalink
Add stof2d_stations
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Jul 5, 2024
1 parent 0041e72 commit 71ad0ca
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<ul id="urlList">
<li><a href="https://pmav99.github.io/static/CFL-schism.html">CFL-schism.html</a></li>
<li><a href="https://pmav99.github.io/static/ERA5-meluxina.html">ERA5-meluxina.html</a></li>
<li><a href="https://pmav99.github.io/static/stofs2d_stations.html">stofs2d_stations.html</a></li>
</ul>
</div>

Expand Down
67 changes: 67 additions & 0 deletions stofs2d_stations.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions stofs2d_stations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import xarray as xr
import holoviews as hv
import hvplot.pandas

ds = xr.open_dataset("/home/panos/Downloads/stofs_2d_glo.t06z.points.cwl.nc")
plot = ds[["x", "y", "station_name"]].to_pandas().hvplot.points(geo=True, tiles=True, hover_cols=["x", "y", "station_name"]).opts(width=1500, height=1100)
hv.save(plot, "stofs2d.html", backend="bokeh")

0 comments on commit 71ad0ca

Please sign in to comment.