Observation of a vertical profile at a fixed (x, y) location.
Create a VerticalObservation from a dfs0 file, mikeio.Dataset, pandas.DataFrame or xarray.Dataset in long format: one row per (time, z) pair, with one item/column holding the vertical coordinate and another holding the observed value. At least two items are required (z + value); if more are present, item must be given.
Index or name of the value item. Required if the input has more than two items.
None
x
float
x-coordinate of the profile location, inferred from data when possible.
None
y
float
y-coordinate of the profile location, inferred from data when possible.
None
z_item
int or str
Index or name of the item holding the vertical coordinate, by default 0.
0
name
str
Name of the observation, by default the file or item name.
None
weight
float
Weighting factor for skill scores in a ComparerCollection, by default 1.0.
1.0
quantity
Quantity
Observed quantity, for MIKE files this is inferred from the EUM information
None
aux_items
list[int | str]
Auxiliary items to keep alongside the value item, by default None.
None
attrs
dict
Additional attributes to be added to the underlying dataset.
None
Notes
A dfs0 with N depth levels has its profile timestamps repeated N times on a non-equidistant time axis. Duplicate (time, z) pairs are not allowed and will raise a ValueError.