opendrift.models.openoil.adios.models.oil.cleanup.add_labels

Add labels to a record – for those that we can use some automatic criteria for

For a given product type:

some labels can be determined from API and/or Viscosity ranges.

The criteria follows the ASTM (and others) standards, where we can

Module Contents

Functions

get_suggested_labels(oil)

get the labels suggested for this oil

add_labels_to_oil(oil)

add labels to the passed in oil.

is_label(oil, label)

Attributes

synonyms_for_product_types

synonyms_for_labels

no_criteria

label_map

opendrift.models.openoil.adios.models.oil.cleanup.add_labels.synonyms_for_product_types
opendrift.models.openoil.adios.models.oil.cleanup.add_labels.synonyms_for_labels
opendrift.models.openoil.adios.models.oil.cleanup.add_labels.no_criteria
opendrift.models.openoil.adios.models.oil.cleanup.add_labels.label_map
opendrift.models.openoil.adios.models.oil.cleanup.add_labels.get_suggested_labels(oil)[source]

get the labels suggested for this oil

Parameters:

oil (Oil object) – the oil object to get the labels for

opendrift.models.openoil.adios.models.oil.cleanup.add_labels.add_labels_to_oil(oil)[source]

add labels to the passed in oil.

this adds labels, but does not remove any existing ones

Parameters:

oil (Oil object) – the oil object to add labels to

opendrift.models.openoil.adios.models.oil.cleanup.add_labels.is_label(oil, label)[source]