|
NCEPLIBS-w3emc
2.11.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. More... | |
| subroutine | fi7502 (IWORK, ISTART, NPTS, ISAME) |
| Second order same value collection. More... | |
| subroutine | fi7503 (IWORK, IPFLD, NPTS, IBDSFL, BDS11, LEN, LENBDS, PDS, REFNCE, ISCAL2, KWIDE, IGDS) |
| Row by row, col by col packing. More... | |
| subroutine | fi7505 (N, NBITS) |
| Determine number of bits to contain value. More... | |
| subroutine | fi7513 (IWORK, ISTART, NPTS, MAX, MIN, INRNGE) |
| Select block of data for packing. More... | |
| subroutine | fi7516 (IWORK, NPTS, INRNG, ISTART, MAX, MIN, MXVAL, LWIDTH) |
| Scan number of points. More... | |
| subroutine | fi7517 (IRET, IWORK, NPTS, ISTRTB, INRNGA, MAXB, MINB, MXVALB, LWIDEB) |
| Scan backward. More... | |
| subroutine | fi7518 (IRET, IWORK, NPTS, ISTRTA, INRNGA, INRNGB, MAXA, MINA, LWIDEA, MXVALA) |
| Scan forward. More... | |
| 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). More... | |
| 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 |