-
Notifications
You must be signed in to change notification settings - Fork 4
/
polarris_config_mc3e_wrf.txt
126 lines (126 loc) · 9.65 KB
/
polarris_config_mc3e_wrf.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
###############Set up variable names and how to read the data###############
extra == 'v1.4_test' ==#This will be appended to all output files as an identifier.
date == '201110523' ==#This is the date of the case
ptype == 'png' ==#This is the type of output images
image_dir == r'/gpfsm/dnb32/bcabell/GSDSU_MASTER_V4Beta/POLARRIS_images/' == #Image directory (output)
radar_files == r'/gpfsm/dnb32/bcabell/GSDSU_MASTER_V4Beta/iPOLARRIS/wrf_mc3e_sbm_ryzhkov2011.txt' ==#List of radar files to read in.
mphys ==sbm ==#Type of microphysics used in model
type ==wrf ==#Type of data. 'obs' or 'wrf'
convert_Tk_Tc == True ==#Convert Temperature in K to C (True for 'wrf')
exper == 'MC3E' ==#Experiment locations
radarname == Cband ==# name of radar
band == C ==#Radar band. Needs to be capital letter and X, C, or S
wdate_format == %Y-%m-%d_%H:%M:%S ==# format of the date/ time in the file name
dz_name == zhh01 ==#Name of the reflectivity field
dr_name == zdr01 ==#Name of the differential reflectivity field
kd_name == kdp01 ==#Name of the Kdp field
rh_name == rhohv01 ==#Name of the RhoHV field
rr_name == precip ==#Name of the Rain rate / precipitation field
vr_name == vrad01 ==#name of radial velocity field
vdop_name == vdop01 ==#name of radial velocity field
t_name == t_air ==#Name of the temperature field
uname == u ==#Name of the zonal wind field
vname == v ==#Name of the meridional wind field
wname == w ==#Name of the vertical wind field
xname == longitude ==#Name of the zonal directional variable
yname == latitude ==#Name of the meridional directional variables
zname == hgt ==#Name of the vertical level field
pol_on == True ==#Calculate the pol data such as HID and RR
mixr == ['qc','qr','qi','qs','qg','qh'] ==#cthe mixing ratio types
z_resolution == 1.0 ==#Vertical resolution for CFADs. If comparing 2, they need to be the same.
zthresh == -10. ==#Threshold for good data
wthresh == 5. ==#Threshold for 'updraft' statistics.
trange == np.arange(20,-60,-5) ==#Range of thresholds for plotting temperatures.
doff == 11 ==#offset for date timestamp in radar filename
rdadd == 19 ==#number of characteric in timestamp on radar file.
time_parse==[11,19] ==#more time formatting.
etime == datetime.datetime(2011,5,23,1,0) ==#end of analysis time of interest
stime == datetime.datetime(2011,5,24,23,0) ==#start time of analysis of interest
cs_z == 2.0 ==#Level to determine Convective / stratiform designation.
zconv == 40 ==#Zconv threshold in raintyping algorithm.
conv_types == ['ISO_CONV_CORE','CONVECTIVE','ISO_CS_CORE'] ==#Which Powell et al. types to consider in convective CFADS
strat_types == ['WEAK_ECHO','STRATIFORM','ISO_CONV_FRINGE'] ==#Which Powell et al. types to consider in stratiform CFADS
mixed_types == ['UNCERTAIN'] ==#Which types to not include in either convective or stratiform but will be considered in totals).
zdr_offset == 0 ==#Add any Zdr offset here. Value will be SUBTRACTED from the zdr values.
#
#######Set up some variables related to the observations ###################
### Dual Doppler stuff
dd_on == False ==#Set this to loop through separate dual-Doppler files (e.g. for obs)
dd_files == r'/Users/bdolan/scratch/gitlab/iPOLARRIS/obs_mc3e_dd_20110523.txt'==#location of dual-Doppler files
ddoff == 0 ==#offset for dual-Doppler timestamp in filename
ddadd == 13 ==#number of characters in the timestamp
rdate_format == %Y%m%d_%H%M%S ==#Format for the radar file date
ddate_format == %Y%m%d_%H%M ==#FOrmate for the dual-Doppler file date
### Sounding stuff
snd_on == False ==#Set this to loop through separate sounding files (e.g. for obs)
sfiles == r'/Users/bdolan/scratch/gitlab/iPOLARRIS/' ==#Sounding file directory
sdate_format == %Y%m%d%H ==#Sounding file date format
sstat == LMN ==#Sounding station identification
ad == '' ==#Extra characters
#
### lat/lon of the radar
lat == 36.79616 ==#Lat of the radar
lon == -97.450546 ==#Lon of the radar
alt == 0.327 ==#Altitude of the radar
removediffatt == False ==#Remove differential attenuation by Zdr < -1 and dBZ < 35.
#
############Select the types of plots to see on the output##########################
plot_int == False ==#Turn on plotting of integrated parameters over the whole time frame
####The following are for EACH radar / model time specified in the radar_files list.
plot_cs == True ==#Plot seperate Convective and stratiform CFADs
cfad_mpanel_flag==False ==#4 panel CFADs of Dbz, Zdr, Kdp and W
hid_cfad_flag==False ==# HID CFAD
joint_flag==False ==#Z vs. Zdr
cfad_individ_flag==False ==#Make separate images for dbz, Zdr, Kdp, W and Rho
hid_prof==False ==#Profile of HID species with height
all_cappi==False ==# make a cappi cross section for all times. change parameters in plot_driver.py
cappi_multi==False ==#Set up multi panel CAPPI plots.
all_xsec==False ==# make RHI cross sections for all times. change parmaters in plot_driver.py
xsec_multi==False ==#Set up multi panel RHI plots.
up_width==False ==# Make a plot of the vertical velocity profile with temperature.
qr_cappi==False ==# Make cappi cross section of mixing ratios. change parameters in plot_driver.py (only valid for model)
qr_rhi==True ==#Make rhis of the mixing ratios (only valid for model)
cfadbytype==False ==# Produce CFADS for a specific HID type.
hid_stats == False ==#Whether to get HID stats (scores and correlations with mixing ratios)
ks == ['cfad_mpanel_flag','hid_cfad_flag','joint_flag','cfad_individ_flag','hid_prof','all_cappi','all_xsec','up_width','qr_cappi','qr_rhi'] ==#list of flags
#
#############Set up some plotting configurations #########################
wbins == np.arange(-25,26,0.5) ==#Histogram bins for vertical velocity
dzbins == np.arange(-10,60,1) ==#Histogram bins for reflectivity
drbins == np.arange(-2,6,0.05) ==#Histogram bins for differential reflectivity
rhbins == np.arange(0.5,1.05,0.05) ==#Histogram bins for differential reflectivity
kdbins == np.arange(-2,6,0.05) ==#Histogram bins for specific differential phase
rrbins == np.logspace(0.01,2.5,30) ==#Histogram bins for rain rates
#
###Set up the types of hid to group together for water, graupel, hail and snow.
hidwater == [1,2,10] ==#Group drizzle, rain and big drops
hidgraup == [7,8] ==#Group low and high density graupel
hidhail == [9] ==#Hail
hidsnow ==[3,4,5,6] ==#Group ice crystals, snow, wet snow and VI
#
#
####Set up some specifics for the cross-sections.####################
#xlim == [-100,100] ==#lat / lon zoom for CAPPIS
#ylim == [-100,100] ==# lat / lon zoom for CAPPIS
#y==10. ==#Lat of the y cross-section for RHI
xlim == [-99,-95.5] ==#lat / lon zoom for CAPPIS
ylim == [35.0,37.5] ==# lat / lon zoom for CAPPIS
#y==35.85 ==#Lat of the y cross-section for RHI
y==36.7 ==#Lat of the y cross-section for RHI
#y == -12.5 ==#Lat of the y cross-section for RHI
#xlim == [130,131.5] ==# lat / lon zoom for CAPPIS
#ylim == [-13.5,-11.5] ==# lat / lon zoom for CAPPIS
z == 2.0 ==#Height of the CAPPIs
cvectors == [None,None,None,None,None,None] ==#Turn on vectors in the plots.
rvectors == [None,None,None,None,None,None] ==#Turn on vectors in the plots.
vectors == True ==#Turn on vectors in the plots.
skip == 4 ==#Number of vectors to skip for the vector plots.
########mix_vars ==['qc','qr','qg','qi','qh',config['rr_name'],config['vr_name'],'HID'] ==#Mixing ratios from mode to plot.
mix_vars == ['qr','qc'] == #Mixing ratios from mode to plot
rhi_vars ==['HID',config['dz_name'],config['dr_name'],config['kd_name'],config['rh_name'],config['wname']]== #'qc','qr','qg','qi','qh','qs'] Names of vars for RHI plots
cappi_vars == [config['dz_name']] ==#['HID',config['dz_name'],config['dr_name'],config['kd_name'],config['rh_name'],config['vr_name']] #Names of vars for CAPPI plots
comb_vicr == True ==# Combine VI with CR for plotting.
cappi_contours == [None] ==#'CS',None,None,None,None,None] #What contours to apply to the CAPPI images.
cappi_vectres == 10 ==#Defined the vector skip for cappi plots.
rhi_vectres == [10,2] ==#Defines the [x,z] skip for rhi plots
#