-
Notifications
You must be signed in to change notification settings - Fork 23
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
Changing land masks ... #173
Comments
To further clarify, this is the error we're getting:
The line in question (352) within ice_atmo.F90 is computing:
And the problem, specifically, seems to be in tstar(ij)/thva(ij) |
Hi, as I mentioned on the slack channel this implies that the supplied air potential temperature, Note that the bug for which I approved the fix yesterday COSIMA/cice5#41 has the potential to cause this. |
Thanks @russfiedler. I did encounter the bug you mention in We've been looking through the code to find where Any ideas more specific? Thanks again! |
I've made the change of only erasing Hawai'i from the map, just one tiny dot, and the problem is exactly the same. It has to be a masking problem, I thought maybe related to the |
Re. @AndyHoggANU's question, at 1 deg we use |
I've run into the same error trying to do a perturbation experiment where I bulldoze the ITF... |
@rmholmes - did you ever find a fix? |
@AndyHoggANU nope, I just tried it yesterday briefly. happy to put some time in in the next few days if you can't solve it. |
We just found this old issue where Nic widened the Bering Strait. Alfonso will try using the tools Nic points to here: Specifically the mask changing tool |
Do the remapping weights that yatm uses need to be recalculated when the land mask changes? I can't see anywhere in the steps outlined that tell you to do this. If zero weight is assigned because of the mask things will fall apart. |
Some thoughs:
A longer term fix which hadn't occurred to me until now would be to modify OASIS to do what unmask.py does.
|
There doesn't seem to be any land points or weirdness in If it's not in the remap files (in |
Isn't the attenuation calculated via the GFDL scheme? In that case it's the Also, to be perfectly clear, this is definitely happening in the first time step and not the second, correct? If the ocean is supplying a 0K temperature via |
So @nichannah this looks like the remap weights do have land masking. Looks like the Is it possible to create remapping weights that don't use destination cell masking? |
Ok, so I generated some new remapping files with no destination grid mask. Made a change to the
and ran for the
Alfonso copied So. Question: is patch ok? Before it used |
nice work @aidanheerdegen - I'm not sure exactly what |
The OASIS documentation says that you need to provide masks for SCRIPR and CONSERV remapping. If you don't it looks like this is done when you call oasis_enddef. This is done for each grid. It may be that the masking is done no matter what. I haven't delved into the code that far. The short version is that the remapping weights should be recalculated whenever the land mask is changed. No ifs, no buts, no maybes, no shortcuts... |
I hope someone is going to make a nice clear document of how to change the
land sea mask in these models ....
Thanks
Paul
…On Thu, Oct 31, 2019 at 5:43 PM russfiedler ***@***.***> wrote:
The OASIS documentation says that you need to provide masks for SCRIPR and
CONSERV remapping. If you don't it looks like this is done when you call
oasis_enddef. This is done for each grid. It may be that the masking is
done no matter what. I haven't delved into the code that far.
The short version is that the remapping weights should be recalculated
whenever the land mask is changed. No ifs, no buts, no maybes, no
shortcuts...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#173?email_source=notifications&email_token=ABSWJXCYL4XHI5WLCMXJSF3QRJ5ABA5CNFSM4JGCHVFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECWW5FQ#issuecomment-548236950>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSWJXC3PR7ISI4O2PFNKMLQRJ5ABANCNFSM4JGCHVFA>
.
--
Paul Spence, PhD
Senior Lecturer, Climate Change Research Centre
University of New South Wales
Sydney, Australia
[email protected]
<http://goog_934148345>
www.iampaulspence.com
|
It's the same process as setting up the model grids in the first place. It's the changing of old restarts to a new land mask that is the tricky bit and @nichannah has created some nice tools for that. |
Thanks for the quick response Russ. Is there existing documentation on "how
to set up the model grids in the first place" for these models? I am
thinking of a comparison to the existing MOM-SIS-FMS documentation for
creating the model grids.
Thanks
Paul
…On Thu, Oct 31, 2019 at 5:54 PM russfiedler ***@***.***> wrote:
It's the same process as setting up the model grids in the first place.
It's the changing of old restarts to a new land mask that is the tricky bit
and @nichannah <https://github.com/nichannah> has created some nice tools
for that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#173?email_source=notifications&email_token=ABSWJXDD3UVUQWFQFT7WIV3QRJ6JFA5CNFSM4JGCHVFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECWXPZA#issuecomment-548239332>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSWJXA4PVS3ZX3E5BCNTF3QRJ6JFANCNFSM4JGCHVFA>
.
--
Paul Spence, PhD
Senior Lecturer, Climate Change Research Centre
University of New South Wales
Sydney, Australia
[email protected]
<http://goog_934148345>
www.iampaulspence.com
|
Yes, This should be done and put on the wiki. |
'smooth' is another name for patch. Apologies for the confusion there. So @aidanheerdegen, your change has fixed the problem? |
@nichannah Seems so yes. @Acosta-Goncalves has run a case with original weights and another with the new patch weights with no destination masking and after a year he can see some small (~4mm) differences in sea level around the equator, so sounds like it is fine. Not quite the same, as I guess there will likely be some small differences with how the interpolation works when it borders land. We were unsure about making the same change to conserved fields as we weren't sure what would happen in that case. I'm unsure about what @russfiedler refers to above, about OASIS and the |
@aidanheerdegen Have a look at sections 4.3 and 5.1 of the OASIS documentation. Reading the documentation a bit more closely it seems that the weights are just read in even when SCRIPR/CONSERVE is specified. I honestly don't understand why SCRIPR and its options are even being specified in the namcouple file as they are overridden and just make things confusing. Also, the ATM=>ICE fields should definitely be calculated without masking for conserved fields. You don't want to move radiation etc from land to the ocean/ice. There don't appear to be spurious values near the coasts from what I can tell so I guess the actual area is used when calculating the the weights but they get masked after. |
Hi everyone, I am resurrecting this thread because I think there are still problems. I am doing an experiment where I widen the ITF by bulldozing some of the Indonesia. Following @Acosta-Goncalves I can get the run working by replacing @Acosta-Goncalves sees the same thing in his remove-Hawaii run. I suspect the same is happening in his Antarctic runs but the radiative fluxes are small there so its not obvious. So it looks like a new @aidanheerdegen @russfiedler can you help out here? Thanks! |
Looks like you're right. I'm trying to finish off a few things before I take the next week and a bit off, so won't have a chance to look at this. @nichannah might be able to assist. |
@aidanheerdegen Didn't you have a script to remove the masking and generate the patch? Or how did you un-mask the land? |
The previous fix was to a patch (smoothed) regridding, so I just turned off the option that took notice of masking in the destination cells. @rmholmes said this is an error with a conservative regridding weights file. I don't know the best approach in this case. I guess just redo with altered mask for the destination, but this would require regenerating the weights every time the destination mask is altered. If you could get away with ignoring the destination mask then that would be easier, but this is conservative regridding, so what happens in that case? Is that what we want to happen. This is not a 20 minute job on a friday afternoon. |
Honestly, I'd just go and construct the regridding files, masks etc from scratch rather than go through this updating process. There's clearly something being missed out in the process and the time spent constructing the new remapping file is trivial compared to the running of the model. |
When this is sorted, I am begging you (who???) to document the
correct/complete process.
Thank you,
P
Paul Spence, PhD
Senior Lecturer
Climate Change Research Centre
UNSW, Sydney, Aus.
www.iampaulspence.com
…On Fri, 6 Dec 2019, 4:30 pm russfiedler, ***@***.***> wrote:
Honestly, I'd just go and construct the regridding files, masks etc from
scratch rather than go through this updating process. There's clearly
something being missed out in the process and the time spent constructing
the new remapping file is trivial compared to the running of the model.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#173?email_source=notifications&email_token=ABSWJXBUDSB5Z3UOZ3PMJB3QXHPORA5CNFSM4JGCHVFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGDCCJY#issuecomment-562438439>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSWJXFKEDG35QINWUUVB43QXHPORANCNFSM4JGCHVFA>
.
|
I agree with @russfiedler - regenerating the weights everytime the mask changes is probably the way to go. I'll try this monday with @PaulSpence Alfonso has already documented the steps so far. I'll add to that and then PR the access-om2 wiki. PS: no real rush with this. If there are problems I'll ping again in January. |
I've got this working fine by making my own remapping files using my I've documented the process in draft form in the last section of the access-om2 wiki: https://github.com/COSIMA/access-om2/wiki/Tutorials |
For the record, this repo shows how the 0.25deg
This automated topography generation process makes it easy to alter the topography, but doesn't recalculate the remap weights. Since the land mask was changed, the remap weights also needed regenerating by https://github.com/COSIMA/access-om2/blob/master/tools/make_remap_weights.sh using Russ' tripole bug fix to ESMF_RegridWeightGen https://github.com/COSIMA/esmf/tree/f536c3e (see #216). Also see #158 (comment) and |
Hi All
We are doing some large-scale bulldozing on ACCESS-OM2 ... just to test out potential changes to land ice on glacial changes. This is work with @Acosta-Goncalves
So far, after changing
topog.nc
andocean_mask.nc
in MOM andkmt.nc
in CICE, we are finding divide by zero errors in CICE soon after reading in atmospheric variables.So, the question is -- does anybody know if YATM/OASIS requires other mask changes, or if regrid weights will need to be computed? @nichannah - hoping you might be able to give us some pointers here.
The text was updated successfully, but these errors were encountered: