Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
dcc5bd8
Create config and input directory files.
anthony-ds May 25, 2021
ee1a7c9
Used iPOL version of csu_fhc instead of looking for csu_radartools ve…
anthony-ds May 25, 2021
aa55376
Changed style from 'presentation' to 'default'.
anthony-ds May 25, 2021
2cf29a0
Imported UserDict.UserDict instead of collections.UserDict
anthony-ds May 25, 2021
d4f0807
Commented out line 127.
anthony-ds May 25, 2021
f7ff077
Add drop_vars line, set to False
anthony-ds May 25, 2021
f74b13d
Commented out xr.open_mfdataset line to remove 'combine' flag
anthony-ds May 25, 2021
6c0a146
Added 'convname == None ==' to config file
anthony-ds May 25, 2021
9133980
Added 'vr_name == VR ==' to config file
anthony-ds May 25, 2021
a8cf9f8
Matched config file with version that Brenda emailed
anthony-ds May 26, 2021
20c490a
Commented out ax.set_extent() for now.
anthony-ds May 26, 2021
7f114cb
Changed suffix to remove tabs (antho)
anthony-ds May 26, 2021
72cef55
Changed exception for IndexError - trying something out
anthony-ds May 26, 2021
ee9fdc8
z variable has increments of 1 starting from 0.5
anthony-ds May 26, 2021
957928c
One file only for testing
anthony-ds May 26, 2021
8540049
No issues re: exception for IndexError. Needed to change z variable i…
anthony-ds May 26, 2021
b1af059
New plotsgit add iPOLARRIS_images_test/
anthony-ds May 26, 2021
a00a0c9
Commented out xticklabels line at 1050 for now
anthony-ds May 26, 2021
489fc33
plot_vertprof - make copy of array with .copy()
anthony-ds May 26, 2021
edcb56c
Turned off cs_over for composite map
anthony-ds May 27, 2021
79ab015
Cannot change values in original array. Made second holddat var (hold…
anthony-ds May 27, 2021
840b577
Turned some flags off for debugging.
anthony-ds May 27, 2021
b1e9584
yml file
anthony-ds May 27, 2021
b56eed7
Update env.yml file
anthony-ds May 28, 2021
b9e6ccc
Added Cython as dependency for Mac
anthony-ds May 28, 2021
29f2fca
Renamed env to pol2.7
anthony-ds May 28, 2021
290bc30
Ignore .so files
anthony-ds May 29, 2021
4f49b97
No need for Cython as dependency
anthony-ds May 29, 2021
a60678b
Ignore obs.txt file - subjective
anthony-ds May 29, 2021
5ffcfd5
Temporary place for instructions to run on MAC OS.
anthony-ds May 29, 2021
bb3c922
Undid changes to ignore .so and obs.txt files
anthony-ds May 29, 2021
3d08082
Necessary to have .so file
anthony-ds May 29, 2021
85abf37
Needed
anthony-ds May 29, 2021
a915f41
Make Python most updated version
anthony-ds May 29, 2021
65511ef
UserDict is part of the collections package.
anthony-ds May 29, 2021
e402196
Dimension d of size 1 not seen anymore with updated xarray. No need t…
anthony-ds May 29, 2021
d5f36ce
Current iPOLARRIS with dependencies does not concatenate radar files …
anthony-ds May 29, 2021
f6261ad
For xarray concatenation, in open_mfdataset, flag 'combine=nested' wo…
anthony-ds May 29, 2021
9092466
Implement if/else for comparing tdum to None or float
anthony-ds May 30, 2021
b40b883
Organized output flags
anthony-ds Jun 2, 2021
8208708
Organized output flags
anthony-ds Jun 2, 2021
fe40001
Removed repeated imports; added intro comments at beginning
anthony-ds Jun 6, 2021
8eb1fb5
Comments
anthony-ds Jun 6, 2021
c0a26eb
Output file changes
anthony-ds Jun 6, 2021
9f1d4eb
Comments
anthony-ds Jun 6, 2021
8909a6d
Comments
anthony-ds Jun 6, 2021
5304606
Cleaned up import packages
anthony-ds Jun 6, 2021
ba6e194
New: able to read config file and skip empty lines
anthony-ds Jun 6, 2021
4f688f9
Manual tracking of major package upgrades and changes
anthony-ds Jun 6, 2021
b8ed391
Can skip lines now! :D
anthony-ds Jun 6, 2021
8168721
Added tabs to increase clarity
anthony-ds Jun 6, 2021
bf2b493
Added comment that config file is being read.
anthony-ds Jun 6, 2021
f88e127
Radar input directory given instead of text file with files to read
anthony-ds Jun 7, 2021
c8df7bc
Radar input directory given instead of text file with files to read
anthony-ds Jun 7, 2021
90d7a7f
Log change to input directory search
anthony-ds Jun 7, 2021
a54dabf
Rearrange input file search commands and add script pausing
anthony-ds Jun 7, 2021
0ee4f38
More comments and re-arranging
anthony-ds Jun 7, 2021
e898438
More comments
anthony-ds Jun 7, 2021
aac266b
Modified some config entries for new radar file names
anthony-ds Jun 16, 2021
c4619a5
Added newline
anthony-ds Jun 16, 2021
38c624b
Don't need these files - just need to clear git status
anthony-ds Jun 16, 2021
0a6d495
Added Doppler and sounding flag info
anthony-ds Jun 16, 2021
025a2cd
Changed from looking for text file with files to glob
anthony-ds Jun 16, 2021
fa93cfe
Removed initialized rdum
anthony-ds Jun 16, 2021
2398e03
Added timestamp variables to search for datetime in sounding filename
anthony-ds Jun 16, 2021
ad1e333
Changed names of variables for parsing datetime strings of files; cha…
anthony-ds Jun 17, 2021
312db83
Adjusted start/end time input formatting
anthony-ds Jun 17, 2021
9ed29bb
Made adjustments to sounding loops for date formatting and searching
anthony-ds Jun 17, 2021
0f156a4
Changed search for sounding station and datetime in sounding file
anthony-ds Jun 17, 2021
9bb2c3d
Attempt at requirements file for pip install
anthony-ds Jun 18, 2021
ed7e849
Removed invalid pip: line
anthony-ds Jun 18, 2021
33d58fe
Returning to text file to list input ipol files for analysis, no more…
anthony-ds Jun 21, 2021
3ac3659
Removed comments
anthony-ds Jun 21, 2021
197a778
Fixed string length of datetime for Doppler reading
anthony-ds Jun 21, 2021
150613b
Instead of using .sel() to read in a dimension for u, v, w - use matr…
anthony-ds Jun 21, 2021
8c4837b
Created new text files to house destinations of dual-pol radar, dual-…
anthony-ds Jun 21, 2021
0eaa8b1
Read in sounding files from text file
anthony-ds Jun 21, 2021
47e356a
Sample sounding files here
anthony-ds Jun 21, 2021
82966d9
Text file points to location of sounding
anthony-ds Jun 21, 2021
5c5a185
Testing
anthony-ds Jun 21, 2021
8698c75
Redirect location in sounding file of variables to first line
anthony-ds Jun 21, 2021
de40556
Start reading the sounding file line 1
anthony-ds Jun 21, 2021
f5f7c32
Include .txt files and .nc files for samples
anthony-ds Jun 22, 2021
89fde01
Compressed .nc files for git push
anthony-ds Jun 22, 2021
6af491b
Need also the regridded dopp ncs
anthony-ds Jun 22, 2021
15b9c09
New .so file
Jun 22, 2021
32d4560
radar_files ==> rfiles
anthony-ds Jun 23, 2021
1d2245f
dopp_files ==> dfiles
anthony-ds Jun 23, 2021
243b6d1
Made xlim/ylim accurate
anthony-ds Jun 23, 2021
7b95736
Testing
anthony-ds Jun 23, 2021
1294f5a
New routine to put sounding data into dictionary; renaming of soundin…
anthony-ds Jun 24, 2021
25510bf
Changed what happens if tdum.any() = None
anthony-ds Jun 24, 2021
5ed1aea
Sounding loops can be turned on.
anthony-ds Jun 24, 2021
32d7eec
Don't update files in output folder.
anthony-ds Jun 24, 2021
bea378d
Files cleared
anthony-ds Jun 24, 2021
e45b84e
Placed Anthony as contributor
anthony-ds Jun 24, 2021
3f55401
Add gfortran compiler to conda env
anthony-ds Jun 24, 2021
40869ec
Removed gfortran package install with conda
anthony-ds Jun 24, 2021
c67856e
New file explaining how to create .so files that are readable
anthony-ds Jun 29, 2021
bcf975a
Added new color-blind colormap for REF
anthony-ds Jun 29, 2021
9c3ff5f
Added new flags: (a) to turn composite reflectivity spatial plot on/o…
anthony-ds Jun 29, 2021
96039ca
Removed a few newlines
anthony-ds Jun 29, 2021
9147049
NEW: updated the plot_composite function - new layout for output figu…
anthony-ds Jun 29, 2021
035f765
Changed directory source of sounding files
anthony-ds Jun 29, 2021
3c15d1d
Added an output sub-directory for plot_composite
anthony-ds Jun 29, 2021
d183f49
Added seconds to timestamps on composite plotting figure and filename
anthony-ds Jun 29, 2021
2c4431c
Cleaned up and user-friendified the comments further
anthony-ds Jun 29, 2021
32d312b
Added output headers for user-friendliness
anthony-ds Jun 29, 2021
b9a1fc2
Adjusting comments and add some new
anthony-ds Jun 29, 2021
d2bbcdd
New flags for PPIs and CAPPIs; xlim/ylim given in km
anthony-ds Jun 30, 2021
1e35dea
Created new function in plot_driver called plot_cappi. Moves some wor…
anthony-ds Jun 30, 2021
c111987
Moved xlim, ylim up to new section
anthony-ds Jul 6, 2021
84f4ced
NEW! CAPPI plotting changes to clean up
anthony-ds Jul 6, 2021
50aee59
Updated .so file from compilation with f2py
anthony-ds Jul 6, 2021
b3249e4
NEW! Additional flags for figures plotted by run_ipolarris_new.py, an…
anthony-ds Jul 7, 2021
e35b6b6
Added more new flags
anthony-ds Jul 13, 2021
a83b7d7
Changed file names to be lowercase
anthony-ds Jul 13, 2021
a11f877
Switched cfad_mpanel_flag on
anthony-ds Jul 13, 2021
6adab1d
Added exit comments at bottom
anthony-ds Jul 13, 2021
555f505
Bbox instead of tight_layout
anthony-ds Jul 13, 2021
0924dff
Working on first advanced plots: multi-panel and HID - made pretty
anthony-ds Jul 13, 2021
d400ec9
Removed newline
anthony-ds Jul 17, 2021
0686b71
Removed white color from HID colors
anthony-ds Jul 17, 2021
06f2311
Automated normalization of HID colorbar
anthony-ds Jul 17, 2021
f9300f8
NEW! Updated HID barh plot and colorbar
anthony-ds Jul 17, 2021
86eec74
Switched over to presentation.mplstyle for graphics settings - to be …
anthony-ds Jul 19, 2021
db4367c
Brackets around velocity units
anthony-ds Jul 19, 2021
589551a
4-panel for joint_flag cleaned up with larger text font and labelling
anthony-ds Jul 20, 2021
ea21b48
Use 'W' instead of 'upward_velocity' as labels
anthony-ds Jul 20, 2021
6c44ec8
Modified colorbar
anthony-ds Jul 20, 2021
f5198b3
Made indiv_flag and hid_prof figures pretty
anthony-ds Jul 20, 2021
936b638
Made changes in temperature/VV routine - was not working
anthony-ds Jul 22, 2021
e5a2ec1
Improved temperature/VV plots and changed flags passed from config
anthony-ds Jul 22, 2021
fa7275f
When indexing self.T array, removed '...' and instead included : for …
anthony-ds Jul 22, 2021
cb3e241
NEW! Added in new config variable to elect color-blind friendly REF c…
anthony-ds Aug 4, 2021
a640ce9
Fixed mistake with transAxes
anthony-ds Aug 11, 2021
d9ae62b
NEW! Temperature profile reading correctly. Height CFADs for HID are …
anthony-ds Aug 11, 2021
dc1818b
Put text files into input folder, changed name of output folder
anthony-ds Aug 16, 2021
4e5f3a0
Flashier message about .so file creation
anthony-ds Aug 16, 2021
699f2d5
Renamed accessing_so_files.txt name
anthony-ds Aug 16, 2021
98e9574
More clean-up of my_config.txt for clarity
anthony-ds Aug 16, 2021
a429755
Added a few words for clarity
anthony-ds Aug 16, 2021
de1fb73
Removed input()
anthony-ds Aug 16, 2021
7635462
Capitalized config file
anthony-ds Aug 16, 2021
bb035c1
Updated README
anthony-ds Aug 16, 2021
89b5c75
Removed quotes for variables type and station
anthony-ds Aug 16, 2021
21c5e39
Tried fixing weird single quote issue, no progress
anthony-ds Aug 16, 2021
5da0a82
Removed extrax and extra from software
anthony-ds Aug 16, 2021
3a24dcf
NEW! Output directory tree a.f. station and event
anthony-ds Aug 16, 2021
37ab19c
NEW! Simplified file naming for time-dependent output
anthony-ds Aug 16, 2021
1f4df16
NEW! Clean-up of output file naming, and more directory trees for eas…
anthony-ds Aug 16, 2021
246238c
NEW! RRP --> RR
anthony-ds Aug 16, 2021
d7a6087
Fixed RR issue with units - didn't detect name RR to find units if No…
anthony-ds Aug 18, 2021
5e39db1
NEW! Tab-friendly read of config file possible
anthony-ds Aug 18, 2021
d42026c
NEW! Simplified flag calls from config file, and modified comments
anthony-ds Aug 19, 2021
69d3459
cappi_multi working
anthony-ds Aug 24, 2021
7602d64
multi_xsec works - rhi figures created
anthony-ds Aug 25, 2021
0ec3008
Moved qr flags away from group, as these only function with model dat…
anthony-ds Aug 25, 2021
30346aa
Added uppercase naming for variables
anthony-ds Aug 27, 2021
6f5de26
NEW! CAPPI multi-panel optimized - proper HID colorbar, clean axes, f…
anthony-ds Aug 27, 2021
91dca3f
Adjusted ylim limit reading from config file for y-axis of multi-pane…
anthony-ds Aug 27, 2021
8c9e557
NEW! Cleaned up rhi multi-panel - similar changes as for cappi multi-…
anthony-ds Aug 27, 2021
2f9e787
Output panel figs for cappi and rhi
anthony-ds Aug 27, 2021
2af1462
Ignore .DS_Store files
anthony-ds Aug 27, 2021
81dca64
For cappi and rhi panel plots, set xlim, ylim
anthony-ds Aug 28, 2021
d638a5d
More documentation for turning plot flags on
anthony-ds Aug 28, 2021
2cb366c
NEW! Individual CAPPI and RHI figures available
anthony-ds Aug 30, 2021
5d7887a
NEW! xarray==0.18.0
anthony-ds Sep 2, 2021
0939705
Turned xlim,ylim on
anthony-ds Sep 2, 2021
4e08b1a
Adjustments for accommodate dd_on = False; remove unnecessary plot ax…
anthony-ds Sep 2, 2021
824c47e
ylab adjustment for CFAD 4-panel in case subplots not 2 x 2
anthony-ds Sep 2, 2021
d3ec1dc
The main changes are related to:
bdolan44 Sep 2, 2021
e69f964
These changes are to check which kind of sounding is being read in, o…
bdolan44 Sep 2, 2021
d70dcf4
More plotting enhancements for CFADs if there are fewer than 4 panels
anthony-ds Sep 2, 2021
25b1d8e
working on drizzle fixes.
bdolan44 Sep 2, 2021
bcbbcc6
Merge branch 'iPOLARRIS_v1.0.2' of https://github.com/anthony-ds/iPOL…
bdolan44 Sep 2, 2021
9bbe967
Removed input() for testing
anthony-ds Sep 2, 2021
14e45dd
Commented out a bunch of print statements to make a cleaner screen ou…
bdolan44 Sep 2, 2021
48ea155
Merging more changes from ADS and BD.
bdolan44 Sep 2, 2021
6053b60
Fixed spacing between CFAD panels when fewer than 4
anthony-ds Sep 2, 2021
bcfcc49
Modifications to read some data (MC3E) correctly and plot. Extra dime…
bdolan44 Sep 2, 2021
1a5d9b0
Changing HID color range back to 0 to nspecies+1.
bdolan44 Sep 2, 2021
92eb5ec
Added xlim for CFADs
anthony-ds Sep 2, 2021
55471d6
Merge branch 'iPOLARRIS_v1.0.2' of https://github.com/anthony-ds/iPOL…
anthony-ds Sep 2, 2021
f5c210a
The input file for MC3E observations.
bdolan44 Sep 2, 2021
b446053
Merge branch 'iPOLARRIS_v1.0.2' of https://github.com/anthony-ds/iPOL…
anthony-ds Sep 2, 2021
69295de
Changed output dir and set dd_on back to True
anthony-ds Sep 7, 2021
ee659ac
NEW! Masks for HID because values of -1 appear above the melting laye…
anthony-ds Sep 7, 2021
00231bb
ATTEMPT: New Doppler files that will correct the velocity plot issues...
anthony-ds Sep 8, 2021
260195d
NEW! iPOLARRIS fully functionalgit add .! All figures working, sample…
anthony-ds Sep 8, 2021
782c66f
Checked compo_ref to test different pre-processing projection
anthony-ds Sep 16, 2021
8918d0b
Renamed flags to be more obvious to user
anthony-ds Sep 16, 2021
9f9834f
Spaces
anthony-ds Sep 20, 2021
fe3d8a8
NEW! User output comments complete for entire run
anthony-ds Sep 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
*.ipynb
*.nc
*.cdf
*.png
*.tar.gz
*.tar
*.pyc
*.p
*.npy
*.DS_Store
3 changes: 3 additions & 0 deletions BEFORE_EXECUTION_NEED_SO_FILE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When running on MAC or Linux OS, perform the following commands before running `python run_ipolarris_new.py my_config.txt`:
1) Put /usr/bin ahead of your "default" executable directories (i.e. before /opt/local/bin) in $PATH, if it is not already. It does not need to be ahead of your custom executable directories (i.e. ~/../anaconda3/bin).
2) Run: f2py -c calc_kdp_ray_fir.f -m calc_kdp_ray_fir. This will allow you to use the Fortran compiler in /usr/bin to convert your .f file into a readable .so file for your MAC or Linux OS.
3 changes: 2 additions & 1 deletion GeneralFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@

#import analysis_tools as AT
#import lightning_tools as LT
from CSU_RadarTools.csu_radartools import csu_fhc
#from CSU_RadarTools.csu_radartools import csu_fhc
import csu_fhc
import general_tools as gentools
import RadarConfig
from matplotlib.colors import from_levels_and_colors
Expand Down
207 changes: 207 additions & 0 deletions MC3E_config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
####################################################
#################### MY_CONFIG.TXT #################
####################################################

type == obs == # Type of input data: 'obs' OR 'wrf' (obs + simulated)
mphys == obs == # Type of microphysics used in model: 'obs' OR '<scheme>' if type = 'wrf'


#==============
#### INPUT ####
#==============

#-----------------------------------------------
#------ Radar File Reading (NOT OPTIONAL) ------
#-----------------------------------------------

# Args
sdatetime == '20110523_200000' == # Start time of analysis of interest
sdatetime_format == %Y%m%d_%H%M%S == # Start time format
edatetime == '20110523_235710' == # End time of analysis of interest
edatetime_format == %Y%m%d_%H%M%S == # End time format

date == '20110523' == # Date of the case
rfiles == './obs_mc3e_csapr_20110523_all.txt' == # Input directory of radar files to read in
rdate_format == %Y%m%d_%H%M%S == # Format for the radar file date
rdend == 13 == # End of date timestamp in radar filename
rdstart == 0 == # Start of date timestamp in radar filename

# Variables (NOTE: use NCDUMP to locate variable names of radar observables and info)
dz_name == DBZCS == # Name of the reflectivity field
dr_name == ZDRCS == # Name of the differential reflectivity field
kd_name == KDPCS == # Name of the Kdp field
rh_name == RHOCS == # Name of the RhoHV field
rr_name == None == # Name of the Rain rate / precipitation field
vr_name == VELCS == # Name of radial velocity field
band == C == # Radar band: X, C OR S. Note: needs to be capital letter.
exper == MC3E == # Radar location
lat == 36.79616 == # Latitude of the radar station
lon == -97.450546 == # Longitude of the radar station
radarname == C-band == #

# Other (NOTE: use the internet to find these - not ideal)
alt ==0.327 == # Altitude of the radar in km

#---------------------------------------------------
#------ Doppler Radar File Reading (Optional) ------
#---------------------------------------------------

dd_on == True == # Set this to loop through separate dual-Doppler files (e.g. for obs)

# Args
dfiles == './obs_mc3e_dd_20110523.txt' == # Location of dual-Doppler files
ddate_format == %Y%m%d_%H%M%S == # Format for the dual-Doppler file date
ddstart == 0 == # Offset for dual-Doppler timestamp in filename
ddend == 13 == # Offset for dual-Doppler timestamp in filename

# Variables (NOTE: use NCDUMP to locate variable names of Doppler radar fields and info)
convname == None == # Name of
uname == U == # Name of the zonal wind field
vname == V == # Name of the meridional wind field
wname == Wvar == # Name of the vertical wind field
xname == x == # Name of the zonal directional variable
yname == y == # Name of the meridional directional variables
zname == z == # Name of the vertical level field

#----------------------------------------------
#------ Sounding File Reading (Optional) ------
#----------------------------------------------

snd_on == True == # Set this to loop through separate dual-Doppler files (e.g. for obs)

# Args
ad == config['date']+'_' == # Extra characters
sdate_format == %Y%m%d%H == # Sounding file date format
sfiles == './MC3E_sounding_files.txt' == # Sounding file directory
sdstart == 13 == # Offset for date timestamp in sounding filename
sdend == 23 == # Number of characters in timestamp on sounding file
sstat == LMN == # Sounding station identification

# Variables
t_name == T == # Name of the temperature field


#===============
#### OUTPUT ####
#===============

#----------------------------------------------------------
#------ Output Flags (what to print) if type = 'obs' ------
#----------------------------------------------------------

# SET 1) Plots created in run_ipolarris_new.py
all1 == False == # Set to True to output ALL figures in SET 1 below
compo_ref == False == # 1) Set to True to plot for spatial composite reflectivity plotting (1 figure per timestep)
cappi_ref == False == # 2) Set to True to plot reflectivity CAPPI at some altitude z (set z below)
cappi_rr == False == # 3) Set to True to plot rain rate CAPPI at some altitude z (set z below)
rr_timeseries == False == # 4) Set to True to plot a time series of convective and stratiform rain rate
vv_profiles == False == # 5) Set to True to plot vertical profiles of the 50th, 90th and 99th percentile of updraft, downdrafts and overall vertical velocity
vert_ref == False == # 5) Set to True to plot vertical profile of reflectivity with height
refcfad == False == # 6) Set to True to plot CFAD of reflectivity with height

# Text files created in run_ipolarris_new.py
all2 == False == # Set to True to output ALL text files in SET 2 below
rrstats_txt == False == # 7)
rrhist_txt == False == # 8)
rrstats_areas_txt == False == # 9)
percentiles_txt == False == # 10)

# Plots created in plot_driver.py
all3 == False == Set to True to output ALL figures in SET 3 below
plot_int == False == # 11) Set to True to plot integrated parameters over the whole time frame
plot_cs == False == # 12) Set to True to plot separate convective and stratiform CFADs
cfad_mpanel_flag == False == # 13) Set to True to plot 4-panel of CFADs of Z, ZDR, KDP and W
hid_cfad_flag == False == # 14) Set to True to plot CFAD of HID
joint_flag == False == # 15) Set to True to plot 4-panel of comparison figures between various polarimetric vars
cfad_individ_flag == False == # 16) Set to True to plot separate images for Z, ZDR, KDP, W and RHO
hid_prof == False == # 17) Set to True to plot vertical profile of grouped HID species with height
up_width == False == # 18) Set to True to plot vertical profile of updraft width with temperature.
cappi_multi == True == # 19) Set to True to plot x-panel of CAPPIs for x polarimetric variables at some altitude z (set z below; 1 figure per timestep)
cappi_individ == False == # 20) Set to True to plot a CAPPI for x individual polarimetric variables at some altitude z (set z below; 1 figure per timestep)
rhi_multi == True == # 21) Set to True to plot x-panel of RHIs for x polarimetric variables at some latitude/N-S distance from the radar y (set y below; 1 figure per timestep)
rhi_individ == False == # 22) Set to True to plot an RHI for x individual polarimetric variables at some latitude/N-S distance from the radar y (set y below; 1 figure per timestep)

# Model Only
qr_cappi == False == # FK) Make cappi cross section of mixing ratios. change parameters in plot_driver.py (only valid for model)
qr_rhi == False == # FL) Make rhis of the mixing ratios (only valid for model)


#----------------------------------------------------------
#------ Output Flags (what to print) if type = 'wrf' ------
#----------------------------------------------------------

convert_Tk_Tc == False == # Convert temperature in K to deg C

#-----------------------------
#------ Output Settings ------
#-----------------------------

# Args
image_dir == './outputfig/' == # Output figure directory
ptype == 'png' == # Output figure file extenstion (i.e. .png, .jpg, ...)
cb_friendly == True == # Use color-blindness palette for output (i.e. reflectivity)

# Constant-Altitude Plan-Position Indicator (CAPPI)
xlim == [-200,200] ==#lat / lon zoom for CAPPIS
ylim == [-200,200] ==# lat / lon zoom for CAPPIS
y == 20 ==#Lat of the y cross-section for RHI
#xlim == [-127.0,-121.0] ==#lat / lon zoom for CAPPIS
#ylim == [45.0,49.0] ==# lat / lon zoom for CAPPIS
#y==35.7 ==#Lat of the y cross-section for RHI
z == 2.0 ==#Height of the CAPPIs
zlim == [0,12] ==

# Histogram Bins for Radar Observables
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
kdbins == np.arange(-2,6,0.05) == # Histogram bins for specific differential phase
rrbins == np.logspace(0.01,100.01,30) == # Histogram bins for rain rates

# Grouping of HID Variables for Vertical Profiling
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


#=========================================================
#### UNCLASSIFIED (from old version of my_config.txt) ####
#=========================================================

###############Set up variable names and how to read the data###############
latname == lat ==
lonname == lon ==
pol_on == True ==#Calculate the pol data such as HID and RR
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.
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.6 ==#Add any Zdr offset here. Value will be SUBTRACTED from the zdr values.
mask_model == False ==
drop_vars == False ==
#
#######Set up some variables related to the observations ###################
removediffatt == True ==#Remove differential attenuation by Zdr < -1 and dBZ < 35.
#
############Select the types of plots to see on the output##########################
#############Set up some plotting configurations #########################
#
#
####Set up some specifics for the cross-sections.####################
cvectors == [None,None,None,None,None,True] ==#Turn on vectors in the plots.
rvectors == [None,None,None,None,None,True] ==#Turn on vectors in the plots.
skip == 2 ==#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 model to plot.
rhi_vars ==['HID',config['dz_name'],config['dr_name'],config['kd_name'],config['rh_name'],config['wname']] == #Names of vars for RHI plots
cappi_vars == ['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 == ['CS',None,None,None,None,None] ==#What contours to apply to the CAPPI images.
cappi_vectres == 5 ==#Defined the vector skip for cappi plots.
rhi_vectres == [6,2] ==#Defines the [x,z] skip for rhi plots
#
Loading