-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: potential temp to temp conversion for MOM6 model_interpolate #782
Conversation
fixes #773 Converts potential_temp (model) to in-situ temp (obs) Following method in POP model_mod: #773 (comment) Uses element function - need to check with fortran standard has elemental.
@hkershaw-brown Do you have a testing dataset sitting somewhere on glade? |
NWA regional: |
Thanks! |
I've been able to test the model mod, adding all available observation types in WOD data and plotted the resulting obs.seq.final file: Using the All of the observations were successfully assimilated except for:
The latitude, longitude pairs of the seven failed forward operator locations are as follows:
You can use ncview to check these locations against the model grid looking at the
In the The remaining five failed forward operator locations have a value of As far as I can tell, this |
1c6e005
to
1ef07d8
Compare
replaced magic 1000 number with CONCENTRATION_TO_PPT
Description:
All temperature observations were failing the forward operator for MOM6 because model_interpolate was only doing interpolation if the QTY was in the state & QTY_TEMPERATURE is not part of the model state.
MOM6 has QTY_POTENTIAL_TEMPERATURE so this needs converting to QTY_TEMPERATURE
Following the method in the POP model_mod. I haven't generalized the code across both model_mods 1) because the salinity units are different between the models 2) POP has depth of grid points static across the ensemble vs thickness in the state for MOM6, 3) I don't want to mess with the POP model_mod
pseudo code:
Need to double check the units on pressure (dbars vs bars) and salinity (MSU vs PSU)
Note sure of the best name for the conversion routine "sensible_temp" or "in-situ_temp" or whatever.
Note sure what references need to be in the depth to pressure calculation (plop in the three that are in the pop model_mod?)
Also has fix 360.0_r8 for numbers that were missing _r8.
Fixes issue
fixes #773
Types of changes
Documentation changes needed?
Tests
model_mod_check interpolate compare to values at grid points for variables that are in the state QTY_POTENTIAL_TEMPERATURE, QTY_SALINITY (in python notebook)
See unit notes above - need to check.
Checklist for merging
Checklist for release
Testing Datasets