Hi David,
For that, you can add a surface flux module (built into FABM) to your fabm.yaml, and then configure it in gotm.yaml to be read from file. In fabm.yaml, you’d add something like this under instances:
dep:
model: external_surface_flux
coupling:
target: <STATE_VARIABLE_TO_ADD_FLUX_TO>
and then in gotm.yaml, under fabm/input:
dep/flux:
method: file
file: <FILEPATH>
Note that the units of the flux should then be state variable units * meter / second, e.g., mmol m-2 s-1 if you state variable is in mmol m-3.
Hope this helps,
Jorn
--
You received this message because you are subscribed to the Google Groups "FABM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-users/848f1469-b2b1-4be1-a7b0-a033def52960n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "FABM-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fabm-users/JS9jZ9PUWzA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fabm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-users/00d001d87f08%24ad226cd0%2407674670%24%40bolding-bruggeman.com.
Hi David,
Calculation of air-sea exchange would presumably depend on variables like wind speed, and therefore require custom logic, typically within do_surface in the module that also defines your tracer. Like this, for instance: https://github.com/fabm-model/fabm/blob/25c4d1cb3afcaca87dc103cc60f0a9e8abac0796/src/models/gotm/ergom.F90#L407-L427 In that case, you could in that module add a surface dependency for the atmospheric concentration. You then link that to a file with the concentrations in the fabm/input section in gotm.yaml. Thus, you would not use the built-in external_surface_flux module.
Regarding the error message: that is not about the file format, which looks ok, but about the entry in gotm.yaml. That should look like:
…
fabm:
input:
dep/flux:
method: file
file: <PATH>
Perhaps the method and file lines are missing, or not sufficiently indented?
Cheers,
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-users/CAP_z-UaW9%3Dw%2BcUwk%2BNkd2wx1m0GPSrtQH6WkgLF5E0ZvXzgMuA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-users/002601d880aa%2427b3f390%24771bdab0%24%40bolding-bruggeman.com.