map river nutrients to blom mesh using rof->ocn mapping files#583
map river nutrients to blom mesh using rof->ocn mapping files#583mvertens wants to merge 10 commits into
Conversation
I have copied a file for the R2OMIP river input data (same format, same grid as GNEWs but contains one additional variable) to
Please let me know if there are any problems with the file. |
| if (chkerr(rc,__LINE__,u_FILE_u)) return | ||
| call field_getfldptr(field_blom, fldptr1=dataptr1d, rc=rc) | ||
| if (chkerr(rc,__LINE__,u_FILE_u)) return | ||
| fldlist_input = (/'DIN','DIP','DSi','DIC','Fe ','DOC','DET'/) |
There was a problem hiding this comment.
Hi @mvertens , why do you repeat the fldlist_input here (see l. 54)?
There was a problem hiding this comment.
Good catch. I fixed this.
|
|
||
| filename = '/cluster/shared/noresm/inputdata/ocn/blom/bndcon/river_nutrients_GNEWS2000c00_r05_20250220.nc' | ||
| mesh_input_file = '/cluster/shared/noresm/inputdata/share/meshes/r05_nomask_c110308_ESMFmesh.nc' | ||
| fldlist_input = (/'DIN','DIP','DSi','DIC','Fe ','DOC','DET'/) |
There was a problem hiding this comment.
This currently seems to only support the 'old' river input file - for the river2omip the slDOC seems to be missing.
There was a problem hiding this comment.
That is correct. @JorgSchwinger just provided a new input dataset that I can use and I'll add that field.
| index = 5 | ||
| else if (trim(fldlist_input(nfld)) == 'DOC') then | ||
| index = 6 | ||
| else if (trim(fldlist_input(nfld)) == 'DOT') then |
There was a problem hiding this comment.
This is now fixed as well. Thanks.
TomasTorsvik
left a comment
There was a problem hiding this comment.
@mvertens - Thanks, looks good to me!
@JorgSchwinger - thanks for providing this. I don't see an entry for DET in this file. Yet in mo_read_rivin.F90 the following is called - and DET is always read in. In addition, is BLOM master - what file is used if use_river2omip is .true.? Is this currently just set in user_nl_blom? |
|
@mvertens, yes, you are right the DET field is incorrectly named 'POC' in the file
@TimotheeBrgs can you please fix this such that we have identical names for the GNEWS and the R2OMIP cases? (For the interpolated files I fixed this in the interpolation-script, but it would be better to have this correct from the beginning). And yes, if you use R2OMIP, you currently you need to specify the input file manually in the user namelist - something that has to be fixed once this option is tested and finalized. |
|
Hi @mvertens I have now fixed the wrong naming of the DET variable. I replaced the former file with the one below. Hoping that everything else is fine.
|
|
@TimotheeBrgs - Thanks! |
This PR implements mapping river nutrients on a 0.5 x 0.5 "runoff grid" and mapping the nutrients to the blom grid using the offline mapping files for mapping rof->ocn.
The river nutrient file is here
/cluster/shared/noresm/inputdata/ocn/blom/bndcon/river_nutrients_GNEWS2000c00_r05_20250220.nc
This has to be tested with #534. @JorgSchwinger - can the data for this new riverine input also be generated on the 0.5x0.5 grid - so that I can test with the updated dataset?