Compute/output value calculated from tracers as an array #2980
Replies: 1 comment 1 reply
-
Hello @j-ostiguy. You are trying to do a local operation, so there are two ways you can go about it, one more "high level" (1) approach and one more "low level" approach (2)
where in this case |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to calculate pCO2 as a function of my model tracers (alkalinity, dic, S and T). I am using the CO2System package, which will calculate pCO2 from these 4 values but only accepts scalars or vectors. I can't seem to find a way to either build an array at each time step or compute the pCO2 field.
I defined this function:
and I've tried several things along these lines:
Beta Was this translation helpful? Give feedback.
All reactions