[gradsusr] need some help about write a bufr description file

Yu F. Zhang grapeszy at gmail.com
Fri Sep 2 15:53:15 EDT 2011


I just use the bufrscan to get some information about the bufr data.
But I do not know how to write a bufr description file
I just write a description file like this:
dset ^080112.bufr
undef 9.999E+10
title prepbufr
dtype bufr
TDEF 1 linear 06z23may2010 1hr
STID 1,192
XVAR 6,2
YVAR 5,2
VARS 7
slon 0 06,002 LONGITUDE
slat 0 05,002 LATITUDE
STAT 0 01,192 Station id
POB 0 07,192 PRESSURE OBSERVATION
TOB 0 12,192 TEMPERATURE OBSERVATION
ZOB 0 10,196 HEIGHT OBSERVATION
QOB 0 13,023 SPECIFIC HUMIDITY OBSERVATION
ENDVARS
I can open the bufr data. But After I d pob I get nothing? Is the bufr description right? How can I get a correct bufr description?

Here are the result of bufrscan:

>>> processing message 0



>>> start of message
1 03 000  (replicate next 3, not including replication count)
0 31 001  (replication count)
0 00 001  (text)  Table A: entry
0 00 002  (text)  Table A: data category description, line 1
0 00 003  (text)  Table A: data category description, line 2
1 01 000  (replicate next 1, not including replication count)
0 31 001  (replication count)
3 00 004  (sequence)
  3 00 003  (sequence)
    0 00 010  (text)  F descriptor to be added or defined
    0 00 011  (text)  X descriptor to be added or defined
    0 00 012  (text)  Y descriptor to be added or defined
  0 00 013  (text)  Element name, line 1
  0 00 014  (text)  Element name, line 2
  0 00 015  (text)  Units name
  0 00 016  (text)  Units scale sign
  0 00 017  (text)  Units scale
  0 00 018  (text)  Units reference sign
  0 00 019  (text)  Units reference value
  0 00 020  (text)  Element data width
1 05 000  (replicate next 5, not including replication count)
0 31 001  (replication count)
3 00 003  (sequence)
  0 00 010  (text)  F descriptor to be added or defined
  0 00 011  (text)  X descriptor to be added or defined
  0 00 012  (text)  Y descriptor to be added or defined
2 05 064  (operator)
1 01 000  (replicate next 1, not including replication count)
0 31 001  (replication count)
0 00 030  (text)  Descriptor defining sequence

<<< end of message


>>> processing message 1
....

>>> processing message 4



>>> start of message
0 63 000  (numeric) BYTCNT
3 60 240  (sequence)
  3 61 001  (sequence)
    0 01 192  (text) SID      STATION IDENTIFICATION
    0 06 002  (numeric) XOB      LONGITUDE
    0 05 002  (numeric) YOB      LATITUDE
    0 04 192  (numeric) DHR      OBSERVATION TIME MINUS CYCLE TIME
    0 10 194  (numeric) ELV      STATION ELEVATION
    0 01 193  (numeric) TYP      PREPBUFR REPORT TYPE
    0 55 006  (numeric) T29      INPUT REPORT TYPE
    0 55 192  (numeric) TSB      REPORT SUBTYPE (HAS VARIOUS MEANINGS DEPENDING ON TYPE)
    0 02 001  (numeric) ITP      INSTRUMENT TYPE
    0 50 001  (numeric) SQN      REPORT SEQUENCE NUMBER
    0 50 002  (numeric) PROCN    PROCESS NUMBER FOR THIS MPI RUN (OBTAINED FROM SCRIPT)
    0 04 194  (numeric) RPT      REPORTED OBSERVATION TIME
    0 04 195  (numeric) TCOR     INDICATOR WHETHER OBS. TIME IN "DHR" WAS CORRECTED
    3 60 004  (sequence)
      1 01 000  (replicate next 1, not including replication count)
      0 31 000  (replication count)
    3 61 012  (sequence)
      0 35 200  (numeric) RSRD     RESTRICTIONS ON REDISTRIBUTION
      0 35 201  (numeric) EXPRSRD  EXPIRATION OF RESTRICTIONS ON REDISTRIBUTION
  3 60 002  (sequence)
    1 01 000  (replicate next 1, not including replication count)
    0 31 001  (replication count)
  3 61 002  (sequence)
    0 01 194  (numeric) CAT      PREPBUFR DATA LEVEL CATEGORY
    3 60 004  (sequence)
      1 01 000  (replicate next 1, not including replication count)
      0 31 000  (replication count)
    3 62 001  (sequence)
      3 60 003  (sequence)
        1 01 000  (replicate next 1, not including replication count)
        0 31 001  (replication count)
      3 62 101  (sequence)
        0 07 192  (numeric) POB      PRESSURE OBSERVATION
        0 07 193  (numeric) PQM      PRESSURE (QUALITY) MARKER
        0 07 194  (numeric) PPC      PRESSURE PROGRAM CODE



Thanks for the help very much
Sincerely yours :Yu ZHANG



More information about the gradsusr mailing list