libsim  Versione8.0.0

◆ gridinfo_export()

subroutine gridinfo_class::gridinfo_export ( type(gridinfo_def), intent(inout)  this)
private

Export gridinfo descriptors information into a message/band on file.

This method exports the contents of the descriptors of the gridinfo object this in the grid_id object thisgaid, previously set, for the successive write to a file. The information stored in the descriptors of gridinfo object this is inserted, when possible, in the grid_id object.

Parametri
[in,out]thisgridinfo object

Definizione alla linea 978 del file gridinfo_class.F90.

978  g2cosmo_behavior = len_trim(env_var) > 0
979  IF (g2cosmo_behavior) THEN
980  CALL grib_set(gaid,'typeOfProcessedData',0)
981  ELSE
982  CALL grib_set(gaid,'typeOfTimeIncrement',1)
983  ENDIF
984  CALL grib_set(gaid,'indicatorOfUnitForTimeRange',unit)
985  CALL grib_set(gaid,'lengthOfTimeRange',p2)
986 
987 ! warn about local use
988  IF (this%timerange >= 192) THEN
989  CALL l4f_log(l4f_warn, &
990  'coding in grib2 a nonstandard typeOfStatisticalProcessing '// &
991  t2c(this%timerange))
992  ENDIF
993  ELSE ! bad timerange
994  CALL l4f_log(l4f_error, &
995  'Timerange with 0>p1>p2 cannot be exported in grib2')
996  CALL raise_fatal_error()
997  ENDIF
998  ELSE
999  CALL l4f_log(l4f_error, &
1000  'typeofstatisticalprocessing not supported: '//TRIM(to_char(this%timerange)))
1001  CALL raise_fatal_error()
1002  ENDIF
1003 
1004 ELSE
1005  CALL l4f_log(L4F_ERROR,'gribeditionnumber '//t2c(EditionNumber)//' not supported')
1006  CALL raise_fatal_error()

Generated with Doxygen.