forked from matthewhoffman/e3sm-cryo-analysis-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtseries1_batch_diff.py
More file actions
executable file
·71 lines (67 loc) · 2.66 KB
/
Copy pathtseries1_batch_diff.py
File metadata and controls
executable file
·71 lines (67 loc) · 2.66 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
'''
Script to compare some scalar values from different runs of Thwaites melt variability experiment.
'''
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_mod2 as wed
run_incr = ['ISMF','ISMF-noEAIS','ISMF-3dGM','ISMF-noDIB']
#placename = 'wed_pyc_Ryan_shallow'
#placename = 'gyre_interior'
placename = 'wed_pyc_Ryan_shelf'
#var_incr = ['taux','tauy']
#var_incr = ['T','S','rho','u','v']
#var_incr = ['T','S']
#var_incr = ['unormal']
var_incr = ['rho']
#var_incr = ['rho','rho']
rholim = [1027.2,1027.9]
lat = -70
lon = 340
#filename = 'ISMF_ISMF-noEAIS_ISMF-3dGM_ISMF-noDIB_rho_gyre_interior_abovepyc_t010-180'
filename = 'ISMF_ISMF-noEAIS_ISMF-3dGM_ISMF-noDIB_rho_'+placename+'_abovepyc_t010-180'
year_range = [10,180]
#wed.tseries1(run_incr,['mean'],year_range=year_range,
# placename = 'wed_pyc_Ryan',
# apply_filter = True, cutoff = 1/4,
# print_to_file=True,create_figure=True,
# input_filename = 'ISMF_zpyc_wed_pyc_Ryan_70-101_zlim-4500--3500')
#wed.tseries1(run_incr,['mean'],year_range=year_range,
# placename = 'wed_pyc_Ryan',
# apply_filter = True, cutoff = 1/4,
# print_to_file=True,create_figure=True,
# input_filename = 'ISMF_zpyc_wed_pyc_Ryan_70-101_zlim-2000--500')
#wed.tseries1(run_incr,var_incr,year_range=year_range,
# placename = 'gyre_interior',
# print_to_file=True,create_figure=True,
# apply_filter = True, cutoff = 1/4,
# ztop_pyc = [True], zbottom_pyc = [False],
# year_overlay=False,overwrite=True)
#wed.tseries1(run_incr,var_incr,year_range=year_range,
# placename = placename,
# print_to_file=True,create_figure=True,
# varlim = rholim,
# #apply_filter = True, cutoff = 1/4,
# ztop_pyc = [False], zbottom_pyc = [True],
# year_overlay=False,overwrite=True)
wed.tseries1(run_incr,var_incr,year_range=year_range,
placename = placename,
print_to_file=False,create_figure=True,
input_filename = filename,
#apply_filter = True, cutoff = 1/4,
ztop_pyc = [True], zbottom_pyc = [False],
#ztop_pyc = [False], zbottom_pyc = [True],
#diff_pyc = [True],
reference_run='ISMF', year_overlay=False,overwrite=False)
#zeval = [-100,-400],
#zrange = [-100,-500],
#lat=lat, lon=lon,
#option = 'coord',placename = 'S4E',#'M31W',
#zrange=[0,20],zab=True,