libsim  Versione8.0.0

◆ gridinfo_encode_data()

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

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 1108 del file gridinfo_class.F90.

1108 
1109 CONTAINS
1110 
1111 SUBROUTINE g2_to_dballe(ltype, scalef, scalev, lt, l)
1112 integer,intent(in) :: ltype,scalef,scalev
1113 integer,intent(out) :: lt,l
1114 
1115 doubleprecision :: sl
1116 
1117 
1118 IF (ltype == 255 .OR. ltype == -1) THEN
1119  lt = imiss
1120  l = imiss
1121 ELSE IF (ltype <= 10 .OR. ltype == 101 .OR. (ltype >= 162 .AND. ltype <= 184)) THEN
1122  lt = ltype

Generated with Doxygen.