from modelskill import Quantity
= Quantity(name="Water Level", unit="meter")
wl wl
Quantity(name='Water Level', unit='meter')
Quantity of data
Name | Type | Description | Default |
---|---|---|---|
name | str | Name of the quantity | required |
unit | str | Unit of the quantity | required |
is_directional | bool | Whether the quantity is directional (e.g. Wind Direction), by default False | False |
Quantity(name='Water Level', unit='meter')
Name | Description |
---|---|
from_cf_attrs | Create a Quantity from a CF compliant attributes dictionary |
from_mikeio_eum_name | Create a Quantity from a name recognized by mikeio |
from_mikeio_iteminfo | Create a Quantity from mikeio ItemInfo |
is_compatible | Check if the quantity is compatible with another quantity |
Create a Quantity from a CF compliant attributes dictionary
If units is “degree”, “degrees” or “Degree true”, the quantity is assumed to be directional. Based on https://codes.ecmwf.int/grib/param-db/ and https://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html
Name | Type | Description | Default |
---|---|---|---|
attrs | Mapping[str, str] | Attributes dictionary | required |
Quantity(name='Water Level', unit='meter')
Create a Quantity from a name recognized by mikeio
Name | Type | Description | Default |
---|---|---|---|
type_name | str | Name of the quantity | required |
Create a Quantity from mikeio ItemInfo
If the unit is “degree”, the quantity is assumed to be directional.
Check if the quantity is compatible with another quantity