forked from matthewhoffman/e3sm-cryo-analysis-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_transect_bugfix.py
executable file
·50 lines (47 loc) · 1.6 KB
/
plot_transect_bugfix.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
import sys
import os
import netCDF4
import datetime
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal
from matplotlib import cm
from math import pi
import weddell_mod as wed
from pick_from_mesh import *
from plot_config import *
varlim = True
yr_incr = np.arange(191,201,1)
mo_incr = [6,7,8]
run_incr = ['ISMF','ISMF-3dGM']
#ops_incr = ['sigma1','']
var_incr = ['T']#,'S','sigma1','u','v']
pick_option = 'coord'
transect_name = [#'wtrough_crossshelf'
'trough_crossshelf'
#'etrough_crossshelf'
]
#levels = np.arange(1027.4,1028.0,0.1) # rho
levels = np.arange(32.0,32.7,0.05) # sigma
for tr in transect_name:
for m in run_incr:
wed.transect(pick_option, yr_incr, mo_incr, ['T'],
transect_name = tr, tav=30,
overwrite = True,
zlim = [5,-1e3],savepath=savepath_anvil,
run = m, plot_transect =False
)
#wed.transect(pick_option, yr_incr, mo_incr, ['S'],
# transect_name = tr, tav=30,
# overwrite = True,
# zlim = [5,-1e3],savepath=savepath_anvil,
# run = m, plot_transect =False
# )
#wed.transect(pick_option, [60], mo_incr, var_incr,
# var_contour = 'sigma1',cntr_levels = levels,
# transect_name = tr, tav=3,
# overwrite = True,
# zlim = [5,-1e3],savepath=savepath_anvil,
# run = 'ISMF-noDIB', plot_transect =False
# )