-
Notifications
You must be signed in to change notification settings - Fork 25
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
Initial version for iHAMOCC restart remapping #476
Conversation
…rt file remapping
@jmaerz - thanks for providing the draft PR! I haven't done any testing with |
Hi @TomasTorsvik , as far as I tested, it works for the |
Hi @TomasTorsvik , I now copied |
Hi @jmaerz , I checked CICE for
So at least for the NorESM coupled system the 20200722 variant seems to be the one to use. |
Mh, ok, this looks like different variants are used for different purposes... - having also different y-dimensions. Maybe @matsbn or @AleksiNummelin can comment (and potentially clean up)? |
I now added support for both grid versions... - since they are easily distinguishable through different grid dimensions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not looked at the details, but I think it is fine to include this
I performed a run, where I was remapping an isopycnic, relatively well adjusted As written, please use with caution. A good initial check of the generated restart file is |
Hi @TomasTorsvik , @JorgSchwinger ,
this draft PR encompasses the new structure for the BLOM
utils
that I proposed in #472 (also building on #83) and includes an iHAMOCC restart file remappingiHAMOCC_restart_remapping.py
that allows to remap iHAMOCC restart files betweentnx2
,tnx1
,tnx0.5
,tnx0.25
) andand can perform an inventory adjustment, if needed.
The default restart mapping currently first interpolates horizontally/along isopycnic layers and then performs a vertical interpolation to the center of the isopycnic layers. Only for the diagnostic water column variables, there is a vertical interpolation step carried out that performs some linear inter-/extrapolation for NaN-filling (which could also be applied in general to all water column variables, if it turns out to be needed - tbd).
As far as I can see, it serves the current needs, while I still need/want to test it via using a remapped restart file in a run.
NOTE: While the script is functional (and tested between different
tnx2
andtnx1
grids), it should be used with caution and newly produced restart files should be carefully checked.The script could be further improved and cleaned/simplified - some notes in that respect:
hi
,co2star
,satoxy
andco3
, the used time step is still of concern - while I expect that it won't change the outcome dramatically irrespective of which one is used for remapping (can be set and tested via the yml-file)tnx0.5
andtnx0.25
support - are there a 0.5 and 0.25 degree BLOM runs somewhere, for which I can test the regridding?If you make use of it and it fails or crashes, please report back or make adjustments that can be pushed as well. Please also push improvements to the script in the future.
I feel that it would be worth to have some common scripts under git control.