<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lrose.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Barbero</id>
	<title>Lrose Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lrose.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Barbero"/>
	<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php/Special:Contributions/Barbero"/>
	<updated>2026-04-30T06:06:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=972</id>
		<title>RadxBeamBlock</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=972"/>
		<updated>2022-08-08T16:07:40Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Prerequesites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RadxBeamBlock estimates the amount of beam blockage due to terrain near a radar.&lt;br /&gt;
&lt;br /&gt;
=== '''Overview''' ===&lt;br /&gt;
&lt;br /&gt;
Overall, RadxBeamBlock takes elevation data, the radar location, and radar characteristics to estimate how much blockage occurs due to terrain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Prerequesites''' ===&lt;br /&gt;
&lt;br /&gt;
The following items are required:&lt;br /&gt;
&lt;br /&gt;
* Digital elevation model data&lt;br /&gt;
* Radar antenna location&lt;br /&gt;
* Radar characteristics&lt;br /&gt;
* Parameter files for RadxBeamBlock&lt;br /&gt;
&lt;br /&gt;
=== '''Digital elevation model data''' ===&lt;br /&gt;
Note: a NASA Earthdata account is needed to download topography data. Creating an account is free and quick to do, and can be done [https://www.earthdata.nasa.gov/ here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The supported digital elevation models include Shuttle Radar Topography Mission (SRTM) and ESRI grid data (spheroid). SRTM data can be found online '''[https://lpdaac.usgs.gov/products/srtmgl3sv003/#tools here]'''. SRTM data for the entire globe is 22GB and can be a lot to download! If you only need a subsection for your region of interest, use a recursive script to download them. If you only need a few files, this is easy enough to do manually. Remember to unzip your files. Once completed, you should have a directory with .hgt files spanning your region.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
  1 #!/bin/bash&lt;br /&gt;
  2 &lt;br /&gt;
  3 # download SRTM data for Taiwan region&lt;br /&gt;
  4 &lt;br /&gt;
  5 for lat in `seq 19 25`&lt;br /&gt;
  6   do&lt;br /&gt;
  7     for lon in `seq 117 123`&lt;br /&gt;
  8       do&lt;br /&gt;
  9       # get files&lt;br /&gt;
 10       wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip&lt;br /&gt;
 11   done&lt;br /&gt;
 12 done&lt;br /&gt;
&lt;br /&gt;
=== '''Radar location and characteristics''' ===&lt;br /&gt;
&lt;br /&gt;
The radar location requires the latitude, longitude, and elevation of the antenna (ground level + radar height). In addition, characteristics including the wavelength, beamwidth, gate spacing, azimuths, and elevation angles are required. This information can be found using RadxPrint on a raw radar file or converted radar CfRadial file.&lt;br /&gt;
 RadxPrint -f /path/to/radar/file&lt;br /&gt;
&lt;br /&gt;
=== '''Parameter files''' ===&lt;br /&gt;
&lt;br /&gt;
RadxBeamBlock uses one parameter file. Compared to other Radx applications, the RadxBeamBlock parameter file requires just a few edits in order to run. Most of the parameters that need to be changed relate to the radar characteristics.&lt;br /&gt;
&lt;br /&gt;
==== '''1) Main parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
===== '''Ensure file is up to date''' =====&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -print_params &amp;amp;gt; param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you already have a parameter file and simply want to check for (and add) updated parameters while retaining current parameters, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params orig_param_file_name -print_params &amp;amp;gt; new_param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== '''Important parameters''' =====&lt;br /&gt;
&lt;br /&gt;
Input params&lt;br /&gt;
&lt;br /&gt;
* input_dem_parth: directory containing the elevation data&lt;br /&gt;
* input_data_format: specifies the format of the elevation data (examples provided in the parameter file)&lt;br /&gt;
&lt;br /&gt;
Radar parameters&lt;br /&gt;
&lt;br /&gt;
* radar_location: latitude, longitude, and elevation (ground elevation&lt;br /&gt;
** radar height in km) of the radar antenna&lt;br /&gt;
* radar_wavelength_cm: radar wavelength (cm)&lt;br /&gt;
* horiz_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* vert_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* gates: starting distance, gate spacing (km), and number of gates&lt;br /&gt;
* azimuths: starting azimuth, azimuth spacing (degrees), and number of azimuths&lt;br /&gt;
* elevations: starting elevation angle, angle spacing (degrees), and number of elevation angles&lt;br /&gt;
&lt;br /&gt;
Output directory and file name&lt;br /&gt;
&lt;br /&gt;
* output_dir: files will be written to this directory&lt;br /&gt;
* output_format: select the preferred file type (usually CFRADIAL)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Running RadxBeamBlock''' ===&lt;br /&gt;
&lt;br /&gt;
To check all command line options for RadxBeamBlock, including debugging options and file paths, type the following command into a terminal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once your parameter file is complete, use a command similar to the following to run the application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params param_file_name&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=971</id>
		<title>RadxBeamBlock</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=971"/>
		<updated>2022-08-08T16:06:47Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Digital elevation model data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RadxBeamBlock estimates the amount of beam blockage due to terrain near a radar.&lt;br /&gt;
&lt;br /&gt;
=== '''Overview''' ===&lt;br /&gt;
&lt;br /&gt;
Overall, RadxBeamBlock takes elevation data, the radar location, and radar characteristics to estimate how much blockage occurs due to terrain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Prerequesites''' ===&lt;br /&gt;
&lt;br /&gt;
The following items are required:&lt;br /&gt;
&lt;br /&gt;
* Digital elevation model data&lt;br /&gt;
* Radar antenna location&lt;br /&gt;
* Radar characteristics&lt;br /&gt;
* Parameter files for RadxBeamBlock.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Digital elevation model data''' ===&lt;br /&gt;
Note: a NASA Earthdata account is needed to download topography data. Creating an account is free and quick to do, and can be done [https://www.earthdata.nasa.gov/ here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The supported digital elevation models include Shuttle Radar Topography Mission (SRTM) and ESRI grid data (spheroid). SRTM data can be found online '''[https://lpdaac.usgs.gov/products/srtmgl3sv003/#tools here]'''. SRTM data for the entire globe is 22GB and can be a lot to download! If you only need a subsection for your region of interest, use a recursive script to download them. If you only need a few files, this is easy enough to do manually. Remember to unzip your files. Once completed, you should have a directory with .hgt files spanning your region.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
  1 #!/bin/bash&lt;br /&gt;
  2 &lt;br /&gt;
  3 # download SRTM data for Taiwan region&lt;br /&gt;
  4 &lt;br /&gt;
  5 for lat in `seq 19 25`&lt;br /&gt;
  6   do&lt;br /&gt;
  7     for lon in `seq 117 123`&lt;br /&gt;
  8       do&lt;br /&gt;
  9       # get files&lt;br /&gt;
 10       wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip&lt;br /&gt;
 11   done&lt;br /&gt;
 12 done&lt;br /&gt;
&lt;br /&gt;
=== '''Radar location and characteristics''' ===&lt;br /&gt;
&lt;br /&gt;
The radar location requires the latitude, longitude, and elevation of the antenna (ground level + radar height). In addition, characteristics including the wavelength, beamwidth, gate spacing, azimuths, and elevation angles are required. This information can be found using RadxPrint on a raw radar file or converted radar CfRadial file.&lt;br /&gt;
 RadxPrint -f /path/to/radar/file&lt;br /&gt;
&lt;br /&gt;
=== '''Parameter files''' ===&lt;br /&gt;
&lt;br /&gt;
RadxBeamBlock uses one parameter file. Compared to other Radx applications, the RadxBeamBlock parameter file requires just a few edits in order to run. Most of the parameters that need to be changed relate to the radar characteristics.&lt;br /&gt;
&lt;br /&gt;
==== '''1) Main parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
===== '''Ensure file is up to date''' =====&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -print_params &amp;amp;gt; param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you already have a parameter file and simply want to check for (and add) updated parameters while retaining current parameters, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params orig_param_file_name -print_params &amp;amp;gt; new_param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== '''Important parameters''' =====&lt;br /&gt;
&lt;br /&gt;
Input params&lt;br /&gt;
&lt;br /&gt;
* input_dem_parth: directory containing the elevation data&lt;br /&gt;
* input_data_format: specifies the format of the elevation data (examples provided in the parameter file)&lt;br /&gt;
&lt;br /&gt;
Radar parameters&lt;br /&gt;
&lt;br /&gt;
* radar_location: latitude, longitude, and elevation (ground elevation&lt;br /&gt;
** radar height in km) of the radar antenna&lt;br /&gt;
* radar_wavelength_cm: radar wavelength (cm)&lt;br /&gt;
* horiz_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* vert_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* gates: starting distance, gate spacing (km), and number of gates&lt;br /&gt;
* azimuths: starting azimuth, azimuth spacing (degrees), and number of azimuths&lt;br /&gt;
* elevations: starting elevation angle, angle spacing (degrees), and number of elevation angles&lt;br /&gt;
&lt;br /&gt;
Output directory and file name&lt;br /&gt;
&lt;br /&gt;
* output_dir: files will be written to this directory&lt;br /&gt;
* output_format: select the preferred file type (usually CFRADIAL)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Running RadxBeamBlock''' ===&lt;br /&gt;
&lt;br /&gt;
To check all command line options for RadxBeamBlock, including debugging options and file paths, type the following command into a terminal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once your parameter file is complete, use a command similar to the following to run the application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params param_file_name&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=970</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=970"/>
		<updated>2022-08-05T20:19:47Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Obtain GFS and topographic data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files during intermediate steps, and which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://lpdaac.usgs.gov/products/srtmgl3sv003/#tools SRTM topography data] using wget, curl, or manually downloading the files. A full example of how to download the data using wget is shown in the [http://wiki.lrose.net/index.php/RadxBeamBlock#Digital_elevation_model_data RadxBeamBlock documentation]. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. You will need to choose a grid that contains your area of interest as well as the radar(s) you are using.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
Note: before moving on, check that your Spdb sounding files are populated with data by using the SpdbQuery command below. All parameters except w wind and divergence should be populated.&lt;br /&gt;
 SpdbQuery -url /path/to/spdb/folder -start &amp;quot;YYYY MM DD HH MM SS&amp;quot; -end &amp;quot;YYYY MM DD HH MM SS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data. A tutorial on how to add and view retrieve/calculated variables in HawkEye such as the RATE variables, PID, etc., can be found [http://wiki.lrose.net/index.php/HawkEye#Adding_variables_to_HawkEye_parameter_file here].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=969</id>
		<title>RadxBeamBlock</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=969"/>
		<updated>2022-08-05T20:09:15Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Radar location and characteristics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RadxBeamBlock estimates the amount of beam blockage due to terrain near a radar.&lt;br /&gt;
&lt;br /&gt;
=== '''Overview''' ===&lt;br /&gt;
&lt;br /&gt;
Overall, RadxBeamBlock takes elevation data, the radar location, and radar characteristics to estimate how much blockage occurs due to terrain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Prerequesites''' ===&lt;br /&gt;
&lt;br /&gt;
The following items are required:&lt;br /&gt;
&lt;br /&gt;
* Digital elevation model data&lt;br /&gt;
* Radar antenna location&lt;br /&gt;
* Radar characteristics&lt;br /&gt;
* Parameter files for RadxBeamBlock.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Digital elevation model data''' ===&lt;br /&gt;
Note: a NASA Earthdata account is needed to download SRTM data. Creating an account is free and quick to do, and can be done [https://www.earthdata.nasa.gov/ here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The supported digital elevation models include Shuttle Radar Topography Mission and ESRI grid data (spheroid). SRTM data can be found online '''[https://lpdaac.usgs.gov/products/srtmgl3sv003/#tools here]'''. SRTM data for the entire globe is 22GB and can be a lot to download! If you only need a subsection for your region of interest, use a recursive script to download them. If you only need a few files, this is easy enough to do manually. Remember to unzip your files. Once completed, you should have a directory with .hgt files spanning your region of interest.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
  1 #!/bin/bash&lt;br /&gt;
  2 &lt;br /&gt;
  3 # download SRTM data for Taiwan region&lt;br /&gt;
  4 &lt;br /&gt;
  5 for lat in `seq 19 25`&lt;br /&gt;
  6   do&lt;br /&gt;
  7     for lon in `seq 117 123`&lt;br /&gt;
  8       do&lt;br /&gt;
  9       # get files&lt;br /&gt;
 10       wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip&lt;br /&gt;
 11   done&lt;br /&gt;
 12 done&lt;br /&gt;
&lt;br /&gt;
=== '''Radar location and characteristics''' ===&lt;br /&gt;
&lt;br /&gt;
The radar location requires the latitude, longitude, and elevation of the antenna (ground level + radar height). In addition, characteristics including the wavelength, beamwidth, gate spacing, azimuths, and elevation angles are required. This information can be found using RadxPrint on a raw radar file or converted radar CfRadial file.&lt;br /&gt;
 RadxPrint -f /path/to/radar/file&lt;br /&gt;
&lt;br /&gt;
=== '''Parameter files''' ===&lt;br /&gt;
&lt;br /&gt;
RadxBeamBlock uses one parameter file. Compared to other Radx applications, the RadxBeamBlock parameter file requires just a few edits in order to run. Most of the parameters that need to be changed relate to the radar characteristics.&lt;br /&gt;
&lt;br /&gt;
==== '''1) Main parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
===== '''Ensure file is up to date''' =====&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -print_params &amp;amp;gt; param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you already have a parameter file and simply want to check for (and add) updated parameters while retaining current parameters, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params orig_param_file_name -print_params &amp;amp;gt; new_param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== '''Important parameters''' =====&lt;br /&gt;
&lt;br /&gt;
Input params&lt;br /&gt;
&lt;br /&gt;
* input_dem_parth: directory containing the elevation data&lt;br /&gt;
* input_data_format: specifies the format of the elevation data (examples provided in the parameter file)&lt;br /&gt;
&lt;br /&gt;
Radar parameters&lt;br /&gt;
&lt;br /&gt;
* radar_location: latitude, longitude, and elevation (ground elevation&lt;br /&gt;
** radar height in km) of the radar antenna&lt;br /&gt;
* radar_wavelength_cm: radar wavelength (cm)&lt;br /&gt;
* horiz_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* vert_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* gates: starting distance, gate spacing (km), and number of gates&lt;br /&gt;
* azimuths: starting azimuth, azimuth spacing (degrees), and number of azimuths&lt;br /&gt;
* elevations: starting elevation angle, angle spacing (degrees), and number of elevation angles&lt;br /&gt;
&lt;br /&gt;
Output directory and file name&lt;br /&gt;
&lt;br /&gt;
* output_dir: files will be written to this directory&lt;br /&gt;
* output_format: select the preferred file type (usually CFRADIAL)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Running RadxBeamBlock''' ===&lt;br /&gt;
&lt;br /&gt;
To check all command line options for RadxBeamBlock, including debugging options and file paths, type the following command into a terminal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once your parameter file is complete, use a command similar to the following to run the application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params param_file_name&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=968</id>
		<title>RadxBeamBlock</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=RadxBeamBlock&amp;diff=968"/>
		<updated>2022-08-05T19:59:16Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Digital elevation model data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RadxBeamBlock estimates the amount of beam blockage due to terrain near a radar.&lt;br /&gt;
&lt;br /&gt;
=== '''Overview''' ===&lt;br /&gt;
&lt;br /&gt;
Overall, RadxBeamBlock takes elevation data, the radar location, and radar characteristics to estimate how much blockage occurs due to terrain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Prerequesites''' ===&lt;br /&gt;
&lt;br /&gt;
The following items are required:&lt;br /&gt;
&lt;br /&gt;
* Digital elevation model data&lt;br /&gt;
* Radar antenna location&lt;br /&gt;
* Radar characteristics&lt;br /&gt;
* Parameter files for RadxBeamBlock.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Digital elevation model data''' ===&lt;br /&gt;
Note: a NASA Earthdata account is needed to download SRTM data. Creating an account is free and quick to do, and can be done [https://www.earthdata.nasa.gov/ here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The supported digital elevation models include Shuttle Radar Topography Mission and ESRI grid data (spheroid). SRTM data can be found online '''[https://lpdaac.usgs.gov/products/srtmgl3sv003/#tools here]'''. SRTM data for the entire globe is 22GB and can be a lot to download! If you only need a subsection for your region of interest, use a recursive script to download them. If you only need a few files, this is easy enough to do manually. Remember to unzip your files. Once completed, you should have a directory with .hgt files spanning your region of interest.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
  1 #!/bin/bash&lt;br /&gt;
  2 &lt;br /&gt;
  3 # download SRTM data for Taiwan region&lt;br /&gt;
  4 &lt;br /&gt;
  5 for lat in `seq 19 25`&lt;br /&gt;
  6   do&lt;br /&gt;
  7     for lon in `seq 117 123`&lt;br /&gt;
  8       do&lt;br /&gt;
  9       # get files&lt;br /&gt;
 10       wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip&lt;br /&gt;
 11   done&lt;br /&gt;
 12 done&lt;br /&gt;
&lt;br /&gt;
=== '''Radar location and characteristics''' ===&lt;br /&gt;
&lt;br /&gt;
The radar location requires the latitude, longitude, and elevation of the antenna (ground level + radar height). In addition, characteristics including the wavelength, beamwidth, gate spacing, azimuths, and elevation angles are required.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Parameter files''' ===&lt;br /&gt;
&lt;br /&gt;
RadxBeamBlock uses one parameter file. Compared to other Radx applications, the RadxBeamBlock parameter file requires just a few edits in order to run. Most of the parameters that need to be changed relate to the radar characteristics.&lt;br /&gt;
&lt;br /&gt;
==== '''1) Main parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
===== '''Ensure file is up to date''' =====&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -print_params &amp;amp;gt; param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you already have a parameter file and simply want to check for (and add) updated parameters while retaining current parameters, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params orig_param_file_name -print_params &amp;amp;gt; new_param_file_name&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== '''Important parameters''' =====&lt;br /&gt;
&lt;br /&gt;
Input params&lt;br /&gt;
&lt;br /&gt;
* input_dem_parth: directory containing the elevation data&lt;br /&gt;
* input_data_format: specifies the format of the elevation data (examples provided in the parameter file)&lt;br /&gt;
&lt;br /&gt;
Radar parameters&lt;br /&gt;
&lt;br /&gt;
* radar_location: latitude, longitude, and elevation (ground elevation&lt;br /&gt;
** radar height in km) of the radar antenna&lt;br /&gt;
* radar_wavelength_cm: radar wavelength (cm)&lt;br /&gt;
* horiz_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* vert_beam_width_deg: horizontal beamwidth (degrees)&lt;br /&gt;
* gates: starting distance, gate spacing (km), and number of gates&lt;br /&gt;
* azimuths: starting azimuth, azimuth spacing (degrees), and number of azimuths&lt;br /&gt;
* elevations: starting elevation angle, angle spacing (degrees), and number of elevation angles&lt;br /&gt;
&lt;br /&gt;
Output directory and file name&lt;br /&gt;
&lt;br /&gt;
* output_dir: files will be written to this directory&lt;br /&gt;
* output_format: select the preferred file type (usually CFRADIAL)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Running RadxBeamBlock''' ===&lt;br /&gt;
&lt;br /&gt;
To check all command line options for RadxBeamBlock, including debugging options and file paths, type the following command into a terminal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -h&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once your parameter file is complete, use a command similar to the following to run the application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/lrose/install/bin/RadxBeamBlock -params param_file_name&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=959</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=959"/>
		<updated>2022-07-08T20:31:10Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Colors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colormaps can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
&lt;br /&gt;
Example: Add PID and RATE_ZH variables from QPE file.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; View metadata of variable in CfRadial .nc file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Add variables of interest to HawkEye parameter file&lt;br /&gt;
&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
&lt;br /&gt;
Rerun HawkEdit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user. A list of colormaps can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here].&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=958</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=958"/>
		<updated>2022-07-08T20:30:59Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Adding variables to HawkEye parameter file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colormaps can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
&lt;br /&gt;
Example: Add PID and RATE_ZH variables from QPE file.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; View metadata of variable in CfRadial .nc file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Add variables of interest to HawkEye parameter file&lt;br /&gt;
&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
&lt;br /&gt;
Rerun HawkEdit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here].&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=957</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=957"/>
		<updated>2022-07-08T20:30:22Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Adding variables to HawkEye parameter file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
&lt;br /&gt;
Example: Add PID and RATE_ZH variables from QPE file.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; View metadata of variable in CfRadial .nc file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Add variables of interest to HawkEye parameter file&lt;br /&gt;
&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
&lt;br /&gt;
Rerun HawkEdit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here].&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=956</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=956"/>
		<updated>2022-07-08T19:47:29Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Finished! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files during intermediate steps, and which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. You will need to choose a grid that contains your area of interest as well as the radar(s) you are using.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
Note: before moving on, check that your Spdb sounding files are populated with data by using the SpdbQuery command below. All parameters except w wind and divergence should be populated.&lt;br /&gt;
 SpdbQuery -url /path/to/spdb/folder -start &amp;quot;YYYY MM DD HH MM SS&amp;quot; -end &amp;quot;YYYY MM DD HH MM SS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data. A tutorial on how to add and view retrieve/calculated variables in HawkEye such as the RATE variables, PID, etc., can be found [http://wiki.lrose.net/index.php/HawkEye#Adding_variables_to_HawkEye_parameter_file here].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=955</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=955"/>
		<updated>2022-07-08T19:43:07Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Colors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
 Example: Add PID and RATE_ZH variables from QPE file&lt;br /&gt;
 &amp;gt; View metadata of variable in CfRadial .nc file&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
 &amp;gt; Add variables of interest to HawkEye parameter file&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
 &amp;gt; Rerun HawkEdit&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here].&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=954</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=954"/>
		<updated>2022-07-08T19:42:27Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Adding variables to HawkEye parameter file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
 Example: Add PID and RATE_ZH variables from QPE file&lt;br /&gt;
 &amp;gt; View metadata of variable in CfRadial .nc file&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
 &amp;gt; Add variables of interest to HawkEye parameter file&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
 &amp;gt; Rerun HawkEdit&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user.&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=953</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=953"/>
		<updated>2022-07-08T19:41:43Z</updated>

		<summary type="html">&lt;p&gt;Barbero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
 Example: Add PID and RATE_ZH variables from QPE file&lt;br /&gt;
 View metadata of variable in CfRadial .nc file&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
 Add variables of interest to HawkEye parameter file&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
 Rerun HawkEdit&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:HawkEdit_Add_Variables.png|700px|center]]&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user.&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=File:HawkEdit_Add_Variables.png&amp;diff=952</id>
		<title>File:HawkEdit Add Variables.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=File:HawkEdit_Add_Variables.png&amp;diff=952"/>
		<updated>2022-07-08T19:33:51Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Showing example of added variable &amp;quot;PID&amp;quot; in this screenshot.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Showing example of added variable &amp;quot;PID&amp;quot; in this screenshot.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=951</id>
		<title>HawkEye</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=HawkEye&amp;diff=951"/>
		<updated>2022-07-08T19:31:38Z</updated>

		<summary type="html">&lt;p&gt;Barbero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Overview''' ===&lt;br /&gt;
HawkEye is a next generation lidar and radar display tool. It can display real-time and archived CfRadial data either in BSCAN, PPI, or RHI geometry. Editing capability will be added in future releases.&lt;br /&gt;
&lt;br /&gt;
=== '''Running HawkEye''' ===&lt;br /&gt;
&lt;br /&gt;
While relatively new to the research community, HawkEye is a mature viewing tool that has been powering real-time displays for NCAR S-Pol, HIAPER Cloud Radar, and the CSWR Doppler on Wheels for several years. As part of the LROSE project the tool has been updated to work in a research mode with archived CfRadial files. Like the Radx tools, HawkEye can be run in the Virtual Toolbox or compiled as a native application. The look and feel of HawkEye will be slightly different depending on the window environment, but the functionality remains the same across platforms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run HawkEye as a basic viewer it is not necessary to create a parameter file, but like the LROSE tools there is more functionality provided via the parameter options. In its simplest invocation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -f &amp;lt;/path/to/CfRadial_files&amp;gt;&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Depending on how the CfRadial files are stored in the directory, it may be necessary to use &amp;lt;/path/to/CfRadial_files/cfrad*&amp;gt; to point the program directly to the CfRadials. &lt;br /&gt;
&lt;br /&gt;
If the data is organized under the YYYYMMHH date directory in the path, the user can specify specific time span to display:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -archive_url /scr/rain1/rsfdata/projects/pecan/CfRadial/kddc/moments -start_time &amp;quot;2015 06 26 00 00 00&amp;quot; -time_span 7200&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This command would start it up to look at the specified data location, from the specified start time, for a time span of 2 hours (argument taken in units of seconds). In this case, since we are searching by time, you are required to have a day directory in the path, so that actual data would be in the 20150626 subdirectory underneath the 'moments' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check all command line options for HawkEye, type the following command into a bash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -h&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To obtain the default parameter file for more options, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/path/to/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
or  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;/Applications/HawkEye.app/Contents/MacOS/HawkEye -print_params &amp;gt; $PWD/HawkEye.params&amp;lt;/code&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While HawkEye will do its best to display data properly, the parameter file can force the viewer to use POLAR_DISPLAY for PPI and RHI display and BSCAN_DISPLAY for BSCAN mode. The full parameter file description can be found here: '''[http://wiki.lrose.net/index.php/HawkEye_parameter_file HawkEye parameter file]'''&lt;br /&gt;
&lt;br /&gt;
==== '''Adding variables to HawkEye parameter file''' ====&lt;br /&gt;
&lt;br /&gt;
The default parameter file contains the variables &amp;quot;DBZ&amp;quot;, &amp;quot;REF&amp;quot;, &amp;quot;VEL&amp;quot;, &amp;quot;WIDTH&amp;quot;, &amp;quot;SW&amp;quot;, &amp;quot;ZDR&amp;quot;, &amp;quot;PHIDP&amp;quot;, &amp;quot;RHOHV&amp;quot;. If you would like to view other retrieved/calculated variables (e.g., KDP, PID, RATE_ZH) in HawkEye, add another struct with the variable of interest in the HawkEye parameter file in lines 345-417. Make sure the raw_name matches the variable in the file which you are viewing and the units are correct. However, the label and color_map are up to the user's discretion. A list of colors can be found [https://github.com/NCAR/lrose-displays/tree/master/color_scales here]. You can check the variable name, units, longname etc., using the ncdump command.&lt;br /&gt;
 Example: Add PID and RATE_ZH variables from QPE file&lt;br /&gt;
 View metadata of variable in CfRadial .nc file&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;ncdump -c ./cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc &amp;lt;/code&amp;gt;&lt;br /&gt;
 Add variables of interest to HawkEye parameter file&lt;br /&gt;
   ...&lt;br /&gt;
 417   ,&lt;br /&gt;
 418   {&lt;br /&gt;
 419     label = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 420     raw_name = &amp;quot;PID&amp;quot;,&lt;br /&gt;
 421     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 422     units = &amp;quot;unitless&amp;quot;,&lt;br /&gt;
 423     color_map = &amp;quot;pid.colors&amp;quot;,&lt;br /&gt;
 424     shortcut = &amp;quot;p&amp;quot;&lt;br /&gt;
 425   }&lt;br /&gt;
 426   ,&lt;br /&gt;
 427   {&lt;br /&gt;
 428     label = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 429     raw_name = &amp;quot;RATE_ZH&amp;quot;,&lt;br /&gt;
 430     filtered_name = &amp;quot;&amp;quot;,&lt;br /&gt;
 431     units = &amp;quot;mm/h&amp;quot;,&lt;br /&gt;
 432     color_map = &amp;quot;prate.colors&amp;quot;,&lt;br /&gt;
 433     shortcut = &amp;quot;r&amp;quot;&lt;br /&gt;
 434   }&lt;br /&gt;
 435 };&lt;br /&gt;
 Rerun HawkEdit&lt;br /&gt;
&amp;lt;code lang=&amp;quot;bash&amp;quot;&amp;gt;HawkEye -params ./HawkEye.qpe.params -f cfrad.20170602_001311.000_to_20170602_001311.000_RCWF_SUR.nc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Colors''' ====&lt;br /&gt;
&lt;br /&gt;
HawkEye supports many different color scales for different fields that can be specified via external files. Default color palettes are applied to variable names with commonly used meanings (ie. ZDR), but can be overridden by the user.&lt;br /&gt;
&lt;br /&gt;
While most of the GUI viewing options are intuitive, additional documentation on all the details of the HawkEye GUI is under development.&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=950</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=950"/>
		<updated>2022-07-08T18:39:43Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Sounding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files during intermediate steps, and which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. You will need to choose a grid that contains your area of interest as well as the radar(s) you are using.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
Note: before moving on, check that your Spdb sounding files are populated with data by using the SpdbQuery command below. All parameters except w wind and divergence should be populated.&lt;br /&gt;
 SpdbQuery -url /path/to/spdb/folder -start &amp;quot;YYYY MM DD HH MM SS&amp;quot; -end &amp;quot;YYYY MM DD HH MM SS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=949</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=949"/>
		<updated>2022-07-08T17:51:17Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Full elle tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files during intermediate steps, and which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
Note: before moving on, check that your Spdb sounding files are populated with data by using the SpdbQuery command below. All parameters except w wind and divergence should be populated.&lt;br /&gt;
 SpdbQuery -url /path/to/spdb/folder -start &amp;quot;YYYY MM DD HH MM SS&amp;quot; -end &amp;quot;YYYY MM DD HH MM SS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=948</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=948"/>
		<updated>2022-07-08T17:47:33Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Sounding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
Note: before moving on, check that your Spdb sounding files are populated with data by using the SpdbQuery command below. All parameters except w wind and divergence should be populated.&lt;br /&gt;
 SpdbQuery -url /path/to/spdb/folder -start &amp;quot;YYYY MM DD HH MM SS&amp;quot; -end &amp;quot;YYYY MM DD HH MM SS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=947</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=947"/>
		<updated>2022-07-08T17:36:27Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxConvert */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=946</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=946"/>
		<updated>2022-07-08T17:29:49Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Sounding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, the grid will span from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=945</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=945"/>
		<updated>2022-07-08T17:29:11Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Sounding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 minx: initial longitude [-180 to 180]&lt;br /&gt;
 miny: initial latitude [-90 to 90]&lt;br /&gt;
 nx: # of longitude points (# of dx)&lt;br /&gt;
 ny: # of latitude points (# of dy)&lt;br /&gt;
 dx: preferred longitude grid spacing&lt;br /&gt;
 dy: preferred latitude grid spacing&lt;br /&gt;
Example: if minx=118, miny=20, nx=50, ny=50, dx=0.1, dy=0.1, The box will range from 118º to 123º E and 20º to 25º N.&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=944</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=944"/>
		<updated>2022-07-08T17:04:55Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 943 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=943</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=943"/>
		<updated>2022-07-08T17:04:38Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxBeamblock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=942</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=942"/>
		<updated>2022-07-08T17:03:58Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxBeamblock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=941</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=941"/>
		<updated>2022-07-08T17:01:51Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 940 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=940</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=940"/>
		<updated>2022-07-08T17:01:35Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 939 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=939</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=939"/>
		<updated>2022-07-08T17:01:19Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 938 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=938</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=938"/>
		<updated>2022-07-08T17:01:03Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 937 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=937</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=937"/>
		<updated>2022-07-08T17:00:43Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 936 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=936</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=936"/>
		<updated>2022-07-08T16:58:38Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxBeamblock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=935</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=935"/>
		<updated>2022-07-08T16:53:54Z</updated>

		<summary type="html">&lt;p&gt;Barbero: Undo revision 934 by Barbero (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=934</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=934"/>
		<updated>2022-07-08T16:53:22Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxBeamblock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&amp;lt;/li&amp;gt;&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=933</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=933"/>
		<updated>2022-07-08T16:52:16Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxBeamblock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the latitude, longitude, and altitude (terrain + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 Note: for steps 4 and 5, you can use RadxPrint on the raw or converted .nc radar file to view this information.&lt;br /&gt;
 RadxPrint -printVars -f /path/to/radar/file&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=932</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=932"/>
		<updated>2022-07-07T23:05:56Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* RadxConvert */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run the command in a for loop or simply run each day one at a time replacing $days with each date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the lat, lon, and altitude (terrin + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=931</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=931"/>
		<updated>2022-07-07T23:02:19Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Running Radx Applications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the lat, lon, and altitude (terrin + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=930</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=930"/>
		<updated>2022-07-07T23:01:16Z</updated>

		<summary type="html">&lt;p&gt;Barbero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of this [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 export days=“date1 date2 date3”&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the lat, lon, and altitude (terrin + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=929</id>
		<title>Elle full</title>
		<link rel="alternate" type="text/html" href="http://wiki.lrose.net/index.php?title=Elle_full&amp;diff=929"/>
		<updated>2022-07-07T22:58:31Z</updated>

		<summary type="html">&lt;p&gt;Barbero: /* Full elle tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== '''Full elle tutorial''' ===&lt;br /&gt;
&lt;br /&gt;
This workflow will convert raw radar files to the CfRadial format and estimate the surface rain rate, emphasizing some parameters that need to be defined for each application. This workflow assumes that soundings need to be estimated from GFS analysis data. Note, the current parameter files are currently optimized to work on Unix systems. It is also helpful to have the programs [https://formulae.brew.sh/formula/ncview ncview] and [https://formulae.brew.sh/formula/nco nco] to debug by plotting and dumping the contents of .nc files, which can be downloaded using [https://brew.sh/ Homebrew]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information, refer to the following pages on how LROSE [http://wiki.lrose.net/index.php/KDP_estimation calculates KDP], estimates the [http://wiki.lrose.net/index.php/RadxPid_fuzzylogic dominant PID category], calculates [http://wiki.lrose.net/index.php/RadxRate_equations rain rates], and estimates the [http://wiki.lrose.net/index.php/RadxQpe_expanded surface precipitation rate].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== '''Download parameter files''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract contents into the desired directory&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 tar -zxvf elle_full.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user can create their own parameter files for each function as shown in this [http://wiki.lrose.net/index.php/RadxKdp#Ensure_file_is_up_to_date example], but then directories in each parameter file will need to be set manually. The environment files included in the elle_full.tar.gz file will set the directory structure with modifications to only two lines of code. These lines will have to be rerun if opening a new terminal workspace.&lt;br /&gt;
&lt;br /&gt;
==== '''Set up environment variables''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Either place the raw radar data in a subdirectory of elle_full called &amp;quot;raw&amp;quot; or make a note of the path to the radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_dirs, edit the directories (note: there is purposely no slash at the beginning of PROJ). Together, HOMED/PROJ should direct you to the elle_full directory. RAW is the full path to the raw radar data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export HOMED=&amp;quot;/path/to/home/directory&amp;quot;&lt;br /&gt;
 export PROJ=“short/path/to/elle_full”&lt;br /&gt;
 export RAW=&amp;quot;/path/to/elle_full/raw&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories in other parameter files and reduce the number of edits that need to be made.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 export RADAR_NAME=&amp;quot;RADAR&amp;quot;&lt;br /&gt;
 export radar_name=&amp;quot;radar&amp;quot;&lt;br /&gt;
 export days=&amp;quot;date1 date2 date3&amp;quot;&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on [http://wiki.lrose.net/index.php/RadxRate_equations this page] and on page 4 of [https://ams.confex.com/ams/37RADAR/webprogram/Paper275705.html this AMS manuscript]. The default Z-R relationship included in env_vars is from the [https://archive.eol.ucar.edu/projects/dynamo/spol/parameters/rain_rate/rain_rates.html Mismo dataset].&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== '''Obtain GFS and topographic data''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the GFS analysis from [https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs NCEI]. Under 'Data on NCEI Servers,' select the HAS access option for the 0.5º domain of GFS Analysis (GFS-ANL). Since the tutorial includes two different files, select all UTC cycles and enter the start and end dates. Select the batch option and enter your email. Download the data when your order is ready and put it in a folder named gfs within the elle_full directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the topography data using the following command. ''Note: the folder is approximately 22 GB.'' If you know which region of the globe you need, you can poke around the website to determine which subfolder is necessary for your dataset. Unzip the contents and make note of the resulting directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 wget -r https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ *link has moved*&lt;br /&gt;
&lt;br /&gt;
=== '''Running Radx Applications''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set the variables in the terminal and set the dates in the format YYYYMMDD. Print out the directory structure to make sure it's pointing to the right directory.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 source env_dirs&lt;br /&gt;
 source env_vars&lt;br /&gt;
 export days=“date1 date2 date3”&lt;br /&gt;
 export daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
 echo $HOMED/$PROJ&lt;br /&gt;
&lt;br /&gt;
==== '''RadxConvert''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the raw file to a CfRadial file. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*&lt;br /&gt;
&lt;br /&gt;
==== '''RadxBeamblock''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;quot;RCWF&amp;quot; in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, modify line 188-191 of RadxBeamBlock.RCWF.new to indicate the lat, lon, and altitude (terrin + antenna height) of the radar.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the radar wavelength (cm), horizontal (degrees), and vertical (degrees) beamwidths in lines 215, 225, and 235 of RadxBeamBlock.RCWF.new, respectively.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params folder, insert the range gate, azimuth, and elevation geometries in lines 263-306 of RadxBeamBlock.RCWF.new, respectively. The range gate and azimuth fields should match the observed spacing. If your elevation angles are unevenly spaced, it might be easier to artificially set the spacing to 0.25 or 0.5 degrees. The programs will interpolate the estimated blockage to the actual elevation angle later. The max elevation angle will depend on the radar location. Near Houston, TX, for example, only 2-3 degrees is probably sufficient, but a 10-20 degrees might be necessary near Taiwan.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;7&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxBeamBlock for the RCWF radar location&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*&lt;br /&gt;
&lt;br /&gt;
==== '''Sounding''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the projection parameters in lines 764-770. PROJ_LATLON is a fine choice and does not require the other parameters to be set.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Grib2toMdv.gfs.taiwan, insert the desired output grid in lines 792-798. minx (lon) and miny (lat) set the lower left corner of the box around the radar, dx and dy indicate the spacing in degrees, and nx and ny indicate the number of points.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Mdv2SoundingSpdb.gfs, insert the radar lat, lon, and elevation in lines 286-289.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Convert the GFS Grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2&lt;br /&gt;
 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv&lt;br /&gt;
&lt;br /&gt;
==== '''RadxRate''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that you have the proper [http://wiki.lrose.net/index.php/RadxPid#PID_thresholds_file pid_thresholds file] for your radar. Make any necessary modifications.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure the filtering/processing parameters in [http://wiki.lrose.net/index.php/RadxKdp RadxKdp], [http://wiki.lrose.net/index.php/RadxPid RadxPid], and [http://wiki.lrose.net/index.php/RadxRate RadxRate] are appropriate for your needs.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxRate to calculate Kdp, the PID, and various rain rates. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''RadxQpe''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, set your preferred output azimuthal resolution in line 32.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run RadxQpe to estimate the near-surface rainfall using the hybrid method. If you have data from more than one day, run a for loop or run each day one at a time replacing $days with the date (YYYYMMDD).&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc&lt;br /&gt;
&lt;br /&gt;
==== '''Finished!''' ====&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 3 new directories: convert, rate, and qpe. You can look through the the files in those directories to inspect the new files and check the quality of the data.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Run programs from a sample script''' ===&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If you'd like to run these applications through a script or on a cluster, you can use the script run_radx.sh (or make your own!). Follow all of the steps above, except for last item in each subsection where you run the Radx applications. Make sure you source the env_dirs and env_vars files.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit directories in run_radx.sh script (lines 3 and 12)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 cd /PATH/TO/elle_full&lt;br /&gt;
 rdir=&amp;quot;/PATH/TO/lrose/bin&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 days=&amp;quot;date1 date2 date3...&amp;quot;&lt;br /&gt;
 daysbb=&amp;quot;date1&amp;quot;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make the file executable, if it isn't already&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 chmod u+x run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;5&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run shell script&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
 ./run_radx.sh&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. &amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Barbero</name></author>
		
	</entry>
</feed>