For this tutorial, it is recommended that you use the script color.gs and cbar.gs. Alternatively to color.gs you could use the script colorset.gs to approximate the NWS RADAR color scale.
Using GrADS to plot radar data is not much different than using GrADS to plot model data, and is essentially compromised of three main steps.
- Get RADAR data
- Save data into a netcdf file
- Plot the data using Grads
Step 1: Get the Data.
You can download archived RADAR data from the NCDC at this website.
Accessing the data is very simple, and only requires you to pick a RADAR site and time. Enter your e-mail address into the box provided and a data request number will be sent to you shortly after.
You can additionally download data in real time via FTP from this website. I have had success using a batch version of NOAA's weather and climate tool kit data exporter. More information on this can be found here.
However assuming that you are downloading archived RADAR data, you can simply use the online version of the weather and climate toolkit here. Once you have this program open on your computer, it is time to move on to step 2.
Step 2: Convert the Data to Netcdf Format.
Once you have both the toolkit and the data request number, you can now access the data. Accessing the data is simple, all you have to do is choose the "load data" option to bring up the "data selector" window. Once this window is open, choose the tab NCDC HAS Order and enter your confirmation number into the space provided.
|NCDC Weather and Climate Toolkit|
Once you have your list of files, choose the "export" option. This will bring you to another list of options to go through. Choose "gridded netcdf" as your file type, after that the options are pretty much up to you. I generally just click through keeping the default options.
Once the program is finished processing the data, you will see a file in your folder that looks something like this:KVWX_NCR_20100510_162700.nc. Basically, the name is made up of the RADAR call sign, the variable, the date and the time. This file is a self describing netcdf file, and can be read into GrADS. Which brings us to the final step.
Step 3: Plot the data in GrADS
First open your file using the 'sdfopen' command. Once the file is open, you can follow the commands listed below to approximate the standard RADAR color scheme used in operation by NOAA using color.gs.
'set gxout grfill'
'set mpdset hires'
'color 5 75 5 -kind dodgerblue->blue->lime->green->darkgreen->yellow->goldenrod->orange->firebrick->red->darkred->fuchsia->indigo
...or alternatively, using colorset.gs:
'set gxout grfill'
'set mpdset hires' 'colorset Rad1'
Another option for a RADAR color scheme that approximates the standard NWS scheme (available from COLA. Full example here) is listed below as a function. It is called as such:
'set ccols 20 21 22 23 24 25 26 27 28 29 30 31 32 33'
'set clevs 5 10 15 20 25 30 35 40 45 50 55 60 65 '
'set rgb 99 140 140 116'
'set rgb 20 180 200 255'
'set rgb 21 95 135 255'
'set rgb 22 20 70 230'
'set rgb 23 110 245 75'
'set rgb 24 0 195 0'
'set rgb 25 0 115 0'
'set rgb 26 255 255 0'
'set rgb 27 255 180 48'
'set rgb 28 250 125 0'
'set rgb 29 230 45 0'
'set rgb 30 175 0 0'
'set rgb 31 105 0 0'
'set rgb 32 250 0 200'
'set rgb 33 155 0 250'
No matter which color scale you use, your resultant image should look similar to the one below.
|Example of RADAR data from GrADS|
Download this script