Unpack GRIB field to a GRIB grid.
More...
Go to the source code of this file.
|
| subroutine | fi631 (MSGA, KPTR, KPDS, KRET) |
| | Find 'grib' chars & reset pointers. More...
|
| |
| subroutine | fi632 (MSGA, KPTR, KPDS, KRET) |
| | Gather info from product definition sec. More...
|
| |
| subroutine | fi633 (MSGA, KPTR, KGDS, KRET) |
| | Extract info from grib-gds. More...
|
| |
| subroutine | fi634 (MSGA, KPTR, KPDS, KGDS, KBMS, KRET) |
| | Extract or generate bit map for output. More...
|
| |
| subroutine | fi634x (NPTS, NSKP, MSGA, KBMS) |
| | Extract bit map. More...
|
| |
| subroutine | fi635 (MSGA, KPTR, KPDS, KGDS, KBMS, DATA, KRET) |
| | Extract grib data elements from bds. More...
|
| |
| subroutine | fi636 (DATA, MSGA, KBMS, REFNCE, KPTR, KPDS, KGDS) |
| | Process second order packing. More...
|
| |
| subroutine | fi637 (J, KPDS, KGDS, KRET) |
| | Grib grid/size test. More...
|
| |
| subroutine | w3fi63 (MSGA, KPDS, KGDS, KBMS, DATA, KPTR, KRET) |
| | Unpack a GRIB (edition 1) field to the exact grid specified in the GRIB message, isolate the bit map, and make the values of the product descripton section (PDS) and the grid description section (GDS) available in return arrays. More...
|
| |
Unpack GRIB field to a GRIB grid.
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition in file w3fi63.f.
◆ fi631()
| subroutine fi631 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer |
KRET |
|
) |
| |
Find 'grib' chars & reset pointers.
- Author
- Bill Cavanaugh
- Date
- 1991-09-13 Find 'grib; characters and set pointers to the next byte following 'grib'. If they exist extract counts from gds and bms. Extract count from bds. Determine if sum of counts actually places terminator '7777' at the correct location.
Program history log:
- Bill Cavanaugh 1991-09-13
- Mark Iredell 1995-10-31 Removed saves and prints.
- Parameters
-
| [in] | MSGA | Grib field - "grib" thru "7777" |
| [in,out] | KPTR | Array containing storage for following parameters
- 1 Total length of grib message
- 2 Length of indicator (section 0)
- 3 Length of pds (section 1)
- 4 Length of gds (section 2)
- 5 Length of bms (section 3)
- 6 Length of bds (section 4)
- 7 Value of current byte
- 8 Bit pointer
- 9 Grib start bit nr
- 10 Grib/grid element count
- 11 Nr unused bits at end of section 3
- 12 Bit map flag
- 13 Nr unused bits at end of section 2
- 14 Bds flags
- 15 Nr unused bits at end of section 4
|
| [out] | KPDS | Array containing pds elements.
- 1 Id of center
- 2 Model identification
- 3 Grid identification
- 4 Gds/bms flag
- 5 Indicator of parameter
- 6 Type of level
- 7 Height/pressure , etc of level
- 8 Year of century
- 9 Month of year
- 10 Day of month
- 11 Hour of day
- 12 Minute of hour
- 13 Indicator of forecast time unit
- 14 Time range 1
- 15 Time range 2
- 16 Time range flag
- 17 Number included in average
|
| [out] | KRET | Error return |
- Note
- ERROR RETURNS KRET:
- 1 NO 'GRIB'
- 2 NO '7777' OR MISLOCATED (BY COUNTS)
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition at line 477 of file w3fi63.f.
◆ fi632()
| subroutine fi632 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer |
KRET |
|
) |
| |
Gather info from product definition sec.
- Author
- Bill Cavanaugh
- Date
- 1991-09-13 Extract information from the product description sec , and generate label information to permit storage in office note 84 format.
Program history log:
- Bill Cavanaugh 1991-09-13
- Bill Cavanaugh 1993-12-08 Corrected test for edition number instead of version number.
- Mark Iredell 1995-10-31 Removed saves and prints.
- M. Baldwin 1999-01-20 Modified to handle grid 237.
- Parameters
-
| [in] | MSGA | Array containing grib message. |
| [in,out] | KPTR | Array containing storage for following parameters.
- 1 Total length of grib message
- 2 Length of indicator (section 0)
- 3 Length of pds (section 1)
- 4 Length of gds (section 2)
- 5 Length of bms (section 3)
- 6 Length of bds (section 4)
- 7 Value of current byte
- 8 Bit pointer
- 9 Grib start bit nr
- 10 Grib/grid element count
- 11 Nr unused bits at end of section 3
- 12 Bit map flag
- 13 Nr unused bits at end of section 2
- 14 Bds flags
- 15 Nr unused bits at end of section 4
|
| [out] | KPDS | Array containing pds elements.
- 1 Id of center
- 2 Model identification
- 3 Grid identification
- 4 Gds/bms flag
- 5 Indicator of parameter
- 6 Type of level
- 7 Height/pressure , etc of level
- 8 Year of century
- 9 Month of year
- 10 Day of month
- 11 Hour of day
- 12 Minute of hour
- 13 Indicator of forecast time unit
- 14 Time range 1
- 15 Time range 2
- 16 Time range flag
- 17 Number included in average
- 18
- 19
- 20 Number missing from avgs/accumulations
- 21 Century
- 22 Units decimal scale factor
- 23 Subcenter
|
| [out] | KRET | Error return. |
- Note
- ERROR RETURN:
- 0 - NO ERRORS
- 8 - TEMP GDS INDICATED, BUT NO GDS
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition at line 634 of file w3fi63.f.
◆ fi633()
| subroutine fi633 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KGDS, |
|
|
integer |
KRET |
|
) |
| |
◆ fi634()
| subroutine fi634 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer, dimension(*) |
KGDS, |
|
|
logical*1, dimension(*) |
KBMS, |
|
|
integer |
KRET |
|
) |
| |
Extract or generate bit map for output.
- Author
- Bill Cavanaugh
- Date
- 1991-09-13 If bit map sec is available in grib message, extract for program use, otherwise generate an appropriate bit map.
Program history log:
- Bill Cavanaugh 1991-09-13
- Bill Cavanaugh 1991-11-12 Modified size of ecmwf grids 5 - 8.
- Mark Iredell 1995-10-31 removed saves and prints
- W. Bostelman 1997-02-12 corrects ecmwf us grid 2 processing
- Mark Iredell 1997-09-19 vectorized bitmap decoder
- Stephen Gilbert 1998-09-02 corrected error in map size for u.s. grid 92
- M. Baldwin 1998-09-08 add grids 190,192
- M. Baldwin 1999-01-20 add grids 236,237
- Eric Rogers 2001-10-02 redefined grid #218 for 12 km eta redefined grid 192 for new 32-km eta grid
- Stephen Gilbert 2003-06-30 added grids 145 and 146 for cmaq and grid 175 for awips over guam.
- Boi Vuong 2004-09-02 Added awips grids 147, 148, 173 and 254
- Boi Vuong 2006-12-12 Added awips grids 120
- Boi Vuong 2007-04-20 Added awips grids 176
- Boi Vuong 2007-06-11 Added awips grids 11 to 18 and 122 to 125 and 180 to 183
- Boi Vuong 2010-08-05 Added new grid 184, 199, 83 and redefined grid 90 for new rtma conus 1.27-km redefined grid 91 for new rtma alaska 2.976-km redefined grid 92 for new rtma alaska 1.488-km
- Boi Vuong 2012-02-28 Added new grid 200
- Parameters
-
| [in] | MSGA | Bufr message |
| [in,out] | KPTR | Array containing storage for following parameters
- 1 Total length of grib message
- 2 Length of indicator (section 0)
- 3 Length of pds (section 1)
- 4 Length of gds (section 2)
- 5 Length of bms (section 3)
- 6 Length of bds (section 4)
- 7 Value of current byte
- 8 Bit pointer
- 9 Grib start bit nr
- 10 Grib/grid element count
- 11 Nr unused bits at end of section 3
- 12 Bit map flag
- 13 Nr unused bits at end of section 2
- 14 Bds flags
- 15 Nr unused bits at end of section 4
|
| [in] | KPDS | Array containing pds elements.
- 1 Id of center
- 2 Model identification
- 3 Grid identification
- 4 Gds/bms flag
- 5 Indicator of parameter
- 6 Type of level
- 7 Height/pressure , etc of level
- 8 Year of century
- 9 Month of year
- 10 Day of month
- 11 Hour of day
- 12 Minute of hour
- 13 Indicator of forecast time unit
- 14 Time range 1
- 15 Time range 2
- 16 Time range flag
- 17 Number included in average
|
| [in] | KGDS | Array containing gds elements.
- 1) Data representation type
- 19 Number of vertical coordinate parameters
- 20 Octet number of the list of vertical coordinate parameters Or Octet number of the list of numbers of points in each row Or 255 if neither are present.
- 21 For grids with pl, number of points in grid
- 22 Number of words in each row
|
- Longitude grids
- 2) N(i) nr points on latitude circle
- 3) N(j) nr points on longitude meridian
- 4) La(1) latitude of origin
- 5) Lo(1) longitude of origin
- 6) Resolution flag
- 7) La(2) latitude of extreme point
- 8) Lo(2) longitude of extreme point
- 9) Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag
- Polar stereographic grids
- 2) N(i) nr points along lat circle
- 3) N(j) nr points along lon circle
- 4) La(1) latitude of origin
- 5) Lo(1) longitude of origin
- 6) Reserved
- 7) Lov grid orientation
- 8) Dx - x direction increment
- 9) Dy - y direction increment
- 10 Projection center flag
- 11 Scanning mode
- Spherical harmonic coefficients
- 2 J pentagonal resolution parameter
- 3 K pentagonal resolution parameter
- 4 M pentagonal resolution parameter
- 5 Representation type
- 6 Coefficient storage mode
- Mercator grids
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag
- 7 La(2) latitude of last grid point
- 8 Lo(2) longitude of last grid point
- 9 Latin - latitude of projection intersection
- 10 Reserved
- 11 Scanning mode flag
- 12 Longitudinal dir grid length
- 13 Latitudinal dir grid length
- Lambert conformal grids
- 2 Nx nr points along x-axis
- 3 Ny nr points along y-axis
- 4 La1 lat of origin (lower left)
- 5 Lo1 lon of origin (lower left)
- 6 Resolution (right adj copy of octet 17)
- 7 Lov - orientation of grid
- 8 Dx - x-dir increment
- 9 Dy - y-dir increment
- 10 Projection center flag
- 11 Scanning mode flag
- 12 Latin 1 - first lat from pole of secant cone inter
- 13 Latin 2 - second lat from pole of secant cone inter
- Staggered arakawa rotated lat/lon grids (203 e stagger)
- 2 N(i) nr points on rotated latitude circle
- 3 N(j) nr points on rotated longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag
- 7 La(2) latitude of center
- 8 Lo(2) longitude of center
- 9 Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag
- Staggered arakawa rotated lat/lon grids (205 a,b,c,d staggers)
- 2 N(i) nr points on rotated latitude circle
- 3 N(j) nr points on rotated longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag
- 7 La(2) latitude of center
- 8 Lo(2) longitude of center
- 9 Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag
- 12 Latitude of last point
- 13 Longitude of last point
- Parameters
-
| [out] | KBMS | Bitmap describing location of output elements. |
| [out] | KRET | Error return |
- Note
- KRET
- 0 - No error
- 5 - Grid not avail for center indicated
- 10 - Incorrect center indicator
- 12 - Bytes 5-6 are not zero in bms, predefined bit map not provided by this center
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition at line 1526 of file w3fi63.f.
◆ fi634x()
| subroutine fi634x |
( |
|
NPTS, |
|
|
|
NSKP, |
|
|
character*1, dimension(*) |
MSGA, |
|
|
logical*1, dimension(npts) |
KBMS |
|
) |
| |
Extract bit map.
- Author
- Mark Iredell
- Date
- 1997-09-19 Extract the packed bitmap into a logical array.
Program history log: 97-09-19 Vectorized bitmap decoder.
- Parameters
-
| [in] | NPTS | XInteger number of points in the bitmap field |
| [in] | NSKP | Integer number of bits to skip in grib message |
| [in] | MSGA | Character*1 grib message |
| [out] | KBMS | Logical*1 bitmap |
- Note
- Subprogram can be called from a multiprocessing environment.
- Author
- Mark Iredell
- Date
- 1997-09-19
Definition at line 2511 of file w3fi63.f.
◆ fi635()
| subroutine fi635 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer, dimension(*) |
KGDS, |
|
|
logical*1, dimension(*) |
KBMS, |
|
|
real, dimension(*) |
DATA, |
|
|
|
KRET |
|
) |
| |
◆ fi636()
| subroutine fi636 |
( |
real, dimension(*) |
DATA, |
|
|
character*1, dimension(*) |
MSGA, |
|
|
logical*1, dimension(*) |
KBMS, |
|
|
real |
REFNCE, |
|
|
integer, dimension(*) |
KPTR, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer, dimension(*) |
KGDS |
|
) |
| |
◆ fi637()
| subroutine fi637 |
( |
integer |
J, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer, dimension(*) |
KGDS, |
|
|
|
KRET |
|
) |
| |
Grib grid/size test.
- Author
- Bill Cavanaugh
- Date
- 1991-09-13 To test when gds is available to see if size mismatch on existing grids (by center) is indicated.
Program history log:
- Bill Cavanaugh 1991-09-13
- Mark Iredell 1995-10-31 Removed saves and prints
- M. Bostelman 1997-02-12 Corrects ecmwf us grid 2 processing
- Mark Iredell 1998-06-17 Removed alternate return
- M. Baldwin 1999-01-20 Modify to handle grid 237
- Boi Vuong 1909-05-21 Modify to handle grid 45
- Parameters
-
| [in,out] | J | Size for indicated grid modified for ecmwf-us 2 |
| [in] | KPDS | |
| [in] | KGDS | |
| [out] | KRET | Error return (a mismatch was detected if kret is not zero) |
- Note
- KRET:
- 9 - Gds indicates size mismatch with std grid
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition at line 3597 of file w3fi63.f.
◆ w3fi63()
| subroutine w3fi63 |
( |
character*1, dimension(*) |
MSGA, |
|
|
integer, dimension(*) |
KPDS, |
|
|
integer, dimension(*) |
KGDS, |
|
|
logical*1, dimension(*) |
KBMS, |
|
|
real, dimension(*) |
DATA, |
|
|
integer, dimension(*) |
KPTR, |
|
|
|
KRET |
|
) |
| |
Unpack a GRIB (edition 1) field to the exact grid specified in the GRIB message, isolate the bit map, and make the values of the product descripton section (PDS) and the grid description section (GDS) available in return arrays.
When decoding is completed, data at each grid point has been returned in the units specified in the GRIB manual.
See "GRIB - THE WMO FORMAT FOR THE STORAGE OF WEATHER PRODUCT INFORMATION AND THE EXCHANGE OF WEATHER PRODUCT MESSAGES IN GRIDDED BINARY FORM" dated July 1, 1988 by John D. Stackpolem DOC, NOAA, NWS, National Meteorological Center.
List of text messages from code:
- W3FI63/FI632
- 'HAVE ENCOUNTERED A NEW GRID FOR NMC, PLEASE NOTIFY AUTOMATION DIVISION, PRODUCTION MANAGEMENT BRANCH (W/NMC42)'
- 'HAVE ENCOUNTERED A NEW GRID FOR ECMWF, PLEASE NOTIFY AUTOMATION DIVISION, PRODUCTION MANAGEMENT BRANCH (W/NMC42)'
- 'HAVE ENCOUNTERED A NEW GRID FOR U.K. METEOROLOGICAL OFFICE, BRACKNELL. PLEASE NOTIFY AUTOMATION DIVISION, PRODUCTION MANAGEMENT BRANCH (W/NMC42)'
- 'HAVE ENCOUNTERED A NEW GRID FOR FNOC, PLEASE NOTIFY AUTOMATION DIVISION, PRODUCTION MANAGEMENT BRANCH (W/NMC42)'
- W3FI63/FI633
- 'POLAR STEREO PROCESSING NOT AVAILABLE'
- W3FI63/FI634
- 'WARNING - BIT MAP MAY NOT BE ASSOCIATED WITH SPHERICAL COEFFICIENTS'
- W3FI63/FI637
- 'NO CURRENT LISTING OF FNOC GRIDS'
- Parameters
-
| [in] | MSGA | Grib field - "grib" thru "7777" char*1 (message can be preceded by junk chars). Contains the grib message to be unpacked. characters "GRIB" may begin anywhere within first 100 bytes. |
| [out] | KPDS | Array of size 100 containing PDS elements, GRIB (edition 1):
- 1 Id of center
- 2 Generating process id number
- 3 Grid definition
- 4 Gds/bms flag (right adj copy of octet 8)
- 5 Indicator of parameter
- 6 Type of level
- 7 Height/pressure , etc of level
- 8 Year including (century-1)
- 9 Month of year
- 10 Day of month
- 11 Hour of day
- 12 Minute of hour
- 13 Indicator of forecast time unit
- 14 Time range 1
- 15 Time range 2
- 16 Time range flag
- 17 Number included in average
- 18 Version nr of grib specification
- 19 Version nr of parameter table
- 20 Nr missing from average/accumulation
- 21 Century of reference time of data
- 22 Units decimal scale factor
- 23 Subcenter number
- 24 Pds byte 29, for nmc ensemble products
- 128 If forecast field error
- 64 If bias corrected fcst field
- 32 If smoothed field
- Warning: can be combination of more than 1
- 25 Pds byte 30, not used
- 26-35 Reserved
- 36-N Consecutive bytes extracted from program Definition section (pds) of grib message
|
| [out] | KGDS | ARRAY CONTAINING GDS ELEMENTS.
- 1) Data representation type
- 19 Number of vertical coordinate parameters
- 20 Octet number of the list of vertical coordinate Parameters Or Octet number of the list of numbers of points In each row Or 255 if neither are present
- 21 For grids with pl, number of points in grid
- 22 Number of words in each row
|
- LATITUDE/LONGITUDE GRIDS
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag (right adj copy of octet 17)
- 7 La(2) latitude of extreme point
- 8 Lo(2) longitude of extreme point
- 9 Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag (right adj copy of octet 28)
- GAUSSIAN GRIDS
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag (right adj copy of octet 17)
- 7 La(2) latitude of extreme point
- 8 Lo(2) longitude of extreme point
- 9 Di longitudinal direction of increment
- 10 N - nr of circles pole to equator
- 11 Scanning mode flag (right adj copy of octet 28)
- 12 Nv - nr of vert coord parameters
- 13 Pv - octet nr of list of vert coord parameters or Pl - location of the list of numbers of points in each row (if no vert coord parameters are present or 255 if neither are present
- POLAR STEREOGRAPHIC GRIDS
- 2 N(i) nr points along lat circle
- 3 N(j) nr points along lon circle
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag (right adj copy of octet 17)
- 7 Lov grid orientation
- 8 Dx - x direction increment
- 9 Dy - y direction increment
- 10 Projection center flag
- 11 Scanning mode (right adj copy of octet 28)
- SPHERICAL HARMONIC COEFFICIENTS
- 2) J pentagonal resolution parameter
- 3) K pentagonal resolution parameter
- 4) M pentagonal resolution parameter
- 5) Representation type
- 6) Coefficient storage mode
- MERCATOR GRIDS
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag (right adj copy of octet 17)
- 7 La(2) latitude of last grid point
- 8 Lo(2) longitude of last grid point
- 9 Latit - latitude of projection intersection
- 10 Reserved
- 11 Scanning mode flag (right adj copy of octet 28)
- 12 Longitudinal dir grid length
- 13 Latitudinal dir grid length
- LAMBERT CONFORMAL GRIDS
- 2 Nx nr points along x-axis
- 3 Ny nr points along y-axis
- 4 La1 lat of origin (lower left)
- 5 Lo1 lon of origin (lower left)
- 6 Resolution (right adj copy of octet 17)
- 7 Lov - orientation of grid
- 8 Dx - x-dir increment
- 9 Dy - y-dir increment
- 10 Projection center flag
- 11 Scanning mode flag (right adj copy of octet 28)
- 12 Latin 1 - first lat from pole of secant cone inter
- 13 Latin 2 - second lat from pole of secant cone inter
- E-STAGGERED ARAKAWA ROTATED LAT/LON GRIDS (TYPE 203)
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of origin
- 5 Lo(1) longitude of origin
- 6 Resolution flag (right adj copy of octet 17)
- 7 La(2) latitude of center
- 8 Lo(2) longitude of center
- 9 Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag (right adj copy of octet 28)
- CURVILINEAR ORTHIGINAL GRID (TYPE 204)
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 Reserved set to 0
- 5 Reserved set to 0
- 6 Resolution flag (right adj copy of octet 17)
- 7 Reserved set to 0
- 8 Reserved set to 0
- 9 Reserved set to 0
- 10 Reserved set to 0
- 11 Scanning mode flag (right adj copy of octet 28)
- ROTATED LAT/LON A,B,C,D-STAGGERED (TYPE 205)
- 2 N(i) nr points on latitude circle
- 3 N(j) nr points on longitude meridian
- 4 La(1) latitude of first point
- 5 Lo(1) longitude of first point
- 6 Resolution flag (right adj copy of octet 17)
- 7 La(2) latitude of center
- 8 Lo(2) longitude of center
- 9 Di longitudinal direction of increment
- 10 Dj latitudinal direction increment
- 11 Scanning mode flag (right adj copy of octet 28)
- 12 Latitude of last point
- 13 Longitude of last point
- Parameters
-
| [out] | KBMS | Bitmap describing location of output elements. (always constructed) |
| [out] | DATA | Array containing the unpacked data elements. Note: 65160 is maximun field size allowable. |
| [out] | KPTR | Array containing storage for following parameters |
- 1 Total length of grib message
- 2 Length of indicator (section 0)
- 3 Length of pds (section 1)
- 4 Length of gds (section 2)
- 5 Length of bms (section 3)
- 6 Length of bds (section 4)
- 7 Value of current byte
- 8 Bit pointer
- 9 Grib start bit nr
- 10 Grib/grid element count
- 11 Nr unused bits at end of section 3
- 12 Bit map flag (copy of bms octets 5,6)
- 13 Nr unused bits at end of section 2
- 14 Bds flags (right adj copy of octet 4)
- 15 Nr unused bits at end of section 4
- 16 Reserved
- 17 Reserved
- 18 Reserved
- 19 Binary scale factor
- 20 Num bits used to pack each datum
- Parameters
-
| [out] | KRET | Flag indicating quality of completion. |
- Note
- When decoding is completed, data at each grid point has been returned in the units specified in the grib manual.
- Values for return flag (kret)
- 0 - Normal return, no errors
- 1 - 'grib' not found in first 100 chars
- 2 - '7777' not in correct location
- 3 - Unpacked field is larger than 260000
- 4 - Gds/ grid not one of currently accepted values
- 5 - Grid not currently avail for center indicated
- 8 - Temp gds indicated, but gds flag is off
- 9 - Gds indicates size mismatch with std grid
- 10 - Incorrect center indicator
- 11 - Binary data section (bds) not completely processed. program is not set to process flag combinations shown in octets 4 and 14.
- 12 - Binary data section (bds) not completely processed. program is not set to process flag combinations
- Author
- Bill Cavanaugh
- Date
- 1991-09-13
Definition at line 242 of file w3fi63.f.