WXP version 5
Program Reference

GRBSND

Sections

NAME

grbsnd - Model GRIB data sounding program

SYNOPSIS

grbsnd [parameters...] filename

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default .wxpdef Sets the name of the resource file.
-na=name name grbsnd Specifies the name used in resource file parsing.
-ba batch No Run program in batch mode
-me=level message out2 Specifies level of messages to be displayed
  • file information - mess
  • significant and mandatory sounding data - out1a, out1b
  • standard sounding parameters and indices - out1c, out1d
  • parcel information - out2a, out2b
  • wind parameters - out2c
  • wind level data - out3a, out3b
  • wind/storm layer data - out3c
-fp=filepath file_path current directory Specifies location of database files.  
-dp=datapath data_path current directory Specifies the location (path) of the input raw data files. This may be modified in the name convention file.
-cp=conpath con_path current directory Specifies the location (path) of the input surface converted data files. This may be modified in the name convention file.
-rp=rawpath raw_path current directory Specifies the location of the output raw files generated by the program. These files will not be generated unless the out_file resource is specified and the output is plotted data.
-ip=imagepath image_path current directory Specifies the default location of the output GIF images generated by the program.
-nc=name_conv name_conv name_conv The name convention file specifies how files are named in WXP. This sets which name convention file to use.
-if=in_file in_file grib Specifies the input file name tag. This value can also be specified with the model resource by looking up the naming convention in the model.lup file. The default is grib, but it can be modified to any value in the filename convention file. A full name convention can be specified as well.
-of=out_file[,out...] out_file upa_snd Specifies what type of raw sounding file to create. By default, no output file is generated when the program. This specifies an output file name tag. The default is upa_snd. A full filename can be specified which can contain name convention tags.
-cu=[hour|la] current None This specifies to use current data files. The current filename is based on the name convention. An optional hour can be specified for older data. If la is specified, the program will search back to find the most recent available file.
-ho=hour hour None This resource specifies the exact hour that a data file is valid for. This locks in the start hour for a multi-file sequence.
-mo=model model ngm or first model listed in model.lup file. Specifies the model to use as input data. These are defined in the model.lup file. This file can define how model grids are pieced together. Some samples are:
  • ngm -- Nested Grid Model
  • eta -- ETA model
  • avn -- Aviation model
-ft=time time User prompt
Batch: initial time
This specifies the forecast time to be used in the plots. To create loops, a list of forecast time are specified separated by commas.
-id=identifier
-id=lat,lon
identifier None Specifies the station or location to use in the program. If a station is specified, its location is queried from sao.cty database. A specific latitude and longitude can be specified as lat,lon.
-pd=domain plot_domain None.
Full plot
This specifies the plotting domain. The projection, aspect ratio and the domain size are specified.
-pl=plot_type plot_type User prompt
Batch: skewt
Specifies the type of output thermodynamic plot. By default, this is a Skew T diagram.  The available plot types are:
  • skewt -- Skew T log P diagram
  • ema -- Emagram
  • stuve -- Stuve diagram
  • hodo -- Hodogram
  • none -- for no output plot
-sc=scale_factor plot_scale 1.0 Specifies a scaling factor for all plotted text, symbols, vectors, etc.
-fm=format plot_format None Specifies the output format of the plots.  This is generally used to specify how many decimal places get displayed on the plot and in the output raw files.
-pp=param[,param...] plot_param None Specifies additional plotting parameters. See the plot_param resource for more details.
-dr=drawable[,...] draw all Specifies which part of the plot is to be drawn.
-la=label[,...] label Program defaults Specifies the labels to be plotted around the plot. By default, labels are generated by the program and plotted above and below the plot. This resource overrides these labels.
-fl=font_list font_list modern.fnt Specifies a list of fonts to use in the plots.
-ct=color_table color_table wxp.clr Specifies the color table to use in the plot. This maps color names to actual RGB color values.
-cot=color[:attr] color_text white
black
for inverse plots.
Specifies the text color for labels above and below the plot.
-coth=color[:attr] color_therm blue, blue, green, cyan, yellow This resource is used to specify the color and attributes for the thermodynamic plot. There are 5 possible values:
  1. pressure lines (default blue)
  2. temperature lines (default blue)
  3. potential temperature lines -- dry adiabats (default green)
  4. equivalent potential temperature lines -- moist adiabats (default cyan)
  5. mixing ratio lines (default yellow or brown on inverse color plots)
-cott=color[:attr] color_thrmtxt lblue, lblue, off, off, yellow This resource is used to specify the color and attributes for the labels on the thermodynamic plot. There are 5 possible values:
  1. pressure lines (default blue)
  2. temperature lines (default blue)
  3. potential temperature lines -- dry adiabats (default off - does not plot normally)
  4. equivalent potential temperature lines -- moist adiabats (default off - does not plot normally)
  5. mixing ratio lines (default yellow or brown on inverse color plots)
-cosd=color[:attr] color_sound white, white, yellow This resource is used to specify the color and attributes for the sounding plot. There are 3 possible values:
  1. temperature sounding (default white or black for inverse plots)
  2. dewpoint sounding (default white or black for inverse plots)
  3. parcel sounding (default yellow or brown on inverse color plots)
-cowd=color[:attr] color_wind white
black
for inverse plots.
Specifies the color for wind barbs on thermodynamic plots.
-coho=color[:attr] color_hodo blue, blue, white, cyan, red This resource is used to specify the color and attributes for the hodograph plot. There are 5 possible values:
  1. direction lines (default blue)
  2. speed circles (default blue)
  3. sounding line up to 700 mb (default white or black for inverse plots)
  4. sounding line above 700 mb (default cyan)
  5. marker "+" denoting each level (default red)
-coht=color[:attr] color_hodtxt lblue, lblue, lred This resource is used to specify the color and attributes for the labels on the hodograph plot. There are 3 possible values:
  1. direction labels (default lblue)
  2. speed labels (default lblue)
  3. sounding labels denoting pressure level (default lred)
-de=device[,...] device User prompt
Batch: display
Specifies the output device.
-ti=title title Program name Specifies the window title.
-ic icon Off Specifies whether to open window in iconified mode.
-bg=color background black
white for inverse plots
Specifies the background color of the window.
-ge=geometry geometry 640x480 Specifies the window and paper geometry.
filename[#seq] filename None
User Pompt
Batch: current=la
The name of the upper air converted data file to be plotted. An optional sequence number can be added to designate the time for non-WXP files.

DESCRIPTION

This program plots upper air soundings based on model data. The output is very similar to the uacalplt program and plots a thermodynamic diagram or hodograph. The input to the program is model data stored in GRIB format. The program will display data from many model sources. The model type is specified using the model resource. The specified string is first looked up in the model.lup file which cross-references the file to a file naming convention.

The programs starts off by prompting the user for input grid file name. The list of available grid files is based on the file name convention which is dependent on the model type and the file name tag associated with it. The tag can be specifically changed with the in_file resource. The user may specify the input file either via the command line of through the current resource.

Next, the program prompts the user for the forecast time. This is done through a forecast time menu which is specified in the grbsnd.tim file. Remember, each model type has a specific set of valid forecast times which is defined in the time file. Because of the breadth of models available, not all of the model types will be covered. Even though a menu does not list an appropriate time, it is still accessible be specifically stating the time on either the command line or at the menu prompt.

Next, the user enters a station identifier. If a station identifier is specified, its location is queried from sao.cty database. A specific latitude and longitude can be specified as lat,lon

Once the station is selected, the program retrieves the grids from the model file. These include temperature, relative humidity, U and V wind components and height for all levels from 1000 mb to 100 mb. For most models, this data is available every 50 mb. The data is then interpolated to the station location and a sounding is constructed.

Once the sounding is available, the program prints out sounding information, and standard sounding parameters and indices.

Text Output

The first section is the station location information which is printed at message level out1a:

Date: 24 hour ETA valid  0Z WED  1 OCT 97
Station: KIND
Latitude:   39.73
Longitude: -86.27

The next section is the raw sounding data. This is a merged set of mandatory and significant level data.  Additional computations are performed.  Here is a list of the columns printed (all printed at mess level out1a [see red text] unless specified)

-------------------------------------------------------------------------------
LEV PRES  HGHT  TEMP  DEWP  RH  DD   WETB DIR SPD THETA THE-V THE-W THE-E   W
     mb     m     C     C    %   C     C  deg knt   K     K     K     K    g/kg
-------------------------------------------------------------------------------
  0 1000   109                                                                 
SFC  986   228  15.6  10.1  70  5.5  12.4 316   9 289.9 291.3 286.1 312.2  7.88
  2  950   545  12.9   8.8  76  4.1  10.6 315  19 290.3 291.6 285.9 311.5  7.49
  3  900   997   8.7   7.1  89  1.7   7.8 319  21 290.5 291.7 285.5 310.5  7.02
  4  850  1467   5.1   3.2  88  1.9   4.1 328  21 291.5 292.5 284.5 307.8  5.68
  5  800  1960   3.4  -2.8  64  6.2   0.6 338  20 294.8 295.5 283.9 306.3  3.90
...

The next section displays standard sounding parameters and indices. Most of the information is printed at message level out1d except for thickness, lifted, Showalter, total totals and K indices which is at message level out1c (red text).

Sounding variables and indices
1000-500 mb thick:      5587.03 m
Freezing level:          643.64 mb =  3714.58 m = 12186.81 ft
Wetbulb zero:            789.00 mb =  2072.41 m =  6799.17 ft
Precipitable water:        0.67 inches
Sfc-500 mean rel hum:     41.53 %
Est. max temperature:     18.05 C =   64.49 F
Sfc-Lift cond lev (LCL): 908.75 mb =   915.84 m =  3004.69 ft T: -263.68 C
700-500 lapse rate:        4.61 C/km
ThetaE index:              5.84 C Layer  950.0- 750.0 mb
Conv cond level (CCL):   881.54 mb =  1167.24 m =  3829.49 ft
  Mean mixing ratio:       7.34 g/kg
  Conv temperature:       16.54 C =   61.78 F
Cap Strength:              9.95 C
Lifted Index:             10.17 C Risk: None
Lifted Index @300 mb:     10.90 C
Lifted Index @700 mb:      4.37 C
Showalter Index:          12.28 C Risk: None
Total Totals Index:       31.16 C Risk: None
  Vertical Totals Index:  16.51 C
  Cross Totals Index:     14.65 C
K Index:                   4.27   Risk: None
Sweat Index:             138.97   Risk: None
Energy Index:              2.72   Risk: None

The next section involves a parcel trajectory. The parcel is taken from some initial condition and raised vertically to the top of the sounding. The default parcel uses a 100 mb mean layer above the surface. The parcel type can be changed with the par plot parameter:

par=pres:temp:dew

Temperature and dewpoint are optional. If not specified, the sounding temperature
and dewopint are used.

Type   Pres   Temp  Dew
pressure level   pres  temp   dew
surface level   sfc   temp dew
max temperature   maxt   --   --
pressure layer   layer   thick   --

The data are printed at message level out2b except for CAPE, convective inhibition and cap strength which is printed at level out2a (red text).

Parcel Indices
Parcel: using 100 mb layer
CAPE (B+):                 5.86 J/kg
Max Up Vert Vel:           3.42 m/s
Conv Inhibition (B-):      3.15 J/kg
Cap Strength:             10.12 C
Lift Cond Lev (LCL):     888.66 mb =  1101.03 m =  3612.25 ft
Lev Free Conv (LFC):     863.66 mb =  1335.91 m =  4382.86 ft
Equ Level (EL):          823.66 mb =  1723.24 m =  5653.59 ft
B at Equ Level:            5.60 J/kg
Max Parcel Lev (MPL):    793.66 mb =  2024.75 m =  6642.80 ft

The next section displays significant wind level data. Storm relative winds are computed based on a mean storm motion. This is computed using the mean wind of the lower 6km of the atmosphere. The storm direction is deflected 30 deg clockwise and the speed is 75% of the 6km mean speed. The output is at message level out3a (red text) except for the storm relative winds which is at out3b.

Wind level data
   Storm motion: 349 at  27 knt
----------------------------------------------------------
                   TRUE/GROUND REL   |     STORM REL
 LEV   P    H    DIR SPD   U     V   | DIR SPD   U     V
       mb   m        knt     m/s     |     knt     m/s
----------------------------------------------------------
  0  1000   109                     
  1   986   228  316   9   6.1  -6.4 | 183  20   1.1  20.4 
  2   950   545  315  19  13.2 -13.3 | 211  16   8.2  13.5 
  3   900   997  319  21  14.0 -15.9 | 220  14   9.1  10.9 
  4   850  1467  328  21  11.2 -17.6 | 214  11   6.2   9.1  
 ...

The next section is wind parameters and indices. This is printed at message level out2d except for mean winds, storm direction, helicity and energy-helicity index which are at level out2c (red text)

Wind Parameters
Mean winds (0-6000m):            319.5 at   36.3 knts
Storm direction:                 349.5 at   27.2 knts
Shear (0-3000m)              pos:    2.1 neg:    2.5 tot:    4.6 10-3/s
Storm rel Dir Shear (0-3000m):      87.9 deg
Storm rel helicity (0-3000m) pos:   78.0 neg:   -5.8 tot:   72.2 m^2/s^2
                             ave:   24.1 10^-3 m/s^2 rel:   0.63
Storm rel vorticity (0-3000m) horiz:    5.6 stream:    3.5 10^-3/s
Energy-Hel index:          0.00
Bulk Rich Number:          0.10
Bulk Shear:               56.19 m/s

The next section shows storm layer parameters.  All of this information is printed at message level out3c.

Storm Parameters
-------------------------------------------------------------------------------
Depth  Mean    Inflow|    Shear      |           Helicity           | Vorticity
 AGL  Dir Spd Dir Spd|  Pos  Neg  Tot|  Pos   Neg   Tot   Ave   Rel |  Hor Strm
  m       knt     knt|     10^-3/s   |       m^2/s^2     m/s^2      | 10^-3/s
-------------------------------------------------------------------------------
 500  316  16 201  17| 11.2  0.0 11.2| 42.7   0.0  42.7   85.4  0.88| 11.4 10.0
1000  318  18 209  15|  6.3  0.0  6.3| 45.4   0.0  45.4   45.4  0.76|  7.1  5.4
1500  321  19 210  14|  4.3  0.0  4.3| 45.4  -5.8  39.6   26.4  0.48|  6.0  2.9
2000  325  19 210  12|  3.2  0.8  4.0| 51.9  -5.8  46.1   23.0  0.55|  5.3  2.9
2500  326  21 215  12|  2.6  1.9  4.4| 65.0  -5.8  59.2   23.7  0.61|  5.6  3.4
3000  325  23 224  11|  2.1  2.5  4.6| 78.0  -5.8  72.2   24.1  0.63|  5.6  3.5
4000  324  27 246  12|  1.6  3.3  4.9|107.6  -5.8 101.8   25.4  0.59|  5.7  3.4
5000  322  32 263  15|  1.3  3.7  5.0|121.3  -6.9 114.4   22.9  0.51|  5.6  2.9
6000  319  36 273  19|  1.1  3.5  4.6|121.3 -42.1  79.2   13.2  0.40|  5.3  2.1

Sounding Plots

After the text is displayed, the user is prompted for the output plot type. The selections are:

A thermodynamic diagram is plot showing the temperature and dewpoint plotted versus pressure (or height).  A hodograph is a plot of wind speed versus direction on a polar grid.

Skew-T log-P: The skew-T log-P diagram is an energy conserving diagram in which the temperature and potential temperature lines are nearly perpendicular. The pressure lines are plotted horizontally in blue and are also on an inverse log scale. The concept of Skew T means that the temperature is not plotted vertically but angles off to the right at a 45 degree angle. The temperature lines of the Skew T are in blue. The dry adiabats slope off to the upper left and are plotted in green. The light blue dashed curved lines are saturation adiabats. The yellow dashed lines are lines of constant mixing ratio.

The sounding is displayed in white, with the white line on the left of the plot representing the dewpoint line and the white data line on the right representing the temperature line. When printed, these are bold lines for easier viewing. The wind barbs on the right-hand side of the diagram represent the winds at various elevations, with the top of the diagram representing north. The winds at mandatory levels are plotted at their pressure levels, whereas the winds at height levels are plotted at their standard atmosphere pressure level.

Emagram: An emagram is very close to a skewT except the temperature lines are vertical, not skewed to the right.  It is also an energy conserving diagram.

Stuve: In the Stuve diagram format, the diagram is much the same as the Skew T plot except that the temperature lines are vertical. Pressure lines are spaced so that potential temperature lines are straight. This is not an energy conserving diagram.

Wind plot: The winds at selected levels are plotted on the right side of the diagram. Standard directions are used with up being north and right being to the east.  These are plotted in white but can be changed with the color_wind resource.

Data plot: The geopotential heights are plotted at a 50 mb interval on the left side of the plot. The color of the data can be changed with the color_wind resource. On the right side of the plot, specific parameters and indices are plotted. These values are:

Station information:

WMO WMO number
LAT Latitude of station
LON Longitude of station
EL Elevation of station in meters

Key information:

TP Tropopause level (mb)
MW Max wind level (mb)
FRZ Lowest freezing level (mb) or BG for below ground
WB0 Wet bulb zero (mb) or BG
PW Precipitable water (in)
RH Mean RH surface to 500 mb (%)
MAXT Estimated max temperature (C) using a 150mb layer
TH 1000-500mb thickness (m)
L57 700-500mb lapse rate (C/km)
LCL Lift condensation level (mb) from surface data
LI Lifted index (C) using 100 mean layer above surface
SI Showalter index (C)
TT Total totals index
KI K index
SW Sweat index
EI Energy index

-PARCEL-
This is a parcel trajectory (the yellow line on the sounding) based on 100 mb mean layer.

CAPE Convective available potential energy
CINH Convective inhibition (open ended)
LCL Lift condensation level (mb)
CAP Cap strength (C)
LFC Level free convection (mb)
EL Equilibrium level (mb)
MPL Maximum parcel level (mb)

-WIND-
Wind parameters

STM Estimated storm motion (knts) from 0-6000m AG mean layer, spd 75% of mean, dir 30 deg veer from mean.
HEL Storm relative helicity 0-3000m AG (total value)
SHR+ Positive shear magnitude 0-3000m AG (sum of veering shear values)
SRDS Storm relative directional shear 0-3000m AG (directional difference of storm relative winds)
EHI Energy helicity index (prop to positive helicity * CAPE)
BRN Bulk Richardson number 500-6000m AG (prop to CAPE/bulk shear)
BSHR Bulk shear value (magnitude of shear over layer)

The amount of data plotted can be regulated by using the data plot parameters:

Parcel Trajectory: A parcel trajectory is plotted with each sounding as a thick yellow line.  If no parcel trajectory is needed, specifying the noparcel plot parameter will eliminate it from the plot. The type of parcel can changed by specifying the par plot parameter.

Wind hodograph: The wind hodograph is a polar plot of wind speed and direction. The radius directly reflects wind speed. The hodograph is plotted for all mandatory and wind at height levels with the plot annotated with plus signs at each level and labeled with the mandatory level pressures above and to the right of the plus sign. The lowest level data (below 700 mb) is plotted in white.

The plot type can be changed. If the thermodynamic diagram is visible, the hodograph can be plotted by hitting <Meta>n. By hitting <Meta>n again, the thermodynamic plot will reappear.

Sounding Modification

Once the data are plotted, the sounding can be modified. This can be done by moving the cursor to the line which is to be modified, holding down the <Shift-right button> and moving the cursor to where the new value will be.  If the cursor is right of the temperature line, the temperature sounding is modified. If the cursor is left of the dewpoint line, the dewpoint is modified. This can only be done on the existing levels. This can also be done on the hodograph.

In many cases, the sounding has too much detail to effectively select a level or data point.  It is recommended that the user zoom the plot by using the <Shift-left button> and dragging a box around the area to be zoomed. Remember to start at a corner.

Once the sounding is modified, the plotted data will update to reflect the changed sounding.  The parcel will not automatically update.  This can be done with the <Meta>r refresh command. The modified sounding can be saved to a raw file using the <Meta>s save command. This can be read in by uacalplt to be replotted.

Output Files

By default, this program does not produce output files.  A raw file can be generated using the <Meta>s command in the plot window.  The out_file resource specifies a filename, a file tag (lookup in file name convention file) or a name convention (with wildcards). The output can be GIF file by specifying gif as the file type. It may be desirable to turn plotting of when producing output files. To do this, specify none for the plot_type resource.

EXAMPLES

   grbsnd -cu=la -mo=eta -ft=h24 -id=KIND -pl=skewt -de=d

This plots a 24 hour ETA forecast skewT diagram for KIND.

   grbsnd -cu=la -mo=ngm -ft=h30 -id=30,-100 -pl=skewt -de=d

This plots a 30 hour NGM forecast skewT diagram for the location 30N, 100W.

FILES

SEE ALSO


Last updated July 28, 1998