|
libsim Versione 8.0.0
|
◆ grid_id_encode_data()
Encode a data array into a grid_id object. The input array field must have a size matching the size of the dataset.
Definizione alla linea 977 del file grid_id_class.F90. 978! these grib_sets are alredy done in gridinfo_export, but it seems
979! that it is necessary to repeat them here, they can fail with
980! unstructured grids, thus ierr
981#ifdef DEBUG
982CALL l4f_log(l4f_debug, 'grib_api, Ni,Nj:'//t2c(SIZE(field,1))//','//t2c(SIZE(field,2)))
983#endif
984CALL grib_set(gaid,'Ni',SIZE(field,1), ierr)
985CALL grib_set(gaid,'Nj',SIZE(field,2), ierr)
986
987! Transfer data field changing scanning mode from 64
988IF (iscansnegatively == 0) THEN
989 x1 = 1
990 x2 = SIZE(field,1)
991 xs = 1
992ELSE
993 x1 = SIZE(field,1)
994 x2 = 1
995 xs = -1
996ENDIF
997IF (jscanspositively == 0) THEN
998 y1 = SIZE(field,2)
|