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_gyre.py
More file actions
executable file
·62 lines (58 loc) · 2.23 KB
/
Copy pathtseries1_batch_gyre.py
File metadata and controls
executable file
·62 lines (58 loc) · 2.23 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
#!/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_mod 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','rho']
rholim = [1027.2,1027.9]
lat = -70
lon = 340
#filename = 'ISMF_ISMF-noEAIS_rho_wed_pyc_Ryan_shallow_abovepyc_t070-101'
year_range = [10,50]
#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,
varlim = rholim,
input_filename = filename,
ztop_pyc = [True,False], zbottom_pyc = [False,True],
year_overlay=False,overwrite=True)