|
NCEPLIBS-w3emc 2.12.0
|
GRIB pack data and form bds octets(1-11) More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | fi7501 (iwork, ipfld, npts, ibdsfl, bds11, len, lenbds, pds, refnce, iscal2, kwide) |
| BDS second order packing. | |
| subroutine | fi7502 (iwork, istart, npts, isame) |
| Second order same value collection. | |
| subroutine | fi7503 (iwork, ipfld, npts, ibdsfl, bds11, len, lenbds, pds, refnce, iscal2, kwide, igds) |
| Row by row, col by col packing. | |
| subroutine | fi7505 (n, nbits) |
| Determine number of bits to contain value. | |
| subroutine | fi7513 (iwork, istart, npts, max, min, inrnge) |
| Select block of data for packing. | |
| subroutine | fi7516 (iwork, npts, inrng, istart, max, min, mxval, lwidth) |
| Scan number of points. | |
| subroutine | fi7517 (iret, iwork, npts, istrtb, inrnga, maxb, minb, mxvalb, lwideb) |
| Scan backward. | |
| subroutine | fi7518 (iret, iwork, npts, istrta, inrnga, inrngb, maxa, mina, lwidea, mxvala) |
| Scan forward. | |
| subroutine | w3fi75 (ibitl, itype, itoss, fld, ifld, ibmap, ibdsfl, npts, bds11, ipfld, pfld, len, lenbds, iberr, pds, igds) |
| This routine packs a grib field and forms octets(1-11) of the binary data section (bds). | |
| subroutine fi7501 | ( | integer, dimension(*) | iwork, |
| character(len=1), dimension(*) | ipfld, | ||
| npts, | |||
| integer, dimension(*) | ibdsfl, | ||
| character*1, dimension(*) | bds11, | ||
| integer | len, | ||
| integer | lenbds, | ||
| character*1, dimension(*) | pds, | ||
| real | refnce, | ||
| integer | iscal2, | ||
| integer | kwide | ||
| ) |
BDS second order packing.
Program history log:
| [in] | IWORK | Integer source array |
| [in] | NPTS | Number of points in iwork |
| [in] | IBDSFL | Flags |
| [out] | IPFLD | Contains bds from byte 12 on |
| [out] | BDS11 | Contains first 11 bytes for bds |
| [out] | LEN | Number of bytes from 12 on |
| [out] | LENBDS | Total length of bds |
| PDS | ||
| REFNCE | ||
| ISCAL2 | ||
| KWIDE |
| subroutine fi7502 | ( | integer, dimension(*) | iwork, |
| integer | istart, | ||
| integer | npts, | ||
| integer | isame | ||
| ) |
Second order same value collection.
Program history log:
| [in] | IWORK | Array containing source data |
| [in] | ISTART | Starting location for this test |
| [in] | NPTS | Number of points in iwork |
| [out] | ISAME | Number of sequential points having the same value |
| subroutine fi7503 | ( | integer, dimension(*) | iwork, |
| character*1, dimension(*) | ipfld, | ||
| npts, | |||
| integer, dimension(*) | ibdsfl, | ||
| character*1, dimension(*) | bds11, | ||
| integer | len, | ||
| integer | lenbds, | ||
| character*1, dimension(*) | pds, | ||
| real | refnce, | ||
| integer | iscal2, | ||
| integer | kwide, | ||
| integer, dimension(*) | igds | ||
| ) |
Row by row, col by col packing.
Program history log:
| [in] | IWORK | Integer source array |
| [in] | NPTS | Number of points in iwork |
| [in] | IBDSFL | Flags |
| [out] | IPFLD | Contains bds from byte 12 on |
| [out] | BDS11 | Contains first 11 bytes for bds |
| [out] | LEN | Number of bytes from 12 on |
| [out] | LENBDS | Total length of bds |
| PDS | ||
| REFNCE | ||
| ISCAL2 | ||
| KWIDE | ||
| IGDS |
| subroutine fi7505 | ( | integer | n, |
| integer | nbits | ||
| ) |
Determine number of bits to contain value.
Program history log:
| [in] | N | Integer value |
| [out] | NBITS | Number of bits to contain n |
| subroutine fi7513 | ( | integer, dimension(*) | iwork, |
| integer | istart, | ||
| integer | npts, | ||
| integer | max, | ||
| integer | min, | ||
| integer | inrnge | ||
| ) |
Select block of data for packing.
Program history log:
| [in] | IWORK | |
| [in] | ISTART | |
| [in] | NPTS | |
| [out] | MAX | |
| [out] | MIN | |
| [out] | INRNGE |
| subroutine fi7516 | ( | integer, dimension(*) | iwork, |
| integer | npts, | ||
| integer | inrng, | ||
| integer | istart, | ||
| integer | max, | ||
| integer | min, | ||
| integer | mxval, | ||
| integer | lwidth | ||
| ) |
Scan number of points.
Program history log:
| [in] | IWORK | Data array |
| [in] | NPTS | Number of points in data array |
| [in] | ISTART | Starting location in data |
| [out] | INRNG | Number of points selected |
| [out] | MAX | Maximum value of points |
| [out] | MIN | Minimum value of points |
| [out] | MXVAL | Maximum value that can be contained in lwidth bits |
| [out] | LWIDTH | Number of bits to contain max diff |
| subroutine fi7517 | ( | iret, | |
| integer, dimension(*) | iwork, | ||
| integer | npts, | ||
| integer | istrtb, | ||
| integer | inrnga, | ||
| integer | maxb, | ||
| integer | minb, | ||
| integer | mxvalb, | ||
| integer | lwideb | ||
| ) |
Scan backward.
Program history log:
| [in] | IWORK | |
| [in] | ISTRTB | |
| [in] | NPTS | |
| [in] | INRNGA | |
| [out] | IRET | |
| [out] | MAXB | |
| [out] | MINB | |
| MXVALB | ||
| LWIDEB |
| subroutine fi7518 | ( | iret, | |
| integer, dimension(*) | iwork, | ||
| integer | npts, | ||
| integer | istrta, | ||
| integer | inrnga, | ||
| inrngb, | |||
| integer | maxa, | ||
| integer | mina, | ||
| integer | lwidea, | ||
| integer | mxvala | ||
| ) |
Scan forward.
Program history log:
| IWORK | ||
| ISTRTA | ||
| INRNGA | ||
| INRNGB | ||
| MAXA | ||
| MINA | ||
| LWIDEA | ||
| MXVALA | ||
| [in] | NPTS | |
| [out] | IRET |
| subroutine w3fi75 | ( | ibitl, | |
| itype, | |||
| itoss, | |||
| real, dimension(*) | fld, | ||
| integer, dimension(*) | ifld, | ||
| integer, dimension(*) | ibmap, | ||
| integer, dimension(*) | ibdsfl, | ||
| npts, | |||
| character * 1, dimension(11) | bds11, | ||
| character(len=1), dimension(*) | ipfld, | ||
| character * 1, dimension(*) | pfld, | ||
| len, | |||
| lenbds, | |||
| iberr, | |||
| character * 1, dimension(*) | pds, | ||
| integer, dimension(*) | igds | ||
| ) |
This routine packs a grib field and forms octets(1-11) of the binary data section (bds).
Program history log:
| [in] | IBITL |
|
| [in] | ITYPE |
|
| [in] | ITOSS |
|
| [in] | FLD | Real array of data to be packed if itype=0 |
| [in] | IFLD | Integer array to be packed if itype=1 |
| [in] | IBMAP | Bit map supplied from user |
| [in] | IBDSFL | Integer array containing table 11 flag info BDS octet 4:
|
| [in] | NPTS | Number of gridpoints in array to be packed |
| [in] | IGDS | Array of gds information |
| [out] | BDS11 | First 11 octets of bds |
| [out] | PFLD | Packed grib field |
| [out] | LEN | Length of pfld |
| [out] | LENBDS | Length of bds |
| [out] | IBERR | 1, error converting ieee f.p. number to ibm370 f.p. |
| IPFLD | ||
| PDS |