eccodes
 All Data Structures Namespaces Files Functions Groups Pages
Public Member Functions
eccodes::codes_read_from_file Interface Reference

Reads a message in the buffer array from the file opened with codes_open_file. More...

Public Member Functions

subroutine codes_read_from_file_int4 (ifile, buffer, nbytes, status)
 Reads a message in the buffer array from the file opened with codes_open_file. More...
 
subroutine codes_read_from_file_int4_size_t (ifile, buffer, nbytes, status)
 Reads a message in the buffer array from the file opened with codes_open_file. More...
 
subroutine codes_read_from_file_char (ifile, buffer, nbytes, status)
 Reads a message in the buffer array from the file opened with codes_open_file. More...
 
subroutine codes_read_from_file_char_size_t (ifile, buffer, nbytes, status)
 Reads a message in the buffer array from the file opened with codes_open_file. More...
 

Detailed Description

Reads a message in the buffer array from the file opened with codes_open_file.

In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with codes_get_error_string.

Parameters
ifileid of the opened file to be used in all the file functions.
bufferbuffer to be read
nbytesnumber of bytes to be read
statusCODES_SUCCESS if OK, integer value on error

Member Function/Subroutine Documentation

subroutine codes_read_from_file_char ( integer(kind=kindofint), intent(in)  ifile,
character(len=1), dimension(:), intent(out)  buffer,
integer(kind=kindofint), intent(inout)  nbytes,
integer(kind=kindofint), intent(out), optional  status 
)

Reads a message in the buffer array from the file opened with codes_open_file.

In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with codes_get_error_string.

Parameters
ifileid of the opened file to be used in all the file functions.
bufferbuffer to be read
nbytesnumber of bytes to be read
statusCODES_SUCCESS if OK, integer value on error
subroutine codes_read_from_file_char_size_t ( integer(kind=kindofint), intent(in)  ifile,
character(len=1), dimension(:), intent(out)  buffer,
integer(kind=kindofsize_t), intent(inout)  nbytes,
integer(kind=kindofint), intent(out), optional  status 
)

Reads a message in the buffer array from the file opened with codes_open_file.

In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with codes_get_error_string.

Parameters
ifileid of the opened file to be used in all the file functions.
bufferbuffer to be read
nbytesnumber of bytes to be read
statusCODES_SUCCESS if OK, integer value on error
subroutine codes_read_from_file_int4 ( integer(kind=kindofint), intent(in)  ifile,
integer(kind=4), dimension(:), intent(out)  buffer,
integer(kind=kindofint), intent(inout)  nbytes,
integer(kind=kindofint), intent(out), optional  status 
)

Reads a message in the buffer array from the file opened with codes_open_file.

In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with codes_get_error_string.

Parameters
ifileid of the opened file to be used in all the file functions.
bufferbinary buffer to be read
nbytesnumber of bytes to be read
statusCODES_SUCCESS if OK, integer value on error
subroutine codes_read_from_file_int4_size_t ( integer(kind=kindofint), intent(in)  ifile,
integer(kind=4), dimension(:), intent(out)  buffer,
integer(kind=kindofsize_t), intent(inout)  nbytes,
integer(kind=kindofint), intent(out), optional  status 
)

Reads a message in the buffer array from the file opened with codes_open_file.

In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with codes_get_error_string.

Parameters
ifileid of the opened file to be used in all the file functions.
bufferbinary buffer to be read
nbytesnumber of bytes to be read
statusCODES_SUCCESS if OK, integer value on error

The documentation for this interface was generated from the following file:
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.