forked from matthewhoffman/e3sm-cryo-analysis-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
batch_profiles.py
36 lines (32 loc) · 1.04 KB
/
batch_profiles.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 7 13:56:52 2019
@author: cbegeman
"""
import sys
import os
import netCDF4
import datetime
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal
from matplotlib import cm
import cmocean
from math import pi
import weddell_mod as wed
run_incr = ['ISMF','ISMF-noEAIS','ISMF-3dGM','ISMF-noDIB']
#lat = -70
#lon = 360-20
year_range = [70,70]
varlist = ['T','S','rho']
for i in range(20,180,10):
wed.profile(run_incr,varlist,[i,i],mo=8,placename='N31W',maxDepth=-800)
wed.profile(run_incr,varlist,[i,i],mo=2,placename='N31W',maxDepth=-800)
# wed.profile(['u','v'],'ISMF',yr,yr,latS,lonW,runcmp=True,runcmpname='ISMF-3dGM')
# for i,l in enumerate(latS):
# wed.profile(['T','S','rho'],'ISMF',yr,yr,latS[i],lonW[i],runcmp=True)
# wed.profile(['u','v'],'ISMF',yr,yr,latS[i],lonW[i],runcmp=True)
# for run in run_incr:
# wed.profile(['T','S','rho'],run,yr,yr,latS[i],lonW[i])
# wed.profile(['u','v'],run,yr,yr,latS[i],lonW[i])