libsim  Versione7.2.3

◆ varbufr2vargrib()

subroutine, public volgrid6d_var_class::varbufr2vargrib ( type(vol7d_var), dimension(:), intent(in)  varbufr,
type(volgrid6d_var), dimension(:), intent(out)  vargrib,
type(conv_func), dimension(:), pointer  c_func,
type(grid_id), intent(in), optional  grid_id_template 
)

Convert a vol7d_var array object into a physically equivalent volgrid6d_var array object.

This method converts a bufr-like array of physical variables vargrib, to an array of grib-like variables varbufr. Unlike the opposite method vargrib2varbufr, in this case the conversion is not uniqe and at the moment the first matching grib-like variable is chosen, without any control over the choice process. The output array must have enough room for the converted variables. The method additionally allocates a conv_func array object of the same size, which can successively be used to convert the numerical values of the fields associated to varbufr to the corresponding fields in the grib-like representation. c_func will have to be deallocated by the calling procedure. If a conversion is not successful, the corresponding output variable is set to volgrid6d_var_miss and the conversion function to conv_func_miss.

Parametri
[in]varbufrarray of input bufr-like variables
[out]vargribarray of output grib-like variables
c_funcpointer to an array of the corresponding conv_func objects, allocated in the method
[in]grid_id_templatea template (typically grib_api) to which data will be finally exported, it helps in improving variable conversion

Definizione alla linea 1182 del file volgrid6d_var_class.F90.


Generated with Doxygen.