Skip to content

Changing unit dimensionality in depth integration pre-processor #60

Description

@ledm

Depth integration is a common methods used to evalaute ocean behaviour, notably in the "integrated primary production" marine biogeochemistry metric. Depth integration typically converts concentration in volume into concentration in area. This means that the units go from mol m-3 to mol m-2, and so the units need to be changed.

This function already exists in the volume preprocessor, but does not currently change the units. Basically, I want to include this command in the preprocessor:

result.units = Unit('m') * result.units

but this does not work for me.

@bouweandela suggested in issue #604: "This would require a minor modification to the code so the unit is read from the cube instead of from the cmor table of the input data when extracting the metadata, but should be possible. Please make an issue if you would like this functionality."

So here is the issue. Fingers crossed it is actually easy to resolve!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions