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

Looking for a python equivalent to MITgcm/verification/isomip/input/gendata.m #9

Open
arrran opened this issue Apr 13, 2021 · 2 comments

Comments

@arrran
Copy link

arrran commented Apr 13, 2021

Hullo,

I use python to run MITgcm with shelf ice, but havent managed to find a python script to produce a SHELFICEloadAnomalyFile (aka input/phi0surf)
I have been running MITgcm/verification/isomip/input/gendata.m from python, which is slow.

Are you aware of a python script which produces a SHELFICEloadAnomalyFile from ice shelf topography and bathymetry?

Thanks!
arran

@knaughten
Copy link
Owner

I've previously written up this explanation of my domain generation tools which might help you: https://github.com/knaughten/mitgcm_python/wiki/Creating-a-new-MITgcm-domain
It includes the function calc_load_anomaly which I think is what you are looking for:

def calc_load_anomaly (grid, out_file, option='constant', ini_temp_file=None, ini_salt_file=None, ini_temp=None, ini_salt=None, constant_t=-1.9, constant_s=34.4, eosType='MDJWF', rhoConst=1035, tAlpha=None, sBeta=None, Tref=None, Sref=None, hfac=None, prec=64, check_grid=True):

Good luck!
Kaitlin

@arrran
Copy link
Author

arrran commented Apr 13, 2021

Ah great exactly this, thanks very much!

I will adjust it to output SHELFICEloadAnomalyFile without running MITgcm

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

2 participants