esm-tools / esm_tools

Simple Infrastructure for Earth System Simulations
https://esm-tools.github.io/
GNU General Public License v2.0
25 stars 12 forks source link

WIP adding oasis3mct6 with yac interpolation #1122

Closed JanStreffing closed 7 months ago

JanStreffing commented 8 months ago

So far only compile time works. We might need some new options in the python backend to support the YAC grammar for namcouple find.

e.g. this old namcouple:

LOCTRANS SCRIPR
INSTANT
CONSERV U SCALAR LATITUDE 500 FRACNNEI FIRST 1.45 -2.0
####

would be replaced by:

LOCTRANS YAC
INSTANT
GC GC 2 YAC_CONSERV_FRACNNEI 4
CONSERV FIRST FRACAREA
NNN AVG 1
#######
JanStreffing commented 8 months ago

I think this would be a great addition to ESM-Tools! Nicely done!

But we will need to figure out how to best ship the make.ESMTOOLS file as well. Maybe CERFACS would add it if we asked nicely?

/J

I agree. And yes I'm positive we can make that happen. I just need to make a PR from here: https://gitlab.com/awi-esm/oasis3-mct/-/tree/feature/yac_remap_esm-tools?ref_type=heads back into the parent of the fork.

I'm currently trying to compile the first setup with this oasis. Afterwards I try to make a namcouple by hand that works. Finally, I try to make the namcouple with esm_tools. That's the plan at least.

We could of course merge this first, and the setup (awicm3-v3.2.1) separately.

JanStreffing commented 7 months ago

Superseeded by: https://github.com/esm-tools/esm_tools/pull/1127