opendrift.models.openoil.adios.models.oil.cleanup.distillation

cleanups that work with distillation data

There could be more, but for now, it sets the unit_type for the cuts.

Module Contents

Classes

FixCutUnitType

sets the unit type for the cut fractions, based on the distillation type

class opendrift.models.openoil.adios.models.oil.cleanup.distillation.FixCutUnitType(oil)[source]

Bases: opendrift.models.openoil.adios.models.oil.cleanup.cleanup.Cleanup

sets the unit type for the cut fractions, based on the distillation type

initialize a Cleanup object with an oil object

Parameters:

oil (adios_db.models.oil.oil.OIl) – the oil object you want to clean up

ID = '002'
mapping
check()[source]

checks to see if there is something to fix

returns: flag, msg

if nothing is needed, flag is None if something can be cleaned up, flag is True if something is wrong, but can not be cleaned up, flag is False

fixme: – maybe cleanup and validation should be better integrated?

cleanup()[source]

run this particular cleanup option