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

ocean mask created at run time is not same as ocean mask in INPUT for the 1deg configuration #47

Closed
DeniseWorthen opened this issue Jan 8, 2021 · 8 comments
Assignees

Comments

@DeniseWorthen
Copy link
Collaborator

DeniseWorthen commented Jan 8, 2021

For the 1deg model, the ocean mask in INPUT/ocean_mask.nc differs at a single location from the ocean mask produced at run time (MOM6_OUTPUT/ocean_geometry). The difference is located at i=88,j=133.

I did not think that the land mask could be changed at run time, only the bathymetry.

This affects the creation of the mapped ocean mask files for the frac grid, since in that case the ocean land mask is consistent with the INPUT/ocean_mask file.

In the 1/2 and 1/4 deg case, the INPUT/ocean_mask file and the MOM6_OUTPUT/ocean_geometry files are consistent.

@DeniseWorthen
Copy link
Collaborator Author

This is the mask from INPUT/ocean_mask:
Screen Shot 2021-01-08 at 11 19 48 AM

And from MOM6_OUTPUT/ocean_geometry:
Screen Shot 2021-01-08 at 11 20 04 AM

@jiandewang
Copy link
Collaborator

jiandewang commented Jan 29, 2021

@DeniseWorthen the way MOM is designed is first reading in grid file, then make some adjustment on certain grid points to have better currents and throughflows. This is done by further reading in a fixed file "topo_edits.nc" which contains the new depth values to override the original one. Usually these adjustments are to make the ocean points deepen or shallower to control throughflow. However in 1x1 setting, there is one land point in Indonesia area (i=88,j=132) whose depth has been changed from 0 to 1000m.
image

By looking at mesh file, it is generated by read in "Ct.mx100_SCRIP_land.nc" which I believe is generated from the original topo.nc file. Can we use an alternative source file (for example geometry file) to generate "Ct.mx100_SCRIP_land.nc" ?

@DeniseWorthen
Copy link
Collaborator Author

DeniseWorthen commented Jan 29, 2021

The ocean_geometry file is generated at run time. We should not have a system where we need to run the model in order to generate a fixed file to run the model.

The file Ct.mx100_SCRIP_land.nc is generated using the file tripole.mx100.nc. This file is generated from by reading only two files, the ocean_hgrid.nc and the ocean_mask.nc. The topo.nc file is not used.

I see now the point in the topo_edits_011818.nc file. I had missed it earlier because it is out of order (the preceding point is at i=219 and the next point is i=292).

I still don't understand why when it reads the edits file, it is allowing the land mask to change. Doesn't this indicate that is not allowed?

"A zero depth edit would change the land mask and is not allowed in"//trim(topo_edits_file))

@JessicaMeixner-NOAA
Copy link
Collaborator

Another question: I doubt this topo_edits_file is file is being used when the atm model is generating it's fractional land mask If the land mask is allowed to change based on this topo edits file, that's probably an issue with all of the fractional grid generation...

@DeniseWorthen
Copy link
Collaborator Author

Yes, you are correct. As I noted, the mapped ocean mask files generated for FV3 depend on the ocean mask not changing at run-time.

@JessicaMeixner-NOAA
Copy link
Collaborator

Thanks!

@jiandewang
Copy link
Collaborator

if (new_depth(n)/=0.) then
write(stdout,'(a,3i5,f8.2,a,f8.2,2i4)') &
'Ocean topography edit: ',n,ig(n),jg(n),D(i,j)/m_to_Z,'->',abs(new_depth(n)),i,j
D(i,j) = abs(m_to_Z*new_depth(n)) ! Allows for height-file edits (i.e. converts negatives)
else
call MOM_error(FATAL, ' apply_topography_edits_from_file: '//&
"A zero depth edit would change the land mask and is not allowed in"//trim(topo_edits_file))

I think here it allows for the changing from land to ocean, but not the other way.

@DeniseWorthen
Copy link
Collaborator Author

OK, I guess I see that from the code, that it is saying that 'new_depth' can't be zero---in other words, you can't take away an ocean point (no ocean->land is allowed).

But the other way around is just as bad---you're still changing the land mask in converting land->ocean which is the same problem that triggers the FATAL above.

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

3 participants