Skip to content
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

Runoff not conserved #231

Open
aekiss opened this issue Oct 1, 2024 · 13 comments
Open

Runoff not conserved #231

aekiss opened this issue Oct 1, 2024 · 13 comments
Labels
all_configurations bug Something isn't working coupler Related to the CESM coupler mediator Related to the CMEPS mediator priority:high

Comments

@aekiss
Copy link
Contributor

aekiss commented Oct 1, 2024

Runoff isn't conserved. Plots below show the RYF JRA55do input data and what is reported by MOM6 for a 1deg run (ignore "m-2" in the units).

The global integral of liquid runoff shows a significant shortfall in MOM6, especially in SH summer, but also (weirdly) excess water in late August. The step at 1 May is the RYF join.
download-2

MOM6 total_frunoff is drastically smaller than JRA55do licalvf
download-3

Plot script: https://github.com/aekiss/access-eval-recipes/blob/ef120fa/ocean/runoff_budget.ipynb

Related: #208 (comment), #217, #37, ACCESS-NRI/dev_coupling#33 (comment)

@aekiss
Copy link
Contributor Author

aekiss commented Oct 1, 2024

I'm not sure what happens when JRA55do runoff is located at land points in the model. Need to find out what routing is done (if any).

@aekiss
Copy link
Contributor Author

aekiss commented Oct 1, 2024

Also need to check whether conservative regridding is used - see #37

@aekiss
Copy link
Contributor Author

aekiss commented Oct 1, 2024

Here's log(friver) from JRA55do
download-5
and log(friver) from MOM - notice MOM is missing the Black Sea - where does this water go?
download-4

@aekiss
Copy link
Contributor Author

aekiss commented Oct 1, 2024

Here's log(licalvf) from JRA55do
download-7

and log(ficeberg) from MOM
download-6

@aekiss
Copy link
Contributor Author

aekiss commented Oct 1, 2024

Maybe we'll need to set these in nuopc.runconfig to map the runoff into the ocean?

     rof2ocn_ice_rmapname = unset
     rof2ocn_liq_rmapname = unset

@anton-seaice
Copy link
Contributor

In https://escomp.github.io/CMEPS/versions/master/html/addendum/req_attributes_cesm.html?highlight=rof2ocn_ice_rmapname#mediator-mapping-file-attributes it says CMEPS will create an "online route handle" if those values are unset.

Whats the format of a "mapping file"?

It looks like the default is to do a first-order conservative remapping:

https://github.com/ESCOMP/CMEPS/blob/f4f64c324469c33a78e0118ce1dd7944e85521d6/mediator/esmFldsExchange_cesm_mod.F90#L2399

There are options for maptype when creating the remap online:

maptype determines the mapping type and can have values of:

mapbilnr: bilinear mapping
mapconsf: first order conservative mapping with normalization type of conservative fraction.
mapconsd: first order conservative mapping with normalization type of conservative fraction.
mappatch: patch mapping
mapfcopy: redist mapping
mapnstod: nearest source to destination mapping
mapnstod_consd: nearest source to destination followed by conservative destination
mapnstod_consf: nearest source to destination followed by conservative fraction

I don't know if one of those makes more sense ?

@anton-seaice
Copy link
Contributor

ESMF seems to support remapping with masks, so maybe we need to include a mask in our mesh files ?

https://earthsystemmodeling.org/regrid/#options-for-masking-areas-unmapped-points-etc

@aekiss
Copy link
Contributor Author

aekiss commented Oct 2, 2024

Thanks @anton-seaice, these (from https://earthsystemmodeling.org/regrid/#options-for-masking-areas-unmapped-points-etc) look like they may be suitable

  • Nearest source to destination: The value of each destination point is set to the value of the closest source point.
  • Inverse distance weighted average: The value of each destination point is set to the weighted average of the values of the N closest source points. The weight is the reciprocal of the distance of the source from the destination raised to the power P. The user can choose N and P, but defaults are also provided.

or from CMEPS

mapnstod_consd: nearest source to destination followed by conservative destination

@anton-seaice
Copy link
Contributor

@gustavo-marques - We (ACCESS) are looking at options for how to make sure runoff is distributed into the ocean (and not land). Does CESM use an 'online' computation for remapping weights? Or are you using pre-computed mapping weights?

We are using this option for computing mapping weights online for liquid run-off:
mapconsd: first order conservative mapping with normalization type of conservative fraction.
but think maybe
mapnstod_consd: nearest source to destination followed by conservative destination
should ensure it gets mapped into the ocean ?

@gustavo-marques
Copy link

Hi @anton-seaice,
The runoff mapping files are still done offline in CESM. We use a combination of nearest-neighbor and smoothing mappings to distribute the runoff over a pre-defined radius and using an e-folding distance. Input parameters:

eFold = smoothing eFold distance in meters (default: 1000000)
rMax = maximum radius of effect in meters (default: 300000)

You can find out more about this procedure here.

@aekiss aekiss added bug Something isn't working coupler Related to the CESM coupler mediator Related to the CMEPS mediator all_configurations priority:high labels Oct 17, 2024
@aekiss
Copy link
Contributor Author

aekiss commented Oct 17, 2024

Thanks @gustavo-marques, it's great to have these details

@anton-seaice
Copy link
Contributor

It's possible #240 will play into this - our DROF mesh file doesn't contain any cell areas and the CDEPS is not expecting one either

However we are definitely loosing lots of runoff in the mediator. From the mediator output, this is the difference between the rof and ocean diagnostics from the mediator.

image

We gain run-off in some cells but no where near enough to equal the amount which disappears.

Similarly the frozen runoff is mostly lost

Screenshot 2024-11-07 at 4 36 26 PM

Most of the runoff is being masked out. If the runoff is masked using the landmask and compared to the amount entering the ocean, the different is very small (but non-zero!)

image

And much closer to 0 in the frozen run off case

Screenshot 2024-11-07 at 4 38 46 PM

@aekiss aekiss mentioned this issue Nov 14, 2024
@aekiss
Copy link
Contributor Author

aekiss commented Nov 14, 2024

We should prioritise fixing this, as it is blocking finalising the topography #172 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all_configurations bug Something isn't working coupler Related to the CESM coupler mediator Related to the CMEPS mediator priority:high
Projects
None yet
Development

No branches or pull requests

3 participants