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

use ACCESS-OM2 grids, topography, etc #36

Closed
aekiss opened this issue Jun 20, 2023 · 19 comments
Closed

use ACCESS-OM2 grids, topography, etc #36

aekiss opened this issue Jun 20, 2023 · 19 comments
Assignees

Comments

@aekiss
Copy link
Contributor

aekiss commented Jun 20, 2023

The ACCESS-OM3 configurations currently use an offset-pole 1° horizontal grid using these grid, mesh, topography and initial condition files.

We should change these to the tripolar grids used at each resolution in the ACCESS-OM2 suite as defined in /g/data/ik11/inputs/access-om2/input_20201102.

@aekiss
Copy link
Contributor Author

aekiss commented Jun 20, 2023

[UPDATE: actually we probably want to use grid files if we can - see below]

It looks like we'll need to generate unstructured mesh file representations of the structured ACCESS-OM2 grids.

@dougiesquire, @kieranricardo - I don't suppose you know how to generate unstructured mesh files like these?

/g/data/ik11/inputs/cime/inputdata/2023-03-10/share/meshes/*.nc
/g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/*/*.nc

A couple were generated by ESMF_RegridWeightGen. The rest don't say, but maybe they used ESMF_RegridWeightGen too?

@aekiss
Copy link
Contributor Author

aekiss commented Jun 20, 2023

/g/data/ik11/inputs/cime/inputdata/2023-03-10/share/meshes/*.nc seem to use the ESMF Unstructured Grid File Format, but /g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/*/*.nc are different.

@aekiss
Copy link
Contributor Author

aekiss commented Jun 20, 2023

but /g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/*/*.nc all have the same format and two of them used ESMF_RegridWeightGen:

$ for f in /g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/*/*.nc; do  ncdump -h $f | grep ESMF_RegridWeightGen && echo $f; done
		:run_command = "ESMF_RegridWeightGen --ignore_unmapped -m bilinear -w map_gx1v6_TO_ww3a_blin.150430.nc -s /glade/p/cesmdata/cseg/mapping/grids/gx1v6_090205.nc -d /glade/p/cesmdata/cseg/mapping/grids/ww3a_120222.nc" ;
/g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/gx1v6/map_gx1v6_TO_ww3a_splice_150428.nc
		:run_command = "ESMF_RegridWeightGen --ignore_unmapped -m bilinear -w map_ww3a_TO_gx1v6_blin.150430.nc -s /glade/p/cesmdata/cseg/mapping/grids/ww3a_120222.nc -d /glade/p/cesmdata/cseg/mapping/grids/gx1v6_090205.nc" ;
/g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/ww3a/map_ww3a_TO_gx1v6_splice_150428.nc

@aekiss
Copy link
Contributor Author

aekiss commented Jun 20, 2023

/g/data/ik11/inputs/cime/inputdata/2023-03-10/cpl/gridmaps/*/*.nc are ESMF regrid weight files

@adele-morrison
Copy link

adele-morrison commented Jun 20, 2023 via email

@aekiss
Copy link
Contributor Author

aekiss commented Jun 20, 2023

Yes, they would both be good to do further down the track. But first I'd like to have configs that are close to ACCESS-OM2 to reduce the number of things we need to debug and also so we can compare apples to apples.

This was referenced Jun 20, 2023
@dougiesquire
Copy link
Collaborator

@dougiesquire, @kieranricardo - I don't suppose you know how to generate unstructured mesh files like these?

I don't off the top of my head, sorry. I downloaded all the inputs for those configurations from the CESM servers and many have little provenance about how they were generated.

@kieranricardo
Copy link
Collaborator

@aekiss I've created ESMF mesh objects (in Fortran) before but I've never attempted to save them to a file, sorry. I did a quick scan of the ESMF docs and I couldn't see a way to do this, which seems a bit weird to me so I probably just missed something

@dougiesquire dougiesquire self-assigned this Jul 10, 2023
@dougiesquire
Copy link
Collaborator

@aekiss, I'm trying to work out where the CICE grid files in /g/data/ik11/inputs/access-om2 come from. Recent input versions all seem to point at /g/data/ik11/inputs/access-om2/input_20200530/cice_??deg/grid.nc but I can't find how these files were generated. Can you point me in the right direction?

@aekiss
Copy link
Contributor Author

aekiss commented Jul 12, 2023

Hi @dougiesquire I actually don't know the origins of these files - they are part of the legacy configurations ACCESS-OM2 was based on. For consistency they should be derived from the mom supergrid ocean_hgrid, which is what https://ufs-community.github.io/UFS_UTILS/cpld_gridgen and https://github.com/DeniseWorthen/GridGen apparently do.

@micaeljtoliveira when you looked into this last year did you look at cice grids or just mom grids?

For the purpose of getting configurations together we could just reuse these files as-is, but it would also be nice to have some sort of provenance and workflow for them, so long as it isn't a rabbithole.

There's a slight weirdness in the 1° grid but we probably don't want to fix this just yet so we can compare apples with apples COSIMA/access-om2#271

@dougiesquire
Copy link
Collaborator

Thanks @aekiss. Yup I'm trying to push ahead with the existing OM2 grid, but keeping in mind that we probably want reproducible workflows for setting up the OM3 grids. Incidentally, are there reproducible workflows for generating the existing OM2 MOM grids? I could well be misunderstanding, but in the forum post you share above it sounds like folks have been having trouble recreating these grids using the FRE-NCtools make_hgrid tool.

@dougiesquire
Copy link
Collaborator

Ashley Barnes' Python tools look like they could be handy: https://github.com/COSIMA/regional-mom6/blob/main/regional_mom6/regional_mom6.py#L487

@micaeljtoliveira
Copy link
Contributor

when you looked into this last year did you look at cice grids or just mom grids?

I looked only at the MOM6 supergrid.

in the forum post you share above it sounds like folks have been having trouble recreating these grids using the FRE-NCtools make_hgrid tool.

Yes, basically the make_hgrid tool does not have all the needed features. The one tool I found that seems to have all that we need, is this one:

https://github.com/NOAA-GFDL/ocean_model_grid_generator/

but I haven't had time to look into it in more detail.

@aekiss
Copy link
Contributor Author

aekiss commented Jul 12, 2023

Rethinking my comment above re. meshfiles, @micaeljtoliveira has found that FMS2 doesn't support meshfiles, so we should change to grid files if at all possible. Otherwise we'd need to use FMS1 (as in the CIME-built CESM). Grid files are much easier to deal with too (e.g. plotting).

@dougiesquire
Copy link
Collaborator

Rethinking my comment above re. meshfiles, @micaeljtoliveira has found that FMS2 doesn't support meshfiles, so we should change to grid files if at all possible. Otherwise we'd need to use FMS1 (as in the CIME-built CESM). Grid files are much easier to deal with too (e.g. plotting).

I'm not sure this is going to be trivial. The MOM nuopc cap appears to allow internal generation of an ESMF grid, rather than passing an ESMF mesh, but I haven't been able to get this to work. I might focus for now on generating ESMF mesh/grid files for the OM2 grid (which also seems unnecessarily hard) and go from there

@dougiesquire
Copy link
Collaborator

I've moved the branch where I'm working on this from my fork into the main repo so that it's easier for others to see/contribute - https://github.com/COSIMA/MOM6-CICE6/tree/om2_grid_iss36

@aekiss
Copy link
Contributor Author

aekiss commented Aug 2, 2023

Just for the record, this is a more actively updated version of the grid generator mentioned above
https://github.com/nikizadehgfdl/ocean_model_grid_generator
and make_hgrid (mentioned above) and other grid-related tools are available from
https://github.com/NOAA-GFDL/FRE-NCtools

@micaeljtoliveira
Copy link
Contributor

Done in ACCESS-NRI/access-om3-configs#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants