Difference between revisions of "Elle full"
From Lrose Wiki
(45 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | == Full elle tutorial == | + | === '''Full elle tutorial''' === |
− | 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. | + | 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]. |
− | === Download parameter files === | + | |
+ | 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]. | ||
+ | |||
+ | |||
+ | ==== '''Download parameter files''' ==== | ||
<ol start="1" style="list-style-type: decimal;"> | <ol start="1" style="list-style-type: decimal;"> | ||
− | <li>Download the [https://drive.google.com/file/d/ | + | <li>Download the [https://drive.google.com/file/d/1lHZCGtI-0E20xlVvEJjPd7glO7DHCVoJ/view?usp=sharing elle_full.tar.gz] file</li></ol> |
<ol start="2" style="list-style-type: decimal;"> | <ol start="2" style="list-style-type: decimal;"> | ||
<li>Extract contents into the desired directory</li></ol> | <li>Extract contents into the desired directory</li></ol> | ||
tar -zxvf elle_full.tar.gz | tar -zxvf elle_full.tar.gz | ||
− | |||
− | |||
− | 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. | + | 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. |
− | === Set up environment variables === | + | ==== '''Set up environment variables''' ==== |
<ol start="1" style="list-style-type: decimal;"> | <ol start="1" style="list-style-type: decimal;"> | ||
<li>Either place the raw radar data in a subdirectory of elle_full called "raw" or make a note of the path to the radar data.</li></ol> | <li>Either place the raw radar data in a subdirectory of elle_full called "raw" or make a note of the path to the radar data.</li></ol> | ||
Line 24: | Line 26: | ||
export RAW="/path/to/elle_full/raw" | export RAW="/path/to/elle_full/raw" | ||
<ol start="3" style="list-style-type: decimal;"> | <ol start="3" style="list-style-type: decimal;"> | ||
− | <li>In /elle_full/env_vars, edit radar name (e.g., KHGX for Houston). This will set future directories</li></ol> | + | <li>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.</li></ol> |
export RADAR_NAME="RADAR" | export RADAR_NAME="RADAR" | ||
export radar_name="radar" | export radar_name="radar" | ||
+ | export days="date1 date2 date3" | ||
+ | export daysbb="date1" | ||
<ol start="4" style="list-style-type: decimal;"> | <ol start="4" style="list-style-type: decimal;"> | ||
− | <li>In /elle_full/env_vars, set the coefficients for the rain rate equations. | + | <li>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].</li></ol> |
− | === Obtain GFS and topographic data === | + | ==== '''Obtain GFS and topographic data''' ==== |
<ol start="1" style="list-style-type: decimal;"> | <ol start="1" style="list-style-type: decimal;"> | ||
− | <li>Download the GFS analysis from | + | <li>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.</li></ol> |
<ol start="2" style="list-style-type: decimal;"> | <ol start="2" style="list-style-type: decimal;"> | ||
− | <li>Download the topography data using the | + | <li>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.</li></ol> |
− | wget - | + | wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip |
− | |||
− | |||
− | + | === '''Running Radx Applications''' === | |
− | <ol start=" | + | <ol start="1" style="list-style-type: decimal;"> |
− | <li>Set the variables in the terminal and set the | + | <li>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.</li></ol> |
source env_dirs | source env_dirs | ||
source env_vars | source env_vars | ||
− | |||
− | |||
echo $HOMED/$PROJ | echo $HOMED/$PROJ | ||
− | <ol start=" | + | ==== '''RadxConvert''' ==== |
− | <li>Convert the raw file to a CfRadial file</li></ol> | + | <ol start="1" style="list-style-type: decimal;"> |
+ | <li>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).</li></ol> | ||
/path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw* | /path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw* | ||
− | <ol start=" | + | |
+ | ==== '''RadxBeamblock''' ==== | ||
+ | <ol start="1" style="list-style-type: decimal;"> | ||
+ | <li>Replace "RCWF" in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).</li></ol> | ||
+ | <ol start="2" style="list-style-type: decimal;"> | ||
+ | <li>In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.</li></ol> | ||
+ | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.</li></ol> | ||
+ | <ol start="4" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | <ol start="5" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | <ol start="6" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information. | ||
+ | RadxPrint -printVars -f /path/to/radar/file | ||
+ | <ol start="7" style="list-style-type: decimal;"> | ||
<li>Run RadxBeamBlock for the RCWF radar location</li></ol> | <li>Run RadxBeamBlock for the RCWF radar location</li></ol> | ||
/path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.* | /path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.* | ||
− | <ol start=" | + | |
− | <li>Convert the GFS | + | ==== '''Sounding''' ==== |
+ | <ol start="1" style="list-style-type: decimal;"> | ||
+ | <li>In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.</li></ol> | ||
+ | <ol start="2" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | minx: initial longitude [-180 to 180] | ||
+ | miny: initial latitude [-90 to 90] | ||
+ | nx: # of longitude points (# of dx) | ||
+ | ny: # of latitude points (# of dy) | ||
+ | dx: preferred longitude grid spacing | ||
+ | dy: preferred latitude grid spacing | ||
+ | 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. | ||
+ | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.</li></ol> | ||
+ | <ol start="4" style="list-style-type: decimal;"> | ||
+ | <li>Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)</li></ol> | ||
/path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2 | /path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2 | ||
/path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv | /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv | ||
− | <ol start=" | + | 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. |
− | <li>Run RadxRate to calculate Kdp, the PID, and various rain rates</li></ol> | + | SpdbQuery -url /path/to/spdb/folder -start "YYYY MM DD HH MM SS" -end "YYYY MM DD HH MM SS" |
+ | |||
+ | ==== '''RadxRate''' ==== | ||
+ | <ol start="1" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | <ol start="2" style="list-style-type: decimal;"> | ||
+ | <li>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.</li></ol> | ||
+ | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.</li></ol> | ||
+ | <ol start="4" style="list-style-type: decimal;"> | ||
+ | <li>In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.</li></ol> | ||
+ | <ol start="5" style="list-style-type: decimal;"> | ||
+ | <li>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).</li></ol> | ||
/path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc | /path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc | ||
− | <ol start=" | + | |
− | <li>Run RadxQpe to estimate the near-surface rainfall using the hybrid method</li></ol> | + | ==== '''RadxQpe''' ==== |
+ | <ol start="1" style="list-style-type: decimal;"> | ||
+ | <li>In RadxQpe.new, set your preferred output azimuthal resolution in line 32.</li></ol> | ||
+ | <ol start="2" style="list-style-type: decimal;"> | ||
+ | <li>In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.</li></ol> | ||
+ | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>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).</li></ol> | ||
/path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc | /path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc | ||
− | |||
− | |||
− | === Run programs from a sample script === | + | ==== '''Finished!''' ==== |
+ | <ol start="1" style="list-style-type: decimal;"> | ||
+ | <li>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].</li></ol> | ||
+ | |||
+ | === '''Run programs from a sample script''' === | ||
<ol start="1" style="list-style-type: decimal;"> | <ol start="1" style="list-style-type: decimal;"> | ||
− | <li>Follow steps | + | <li>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.</li></ol> |
<ol start="2" style="list-style-type: decimal;"> | <ol start="2" style="list-style-type: decimal;"> | ||
<li>Edit directories in run_radx.sh script (lines 3 and 12)</li></ol> | <li>Edit directories in run_radx.sh script (lines 3 and 12)</li></ol> | ||
− | cd /PATH/TO/ | + | cd /PATH/TO/elle_full |
rdir="/PATH/TO/lrose/bin" | rdir="/PATH/TO/lrose/bin" | ||
<ol start="3" style="list-style-type: decimal;"> | <ol start="3" style="list-style-type: decimal;"> | ||
+ | <li>Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)</li></ol> | ||
+ | days="date1 date2 date3..." | ||
+ | daysbb="date1" | ||
+ | <ol start="4" style="list-style-type: decimal;"> | ||
<li>Make the file executable, if it isn't already</li></ol> | <li>Make the file executable, if it isn't already</li></ol> | ||
chmod u+x run_radx.sh | chmod u+x run_radx.sh | ||
− | <ol start=" | + | <ol start="5" style="list-style-type: decimal;"> |
<li>Run shell script</li></ol> | <li>Run shell script</li></ol> | ||
./run_radx.sh | ./run_radx.sh | ||
− | <ol start=" | + | <ol start="6" style="list-style-type: decimal;"> |
− | <li>In the | + | <li>In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe. </li></ol> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 20:19, 5 August 2022
Contents
Full elle tutorial
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 ncview and nco to debug by plotting and dumping the contents of .nc files during intermediate steps, and which can be downloaded using Homebrew.
For more information, refer to the following pages on how LROSE calculates KDP, estimates the dominant PID category, calculates rain rates, and estimates the surface precipitation rate.
Download parameter files
- Download the elle_full.tar.gz file
- Extract contents into the desired directory
tar -zxvf elle_full.tar.gz
The user can create their own parameter files for each function as shown in this 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.
Set up environment variables
- Either place the raw radar data in a subdirectory of elle_full called "raw" or make a note of the path to the radar data.
- 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.
export HOMED="/path/to/home/directory" export PROJ=“short/path/to/elle_full” export RAW="/path/to/elle_full/raw"
- 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.
export RADAR_NAME="RADAR" export radar_name="radar" export days="date1 date2 date3" export daysbb="date1"
- In /elle_full/env_vars, set the coefficients for the rain rate equations. More information regarding the equations available in LROSE are described on this page and on page 4 of this AMS manuscript. The default Z-R relationship included in env_vars is from the Mismo dataset.
Obtain GFS and topographic data
- Download the GFS analysis from 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.
- Download the 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 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.
wget --user=$USERNAME --password=$PASSWORD https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N${lat}E${lon}.SRTMGL1.hgt.zip
Running Radx Applications
- 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.
source env_dirs source env_vars echo $HOMED/$PROJ
RadxConvert
- 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).
/path/to/RadxConvert -params ./params/RadxConvert.* -f $RAW/$RADAR_NAME/$days/*.raw*
RadxBeamblock
- Replace "RCWF" in the filename for RadxBeamBlock.RCWF.new with the name of the radar (e.g., RadxBeamBlock.KHGX.new).
- In the params folder, modify line 53 of RadxBeamBlock.RCWF.new to indicate the directory of the unzipped topographic data.
- In the params folder, modify line 170 of RadxBeamBlock.RCWF.new to indicate the radar name.
- 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.
- 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.
- 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.
Note: for steps 4, 5, and 6, you can use RadxPrint on the raw or converted .nc radar file to view this information. RadxPrint -printVars -f /path/to/radar/file
- Run RadxBeamBlock for the RCWF radar location
/path/to/RadxBeamBlock -params ./params/RadxBeamBlock.$RADAR_NAME.*
Sounding
- In the params directory, rename the Grib2toMdv.gfs.taiwan file to whatever you prefer.
- 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.
- 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.
minx: initial longitude [-180 to 180] miny: initial latitude [-90 to 90] nx: # of longitude points (# of dx) ny: # of latitude points (# of dy) dx: preferred longitude grid spacing dy: preferred latitude grid spacing
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.
- In Mdv2SoundingSpdb.gfs, insert the radar's longitude, latitude, and elevation in lines 286-289.
- Convert the GFS grib2 files to Mdv (Grib2toMdv) and then extract the sounding closest to the RCWF radar (Mdv2SoundingSpdb)
/path/to/Grib2toMdv -params ./params/Grib2toMdv.* -f ./gfs/*.grb2 /path/to/Mdv2SoundingSpdb -params ./params/Mdv2SoundingSpdb.* -f ./gfs/mdv/$i/*.mdv
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.
SpdbQuery -url /path/to/spdb/folder -start "YYYY MM DD HH MM SS" -end "YYYY MM DD HH MM SS"
RadxRate
- Ensure that you have the proper pid_thresholds file for your radar. Make any necessary modifications.
- Make sure the filtering/processing parameters in RadxKdp, RadxPid, and RadxRate are appropriate for your needs.
- In RadxPid.new, insert the accurate path to your pid_thresholds file in line 27.
- In RadxRate.new, make sure the paths to the RadxKdp, RadxPid, and rain rate parameter files are correct in lines 284, 303, and 350.
- 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).
/path/to/RadxRate -params ./params/RadxRate.* -f ./convert/$RADAR_NAME/$days/*.nc
RadxQpe
- In RadxQpe.new, set your preferred output azimuthal resolution in line 32.
- In RadxQpe.new, check that the path to the beamblock file matches the path in line 269.
- 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).
/path/to/RadxQpe -params ./params/RadxQpe.* -f ./rate/$RADAR_NAME/$days/*.nc
Finished!
- 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 here.
Run programs from a sample script
- 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.
- Edit directories in run_radx.sh script (lines 3 and 12)
cd /PATH/TO/elle_full rdir="/PATH/TO/lrose/bin"
- Edit the days (YYYYMMDD) in run_radx.sh script (lines 10-11)
days="date1 date2 date3..." daysbb="date1"
- Make the file executable, if it isn't already
chmod u+x run_radx.sh
- Run shell script
./run_radx.sh
- In the elle_full directory, you should now see 4 new directories: beamblock, convert, rate, and qpe.