SURFEX v8.1
General documentation of Surfex
Data Types | Functions/Subroutines | Variables
grib_api_interface Module Reference

Data Types

interface  igrib_get_value
 
interface  igrib_read_bytes
 
interface  igrib_set_value
 
interface  igrib_write_bytes
 

Functions/Subroutines

subroutine igrib_get_int8 (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_get_int (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_get_real4 (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_get_real8 (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_get_char (KHANDLE, CDKEY, CDVAL, KRET)
 
subroutine igrib_get_int_array (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_get_real4_array (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_get_real8_array (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_set_int8 (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_set_int (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_set_real4 (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_set_real8 (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_set_char (KHANDLE, CDKEY, CDVAL, KRET)
 
subroutine igrib_set_int8_array (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_set_int_array (KHANDLE, CDKEY, KVAL, KRET)
 
subroutine igrib_set_real4_array (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine igrib_set_real8_array (KHANDLE, CDKEY, PVAL, KRET)
 
subroutine, public igrib_open_file (KFILE, CDPATH, CDMODE)
 
subroutine, public igrib_close_file (KFILE)
 
subroutine, public igrib_read_from_file (KFILE, KBUF, KBYTES, KRET)
 
subroutine igrib_read_bytes_int (KFILE, KBUF, KBYTES, KRET)
 
subroutine igrib_read_bytes_real4 (KFILE, PBUF, KBYTES, KRET)
 
subroutine igrib_read_bytes_real8 (KFILE, PBUF, KBYTES, KRET)
 
subroutine igrib_read_bytes_char (KFILE, CDBUF, KBYTES, KRET)
 
subroutine igrib_write_bytes_int (KFILE, KBUF, KBYTES)
 
subroutine igrib_write_bytes_real4 (KFILE, PBUF, KBYTES)
 
subroutine igrib_write_bytes_real8 (KFILE, PBUF, KBYTES)
 
subroutine igrib_write_bytes_char (KFILE, CDBUF, KBYTES)
 
subroutine, public igrib_new_from_file (KFILE, KHANDLE, KRET)
 
subroutine, public igrib_new_from_message (KHANDLE, KBUF)
 
subroutine, public igrib_release (KHANDLE)
 
subroutine, public igrib_get_message_size (KHANDLE, KBYTES)
 
subroutine, public igrib_get_message (KHANDLE, KGRIB)
 
subroutine, public igrib_new_from_samples (KHANDLE, CDNAME, KRET)
 
subroutine, public igrib_clone (KHANDLE1, KHANDLE2)
 
subroutine err_msg (KRET)
 
subroutine, public igrib_is_defined (KHANDLE, CDKEY, LDDEFINED, KRET)
 

Variables

integer, parameter, public jpgrib_success =GRIB_SUCCESS
 
integer, parameter, public jpgrib_end_of_file =GRIB_END_OF_FILE
 
integer, parameter, public jpgrib_buffer_too_small =GRIB_BUFFER_TOO_SMALL
 
integer, parameter, public jpksize_t =JPIM
 
logical, public lgrib_api_trace = .FALSE.
 

Function/Subroutine Documentation

◆ err_msg()

subroutine grib_api_interface::err_msg ( integer(kind=jpim), intent(in)  KRET)
private

Definition at line 929 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_clone()

subroutine, public grib_api_interface::igrib_clone ( integer(kind=jpim), intent(in)  KHANDLE1,
integer(kind=jpim), intent(out)  KHANDLE2 
)

Definition at line 908 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_close_file()

subroutine, public grib_api_interface::igrib_close_file ( integer(kind=jpim), intent(in)  KFILE)

Definition at line 546 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_char()

subroutine grib_api_interface::igrib_get_char ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
character(len=*), intent(out)  CDVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 169 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_int()

subroutine grib_api_interface::igrib_get_int ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpim), intent(out)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 97 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_int8()

subroutine grib_api_interface::igrib_get_int8 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpib), intent(out)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 73 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_int_array()

subroutine grib_api_interface::igrib_get_int_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpim), dimension(:), intent(out)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 192 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_message()

subroutine, public grib_api_interface::igrib_get_message ( integer(kind=jpim), intent(in)  KHANDLE,
integer(kind=jpim), dimension(:), intent(out)  KGRIB 
)

Definition at line 853 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_message_size()

subroutine, public grib_api_interface::igrib_get_message_size ( integer(kind=jpim), intent(in)  KHANDLE,
integer(kind=jpksize_t), intent(out)  KBYTES 
)

Definition at line 831 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_get_real4()

subroutine grib_api_interface::igrib_get_real4 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprm), intent(out)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 121 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_real4_array()

subroutine grib_api_interface::igrib_get_real4_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprm), dimension(:), intent(out)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 217 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_real8()

subroutine grib_api_interface::igrib_get_real8 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprd), intent(out)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 145 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_get_real8_array()

subroutine grib_api_interface::igrib_get_real8_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprd), dimension(:), intent(out)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 242 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_is_defined()

subroutine, public grib_api_interface::igrib_is_defined ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
logical, intent(out)  LDDEFINED,
integer(kind=jpim), intent(out), optional  KRET 
)

Definition at line 940 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_new_from_file()

subroutine, public grib_api_interface::igrib_new_from_file ( integer(kind=jpim), intent(in)  KFILE,
integer(kind=jpim), intent(out)  KHANDLE,
integer(kind=jpim), intent(out), optional  KRET 
)

Definition at line 764 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_new_from_message()

subroutine, public grib_api_interface::igrib_new_from_message ( integer(kind=jpim), intent(out)  KHANDLE,
integer(kind=jpim), dimension(:), intent(in)  KBUF 
)

Definition at line 789 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_new_from_samples()

subroutine, public grib_api_interface::igrib_new_from_samples ( integer(kind=jpim), intent(out)  KHANDLE,
character(len=*), intent(in)  CDNAME,
integer(kind=jpim), intent(out), optional  KRET 
)

Definition at line 885 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_open_file()

subroutine, public grib_api_interface::igrib_open_file ( integer(kind=jpim), intent(out)  KFILE,
character(len=*), intent(in)  CDPATH,
character(len=1), intent(in)  CDMODE 
)

Definition at line 525 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_read_bytes_char()

subroutine grib_api_interface::igrib_read_bytes_char ( integer(kind=jpim), intent(in)  KFILE,
character(len=1), dimension(:), intent(out)  CDBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES,
integer(kind=jpim), intent(out)  KRET 
)
private

Definition at line 656 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_read_bytes_int()

subroutine grib_api_interface::igrib_read_bytes_int ( integer(kind=jpim), intent(in)  KFILE,
integer(kind=jpim), dimension(:), intent(out)  KBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES,
integer(kind=jpim), intent(out)  KRET 
)
private

Definition at line 590 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_read_bytes_real4()

subroutine grib_api_interface::igrib_read_bytes_real4 ( integer(kind=jpim), intent(in)  KFILE,
real(kind=jprm), dimension(:), intent(out)  PBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES,
integer(kind=jpim), intent(out)  KRET 
)
private

Definition at line 612 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_read_bytes_real8()

subroutine grib_api_interface::igrib_read_bytes_real8 ( integer(kind=jpim), intent(in)  KFILE,
real(kind=jprd), dimension(:), intent(out)  PBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES,
integer(kind=jpim), intent(out)  KRET 
)
private

Definition at line 634 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_read_from_file()

subroutine, public grib_api_interface::igrib_read_from_file ( integer(kind=jpim), intent(in)  KFILE,
integer(kind=jpim), dimension(:), intent(out)  KBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES,
integer(kind=jpim), intent(out), optional  KRET 
)

Definition at line 565 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_release()

subroutine, public grib_api_interface::igrib_release ( integer(kind=jpim), intent(in)  KHANDLE)

Definition at line 811 of file grib_api_interface.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ igrib_set_char()

subroutine grib_api_interface::igrib_set_char ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
character(len=*), intent(in)  CDVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 377 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_int()

subroutine grib_api_interface::igrib_set_int ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpim), intent(in)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 296 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_int8()

subroutine grib_api_interface::igrib_set_int8 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpib), intent(in)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 267 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_int8_array()

subroutine grib_api_interface::igrib_set_int8_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpib), dimension(:), intent(in)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 406 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_int_array()

subroutine grib_api_interface::igrib_set_int_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
integer(kind=jpim), dimension(:), intent(in)  KVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 438 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_real4()

subroutine grib_api_interface::igrib_set_real4 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprm), intent(in)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 325 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_real4_array()

subroutine grib_api_interface::igrib_set_real4_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprm), dimension(:), intent(in)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 470 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_real8()

subroutine grib_api_interface::igrib_set_real8 ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprd), intent(in)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 349 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_set_real8_array()

subroutine grib_api_interface::igrib_set_real8_array ( integer(kind=jpim), intent(in)  KHANDLE,
character(len=*), intent(in)  CDKEY,
real(kind=jprd), dimension(:), intent(in)  PVAL,
integer(kind=jpim), intent(out), optional  KRET 
)
private

Definition at line 494 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_write_bytes_char()

subroutine grib_api_interface::igrib_write_bytes_char ( integer(kind=jpim), intent(in)  KFILE,
character(len=1), dimension(:), intent(in)  CDBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES 
)
private

Definition at line 743 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_write_bytes_int()

subroutine grib_api_interface::igrib_write_bytes_int ( integer(kind=jpim), intent(in)  KFILE,
integer(kind=jpim), dimension(:), intent(in)  KBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES 
)
private

Definition at line 680 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_write_bytes_real4()

subroutine grib_api_interface::igrib_write_bytes_real4 ( integer(kind=jpim), intent(in)  KFILE,
real(kind=jprm), dimension(:), intent(in)  PBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES 
)
private

Definition at line 701 of file grib_api_interface.F90.

Here is the call graph for this function:

◆ igrib_write_bytes_real8()

subroutine grib_api_interface::igrib_write_bytes_real8 ( integer(kind=jpim), intent(in)  KFILE,
real(kind=jprd), dimension(:), intent(in)  PBUF,
integer(kind=jpksize_t), intent(inout)  KBYTES 
)
private

Definition at line 722 of file grib_api_interface.F90.

Here is the call graph for this function:

Variable Documentation

◆ jpgrib_buffer_too_small

integer, parameter, public grib_api_interface::jpgrib_buffer_too_small =GRIB_BUFFER_TOO_SMALL

Definition at line 59 of file grib_api_interface.F90.

◆ jpgrib_end_of_file

integer, parameter, public grib_api_interface::jpgrib_end_of_file =GRIB_END_OF_FILE

Definition at line 58 of file grib_api_interface.F90.

◆ jpgrib_success

integer, parameter, public grib_api_interface::jpgrib_success =GRIB_SUCCESS

Definition at line 57 of file grib_api_interface.F90.

◆ jpksize_t

integer parameter public grib_api_interface::jpksize_t =JPIM

Definition at line 63 of file grib_api_interface.F90.

◆ lgrib_api_trace

logical, public grib_api_interface::lgrib_api_trace = .FALSE.

Definition at line 68 of file grib_api_interface.F90.