NCEPLIBS-g2 4.0.0
Loading...
Searching...
No Matches
g2cf.F90 File Reference

Module for the NCEPLIBS-g2 file-based GRIB2 API. More...

Go to the source code of this file.

Modules

module  g2cf
 Module for the NCEPLIBS-g2 file-based GRIB2 API.
 

Functions/Subroutines

character(len=(len(string)+1)) function g2cf::addcnullchar (string, nlen)
 Add a C_NULL_CHAR to a string to create a C compatible string.
 
integer function g2cf::g2cf_close (g2id)
 Close a GRIB2 file.
 
integer function g2cf::g2cf_inq (g2id, num_msg)
 Learn how many messages are in a GRIB2 file.
 
integer function g2cf::g2cf_inq_dim (g2id, msg_num, prod_num, dim_num, dimlen, name, val)
 Learn about a dimension.
 
integer function g2cf::g2cf_inq_msg (g2id, msg_num, discipline, num_fields, num_local, center, subcenter, master_version, local_version)
 Learn about a message are in a GRIB2 file.
 
integer function g2cf::g2cf_inq_msg_time (g2id, msg_num, sig_ref_time, year, month, day, hour, minute, second)
 Learn about message date/time.
 
integer function g2cf::g2cf_inq_prod (g2id, msg_num, prod_num, pds_template_len, pds_template, gds_template_len, gds_template, drs_template_len, drs_template)
 Learn about a product.
 
integer function g2cf::g2cf_open (path, mode, g2id)
 Open a GRIB2 file.
 
integer function g2cf::g2cf_open_index (data_file, index_file, mode, g2cid)
 Open a GRIB2 file using an exsiting index file (generated by the grb2index utility).
 
integer function g2cf::g2cf_set_log_level (log_level)
 Turn internal logging on.
 
character(len=nlen) function g2cf::stripcnullchar (cstring, nlen)
 Check cstring for a c null char, strip it off and return regular string.
 

Variables

integer, parameter g2cf::g2_max_drs_template_len = 55
 Maximum number of entries in a DRS template.
 
integer, parameter g2cf::g2_max_gds_template_len = 50
 Maximum number of entries in a GDS template.
 
integer, parameter g2cf::g2_max_name = 1024
 Maximum name length.
 
integer, parameter g2cf::g2_max_pds_template_len = 50
 Maximum number of entries in a PDS template.
 
integer, parameter g2cf::g2_noerr = 0
 Return value from functions when there is no error.
 

Detailed Description

Module for the NCEPLIBS-g2 file-based GRIB2 API.

Author
Edward Hartnett
Date
2020-16-12

Definition in file g2cf.F90.