[gembud] NSHARP text file input syntax?

  • To: support-gempak <support-gempak@xxxxxxxxxxxxxxxx>
  • Subject: [gembud] NSHARP text file input syntax?
  • From: Neil Smith <neils@xxxxxxxx>
  • Date: Mon, 11 Jul 2011 10:53:24 -0500
  • Authentication-results: os-mail-2.tamu.edu; dkim=neutral (message not signed) header.i=none
What are the message coding formats that NSHARP is expected to be able to read 
using the "Load -> Archive Files" input option?

Any line break/form feed peculiarities?  And, just how sloppy can that input 
text be?

Working with GEMPAK 6.2, I find I can cut/paste a single site report from the 
upper air text files (STDIOFILE of ^U[GHIP][UAHCM].* ....) into a file, open it 
with the 'Archive Files' route, and get an error-free skew-T. But that format 
isn't EXACTLY according to upper air syntax 
MiMiAA YYGGId IIiii
since it has the station number on the first line in front of the MiMiAA field 
in addition to being at the IIiii field. For example:
++++
USUS43 KSGF 210000

MANSGF

72440 TTAA  71004 72440 99958 31863 19010 00005 ///// ///// 

92701 28061 18528 85444 21057 18529 70106 14466 22536 50583 

08560 19528 40752 20158 22536 88999 77999 31313 58708 82308 

51515 10159 10164 00054 10194 18528 22534=
++++

When trying to generate a skew-T from data from one of our local balloon 
launches, NSHARP will trip up on various things in the following example 

input file:
++++
USMH1 KTAM 120600
 TTAA 62061 77777 99012 29257 26510 00144 27056 25011 92831
20404 25012 85561 22293 09004 70206 12263 28508 50595 03956
30507 40767 14557 29509 30976 29565 02014 25107 40157 03509
20253 52757 02010 15430 65359 01023 10671 74160 05510 88999
77999 31313 59008 80505 51515 10164 00091 10194 25007 08502
=

USMH1 KTAM 120600
 TTBB 62068 77777 00012 29257 11002 26856 22993 26455 33920
19807 44913 19608 55899 19023 66892 22266 77891 22867 88885
23273 99883 22875 11840 22095 22838 22094 33800 18869 44797
17861 55795 17861 66785 18071 77766 16674 88759 15862 99746
14859 11728 14064 22700 12463 33681 10863 44653 07840 55591
02429 66588 02228 77539 00056 88511 02757 99503 03544 11482
05558 22470 06748 33464 07160 44444 10143 55408 13359 66377
17555 77363 19358 88336 23566 99283 32572 11247 40757 22120
73959 33110 74959 44106 71960 31313 59008 80505 41414 /////
=

USMH1 KTAM 120600
 TTCC 6206/ 77777 88999 77999 31313 59008 80505=

USMH1 KTAM 120600
 TTDD 6206/ 77777 31313 59008 80505=
++++

In addition to a pathological skew-T plot, the NSHARP terminal output has 

++++
Decoding Input File:  /home/gempak/Desktop/003_001.TEM
Reading/Decoding TTAA (Mandatory Level) Data
  TTAA 62061 77777 99012 29257 26510 00144 27056 25011 92831
 20404 25012 85561 22293 09004 70206 12263 28508 50595 03956
 30507 40767 14557 29509 30976 29565 02014 25107 40157 03509
 20253 52757 02010 15430 65359 01023 10671 74160 05510 88999
 77999 31313 59008 80505 51515 10164 00091 10194 25007 08502
STATION: 0  not found in station table...assuming 300m Elevation
Stn=0   Day=27   Hour=77   Top=700
  0    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
  1    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
  2    1000.0    144.0     27.0     21.0    250.0     11.0
  3     925.0    831.0     20.4     20.0    250.0     12.0
  4     850.0   1561.0     22.2    -20.8     90.0      4.0
  5     700.0   3206.0     12.2     -0.8    285.0      8.0
  6     500.0   5950.0     -3.9     -9.9   -999.0   -999.0
  7     300.0   5070.0    -40.7    -57.7   -999.0   -999.0
  8    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
  9    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 10     300.0   9760.0    -29.5    -44.5   -999.0   -999.0
 11    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 12     250.0  11070.0    -40.1    -47.1   -999.0   -999.0
 13    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 14     200.0  12530.0    -52.7    -59.7   -999.0   -999.0
 15    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 16     150.0  14300.0    -65.3    -74.3   -999.0   -999.0
 17    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 18     100.0  16710.0    -74.1    -84.1   -999.0   -999.0
 19    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 20    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
 21    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
Reading/Decoding TTBB (Significant Level) Data
  TTBB 62068 77777 00012 29257 11002 26856 22993 26455 33920
 19807 44913 19608 55899 19023 66892 22266 77891 22867 88885
 23273 99883 22875 11840 22095 22838 22094 33800 18869 44797
 17861 55795 17861 66785 18071 77766 16674 88759 15862 99746
 14859 11728 14064 22700 12463 33681 10863 44653 07840 55591
 02429 66588 02228 77539 00056 88511 02757 99503 03544 11482
 05558 22470 06748 33464 07160 44444 10143 55408 13359 66377
 17555 77363 19358 88336 23566 99283 32572 11247 40757 22120
 73959 33110 74959 44106 71960 31313 59008 80505 41414 /////

flag 3 0 
Stn=TTBB   Day=27   Hour=77
 22     257.0  10871.6     11.0     10.8   -999.0   -999.0
 23     856.0   1500.3    -22.9    -65.9   -999.0   -999.0
 24     455.0   5787.5    -33.9    -35.9   -999.0   -999.0
 25     807.0   2000.8    -44.9    -46.2   -999.0   -999.0
 26     608.0   4355.1     55.8      6.8   -999.0   -999.0
 27      23.0   -999.0     66.8     24.8   -999.0   -999.0
 28     266.0  10624.3     77.8     36.8   -999.0   -999.0
 29     867.0   1390.0     88.8     53.8   -999.0   -999.0
 30     273.0  10437.6     99.8     66.8   -999.0   -999.0
 31     875.0   1310.7     11.8      7.8   -999.0   -999.0
 32      95.0  16091.9     22.8     19.0   -999.0   -999.0
 33      94.0  15964.4     33.8     33.8   -999.0   -999.0
 34     869.0   1370.1    -44.7    -91.7   -999.0   -999.0
 35     861.0   1450.0    -55.7   -100.7   -999.0   -999.0
 36     861.0   1450.0    -66.7   -101.7   -999.0   -999.0
 37      71.0  12583.1    -77.7    -93.7   -999.0   -999.0
 38     674.0   3514.7    -88.7    -97.7   -999.0   -999.0
 39     862.0   1440.0    -99.7   -104.3   -999.0   -999.0
 40     859.0   1470.1    -11.7    -14.5   -999.0   -999.0
 41      64.0  11332.4    -22.7    -22.7   -999.0   -999.0
 42     463.0   5817.6     33.6      2.6   -999.0   -999.0
 43     863.0   1430.0     44.6     39.3   -999.0   -999.0
 44     840.0   1661.3    -55.5    -96.5   -999.0   -999.0
 45     429.0   5686.2    -66.5   -104.5   -999.0   -999.0
 46     228.0  11672.7    -77.5    -81.4   -999.0   -999.0
 47      56.0   9723.4    -88.5    -89.6   -999.0   -999.0
 48     757.0   2542.7    -99.5    -99.8   -999.0   -999.0
 49     544.0   5262.2     11.4    -20.6   -999.0   -999.0
 50     558.0   5055.0     22.4      2.4   -999.0   -999.0
 51     748.0   2644.1     33.4     19.4   -999.0   -999.0
 52     160.0  13902.9     44.4     40.0   -999.0   -999.0
 53     143.0  14584.1     55.4     54.6   -999.0   -999.0
 54     359.0   5379.3    -66.3    -93.3   -999.0   -999.0
 55     555.0   5098.9    -77.3    -90.3   -999.0   -999.0
 56     358.0   5374.5    -88.3    -91.9   -999.0   -999.0
 57     566.0   4938.9     99.2     66.2   -999.0   -999.0
 58     572.0   4852.9     11.2      6.5   -999.0   -999.0
 59     757.0   2542.7    -22.1    -24.1   -999.0   -999.0
 60     959.0    512.9    -33.1    -34.1   -999.0   -999.0
 61     959.0    512.9    -44.1    -44.7   -999.0   -999.0
 62     960.0    503.7    -31.3    -32.6   -999.0   -999.0
 63       8.0   -999.0    -80.5    -81.0   -999.0   -999.0
 64     414.0   5624.9   -999.0   -999.0   -999.0   -999.0
 65       0.0   -999.0      0.0      0.0   -999.0   -999.0

flag 4 0 
Reading/Decoding PPBB (Wind Level) Data

 -> TTBB 62068 77777 00012 

flag 1 1 
Stn=77777   Day=12   Hour=6

flag 2 1 
Weeding/Sorting Data Array Into Ascending Order
SFC  -999.00  -999.00  -999.00
   -1.00  -999.00  -999.00
   -1.00   144.00    27.00
  925.00   831.00    20.40
  850.00  1561.00    22.20
  700.00  3206.00    12.20
  500.00  5950.00    -3.90
  300.00  5070.00   -40.70
   -1.00  -999.00  -999.00
   -1.00  -999.00  -999.00
  300.00  9760.00   -29.50
   -1.00  -999.00  -999.00
  250.00 11070.00   -40.10
   -1.00  -999.00  -999.00
  200.00 12530.00   -52.70
   -1.00  -999.00  -999.00
  150.00 14300.00   -65.30
   -1.00  -999.00  -999.00
  100.00 16710.00   -74.10
   -1.00  -999.00  -999.00
   -1.00  -999.00  -999.00
   -1.00  -999.00  -999.00
  257.00 10871.58    11.00
   -1.00  1500.27   -22.90
  455.00  5787.53   -33.90
   -1.00  2000.83   -44.90
   -1.00  4355.11    55.80
   23.00  -999.00    66.80
  266.00 10624.27    77.80
   -1.00  1390.04    88.80
  273.00 10437.63    99.80
   -1.00  1310.75    11.80
   95.00 16091.94    22.80
   94.00 15964.43    33.80
   -1.00  1370.15   -44.70
   -1.00  1449.99   -55.70
   -1.00  1449.99   -66.70
   71.00 12583.13   -77.70
   -1.00  3514.68   -88.70
   -1.00  1439.97   -99.70
   -1.00  1470.07   -11.70
   64.00 11332.42   -22.70
   -1.00  5817.56    33.60
   -1.00  1429.96    44.60
   -1.00  1661.27   -55.50
   -1.00  5686.17   -66.50
   -1.00 11672.70   -77.50
   56.00  9723.42   -88.50
   -1.00  2542.74   -99.50
   -1.00  5262.18    11.40
   -1.00  5054.96    22.40
   -1.00  2644.08    33.40
  0    -999.0   -999.0   -999.0   -999.0   -999.0   -999.0
  1    1000.0    144.0     27.0     21.0    250.0     11.0
  2     960.0    503.7    -31.3    -32.6   -999.0   -999.0
  3     959.0    512.9    -33.1    -34.1   -999.0   -999.0
  4     925.0    831.0     20.4     20.0    250.0     12.0
  5     875.0   1310.7     11.8      7.8   -999.0   -999.0
  6     869.0   1370.1    -44.7    -91.7   -999.0   -999.0
  7     867.0   1390.0     88.8     53.8   -999.0   -999.0
  8     863.0   1430.0     44.6     39.3   -999.0   -999.0
  9     862.0   1440.0    -99.7   -104.3   -999.0   -999.0
 10     861.0   1450.0    -55.7   -100.7   -999.0   -999.0
 11     859.0   1470.1    -11.7    -14.5   -999.0   -999.0
 12     856.0   1500.3    -22.9    -65.9   -999.0   -999.0
 13     850.0   1561.0     22.2    -20.8     90.0      4.0
 14     840.0   1661.3    -55.5    -96.5   -999.0   -999.0
 15     807.0   2000.8    -44.9    -46.2   -999.0   -999.0
 16     757.0   2542.7    -99.5    -99.8   -999.0   -999.0
 17     748.0   2644.1     33.4     19.4   -999.0   -999.0
 18     700.0   3206.0     12.2     -0.8    285.0      8.0
 19     674.0   3514.7    -88.7    -97.7   -999.0   -999.0
 20     608.0   4355.1     55.8      6.8   -999.0   -999.0
 21     572.0   4852.9     11.2      6.5   -999.0   -999.0
 22     566.0   4938.9     99.2     66.2   -999.0   -999.0
 23     558.0   5055.0     22.4      2.4   -999.0   -999.0
 24     555.0   5098.9    -77.3    -90.3   -999.0   -999.0
 25     544.0   5262.2     11.4    -20.6   -999.0   -999.0
 26     500.0   5950.0     -3.9     -9.9   -999.0   -999.0
 27     463.0   5817.6     33.6      2.6   -999.0   -999.0
 28     455.0   5787.5    -33.9    -35.9   -999.0   -999.0
 29     429.0   5686.2    -66.5   -104.5   -999.0   -999.0
 30     414.0   5624.9   -999.0   -999.0   -999.0   -999.0
 31     359.0   5379.3    -66.3    -93.3   -999.0   -999.0
 32     358.0   5374.5    -88.3    -91.9   -999.0   -999.0
 33     300.0   5070.0    -40.7    -57.7   -999.0   -999.0
 34     273.0  10437.6     99.8     66.8   -999.0   -999.0
 35     266.0  10624.3     77.8     36.8   -999.0   -999.0
 36     257.0  10871.6     11.0     10.8   -999.0   -999.0
 37     250.0  11070.0    -40.1    -47.1   -999.0   -999.0
 38     228.0  11672.7    -77.5    -81.4   -999.0   -999.0
 39     200.0  12530.0    -52.7    -59.7   -999.0   -999.0
 40     160.0  13902.9     44.4     40.0   -999.0   -999.0
 41     150.0  14300.0    -65.3    -74.3   -999.0   -999.0
 42     143.0  14584.1     55.4     54.6   -999.0   -999.0
 43     100.0  16710.0    -74.1    -84.1   -999.0   -999.0
 44      95.0  16091.9     22.8     19.0   -999.0   -999.0
 45      94.0  15964.4     33.8     33.8   -999.0   -999.0
 46      71.0  12583.1    -77.7    -93.7   -999.0   -999.0
 47      64.0  11332.4    -22.7    -22.7   -999.0   -999.0
 48      56.0   9723.4    -88.5    -89.6   -999.0   -999.0
 49      23.0   -999.0     66.8     24.8   -999.0   -999.0
 50       8.0   -999.0    -80.5    -81.0   -999.0   -999.0
Writing File DECDDROB to Disk
Extracting Sounding Identity from 003_001.TEM
storm motion = 285.068909/4.039211
++++

I've found that if I simply replace the 77777 with a valid station number like 
that for FWD, NSHARP will read the date/time from that field instead of the 
62068 field and then ignore the surface data field set.

If I insert the station number in front of the TTAA line, I get garbled output 
evidently because the first record (line) in the message now has one more field 
than the remaining records and will thus ignore the last field. eg., all 
records must have the same number of fields (is that documented somewhere?) 
Result for this data is that the 920 mb field set is robbed of its 1st field in 
the triplet and the remaining records are then thoroughly confused (to put it 
politely).

Any insight?

-Neil

PS: is there any advantage to converting this text input to gempak format with, 
say, dcuair? Do I face additional syntax/formatting restrictions?

---
Neil Smith  neils@xxxxxxxx   979.845.6272
Comp. Sys. Mngr., Atmospheric Sciences, TAMU




  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the gembud archives: