libsim  Versione6.3.0

◆ gridinfo_encode_data()

subroutine gridinfo_encode_data ( type(gridinfo_def), intent(inout)  this,
real, dimension(:,:), intent(in)  field 
)

Encode a data array into a grid_id object associated to a gridinfo object.

This method encodes a 2-d array of proper size into the grid_id object associated to a gridinfo object. This can work if the gridinfo object has been correctly initialised and associated to a grid_id from an on-disk (template) dataset (grib_api or gdal file). The shape of the array must be conformal to the size of the grid previously set in the gridinfo object descriptors.

Parametri
[in,out]thisgridinfo object
[in]fielddata array to be encoded

Definizione alla linea 1107 del file gridinfo_class.F90.

1107  ltype = lt
1108  scalev = 0
1109  scalef = 0
1110 ELSE IF (lt == 256 .AND. l == imiss) THEN ! special case for cloud level -> surface
1111  ltype = 1
1112  scalev = 0
1113  scalef = 0
1114 ELSE
1115  ltype = lt
1116  scalev = l
1117  IF (any(ltype == height_level)) THEN
1118  scalef = 3
1119  ELSE
1120  scalef = 0
1121  ENDIF

Generated with Doxygen.