resqpy.property.guess_uom¶
- resqpy.property.guess_uom(property_kind, minimum, maximum, support, facet_type=None, facet=None)¶
Returns a guess at the units of measure for the given kind of property.
- Parameters
property_kind (string) – a valid resqml property kind, lowercase
minimum – the minimum value in the data for which the units are being guessed
maximum – the maximum value in the data for which the units are being guessed
support – the grid.Grid or well.WellboreFrame object which the property data relates to
facet_type (string, optional) – a valid resqml facet type, lowercase, one of: ‘direction’, ‘what’, ‘netgross’, ‘qualifier’, ‘conditions’, ‘statistics’
facet – (string, present if facet_type is present): the value relating to the facet_type, eg. ‘I’ for direction, or ‘oil’ for ‘what’
- Returns
a valid resqml unit of measure (uom) for the property_kind, or None
Notes
this function is tailored towards Nexus unit systems; the resqml standard allows a property to have any number of facets; however, this module currently only supports zero or one facet per property