|
NCEPLIBS-g2
3.4.5
|
This Fortran Module contains info on all the available GRIB2 Data Representation Templates used in Section 5 (DRS). More...
Data Types | |
| type | drstemplate |
Functions/Subroutines | |
| subroutine | extdrstemplate (number, list, nummap, map) |
| This subroutine generates the remaining octet map for a given Data Representation Template, if required. More... | |
| integer function | getdrsindex (number) |
| This function returns the index of specified Data Representation Template 5.NN (NN=number) in array templates. More... | |
| subroutine | getdrstemplate (number, nummap, map, needext, iret) |
| This subroutine returns DRS template information for a . More... | |
Variables | |
| integer, parameter | maxlen =200 |
| maximum number of octets in mapgrid More... | |
| integer, parameter | maxtemp =9 |
| maximum number of entries in the template More... | |
| type(drstemplate), dimension(maxtemp) | templates |
| template in type of drstemplate More... | |
This Fortran Module contains info on all the available GRIB2 Data Representation Templates used in Section 5 (DRS).
Each Template has three parts: The number of entries in the template (mapgridlen); A map of the template (mapgrid), which contains the number of octets in which to pack each of the template values; and a logical value (needext) that indicates whether the Template needs to be extended. In some cases the number of entries in a template can vary depending upon values specified in the "static" part of the template. ( See Template 5.1 as an example )
This module also contains two subroutines. Subroutine getdrstemplate returns the octet map for a specified Template number, and subroutine extdrstemplate will calculate the extended octet map of an appropriate template given values for the "static" part of the template. See docblocks below for the arguments and usage of these routines.
| type drstemplates::drstemplate |
Definition at line 43 of file drstemplates.f.
| Data Fields | ||
|---|---|---|
| integer, dimension(maxlen) | mapdrs | |
| integer | mapdrslen | |
| logical | needext | |
| integer | template_num | |
| subroutine drstemplates::extdrstemplate | ( | integer, intent(in) | number, |
| integer, dimension(*), intent(in) | list, | ||
| integer, intent(out) | nummap, | ||
| integer, dimension(*), intent(out) | map | ||
| ) |
This subroutine generates the remaining octet map for a given Data Representation Template, if required.
| [in] | number | NN, indicating the number of the Data Representation Template 5.NN that is being requested. |
| [in] | list | The list of values for each entry in the Data Representation Template 5.NN. |
| [out] | nummap | Number of entries in the Template |
| [out] | map | An array containing the number of octets that each template entry occupies when packed up into the GDS. |
Definition at line 207 of file drstemplates.f.
| integer function drstemplates::getdrsindex | ( | integer, intent(in) | number | ) |
This function returns the index of specified Data Representation Template 5.NN (NN=number) in array templates.
| [in] | number | NN, indicating the number of the Data Representation Template 5.NN that is being requested. |
Definition at line 129 of file drstemplates.f.
| subroutine drstemplates::getdrstemplate | ( | integer, intent(in) | number, |
| integer, intent(out) | nummap, | ||
| integer, dimension(*), intent(out) | map, | ||
| logical, intent(out) | needext, | ||
| integer, intent(out) | iret | ||
| ) |
This subroutine returns DRS template information for a .
specified Data Representation Template 5.NN.
| [in] | number | NN, indicating the number of the Data Representation Template 5.NN that is being requested. |
| [out] | nummap | Number of entries in the Template |
| [out] | map | An array containing the number of octets that each template entry occupies when packed up into the DRS. |
| [out] | needext | Logical variable indicating whether the Data Representation Template has to be extended. |
| [out] | iret | Error return code.
|
Definition at line 165 of file drstemplates.f.
| integer, parameter drstemplates::maxlen =200 |
maximum number of octets in mapgrid
Definition at line 39 of file drstemplates.f.
| integer, parameter drstemplates::maxtemp =9 |
maximum number of entries in the template
Definition at line 40 of file drstemplates.f.
| type(drstemplate), dimension(maxtemp) drstemplates::templates |
template in type of drstemplate
Simple Packing Complex Packing Complex Packing - Spatial Diff Simple Packing - Spectral Data Complex Packing - Spectral Data JPEG2000 Encoding PNG Encoding JPEG2000 Encoding PNG Encoding
Definition at line 50 of file drstemplates.f.