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!
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:
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!