import modelskill as ms
from pathlib import Path
= Path("../data/SW")
p
= ms.PointObservation(p / "HKNA_Hm0.dfs0", item=0, x=4.2420, y=52.6887, name="HKNA")
o1 = ms.TrackObservation(p / "Alti_c2_Dutch.dfs0", item=3, name="c2")
o2 = ms.DfsuModelResult(p / "HKZN_local_2017_DutchCoast.dfsu", name='SW_1', item=0)
mr1 = ms.DfsuModelResult(p/ "HKZN_local_2017_DutchCoast_v2.dfsu", name='SW_2', item=0)
mr2 ms.plotting.spatial_overview([o1, o2], [mr1, mr2])
plotting.spatial_overview
=None, ax=None, figsize=None, title=None) plotting.spatial_overview(obs, mod
Plot observation points on a map showing the model domain
Parameters
Name | Type | Description | Default |
---|---|---|---|
obs | List[Observation] | List of observations to be shown on map | required |
mod | Union[ModelResult, mikeio.GeometryFM] | Model domain to be shown as outline | None |
ax | Adding to existing axis, instead of creating new fig | None |
|
figsize | (float, float) | figure size, by default None | None |
title | Optional[str] | plot title, default empty | None |
See Also
temporal_coverage
Returns
Name | Type | Description |
---|---|---|
matplotlib.axes.Axes | The matplotlib axes object |