Create a new message in memory from an integer or character array containting the coded message. More...
Public Member Functions | |
subroutine | codes_new_from_message_int4 (msgid, message, status) |
Create a new message in memory from an integer array containting the coded message. More... | |
subroutine | codes_new_from_message_char (msgid, message, status) |
Create a new message in memory from a character array containting the coded message. More... | |
Create a new message in memory from an integer or character array containting the coded message.
The message can be accessed through its ID and it will be available
until codes_release is called. A reference to the original coded
message is kept in the new message structure.
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.
Examples: grib_copy_message.f90
id | ID of the message loaded in memory |
message | array containing the coded message |
status | CODES_SUCCESS if OK, integer value on error |
subroutine codes_new_from_message_char | ( | integer(kind=kindofint), intent(out) | msgid, |
character(len=1), dimension(:), intent(in) | message, | ||
integer(kind=kindofint), intent(out), optional | status | ||
) |
Create a new message in memory from a character array containting the coded message.
The message can be accessed through its msgid and it will be available
until codes_release is called. A reference to the original coded
message is kept in the new message structure.
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.
Examples: grib_copy_message.f90
msgid | id of the message loaded in memory |
message | character array containing the coded message |
status | CODES_SUCCESS if OK, integer value on error |
subroutine codes_new_from_message_int4 | ( | integer(kind=kindofint), intent(out) | msgid, |
integer(kind=4), dimension(:), intent(in) | message, | ||
integer(kind=kindofint), intent(out), optional | status | ||
) |
Create a new message in memory from an integer array containting the coded message.
The message can be accessed through its msgid and it will be available
until codes_release is called. A reference to the original coded
message is kept in the new message structure.
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.
Examples: grib_copy_message.f90
msgid | id of the message loaded in memory |
message | integer array containing the coded message |
status | CODES_SUCCESS if OK, integer value on error |