|
libsim Versione 8.0.0
|
◆ gridinfo_export()
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.
Definizione alla linea 967 del file gridinfo_class.F90. 968! Set reasonable time unit
969 CALL timerange_v7d_to_g2(this%p2,p2,unit)
970 CALL grib_set(gaid,'indicatorOfUnitOfTimeRange',unit)
971 CALL grib_set(gaid,'forecastTime',0)
972 CALL code_endoftimeinterval(reftime)
973! Successive times processed have same forecast time, start time of
974! forecast is incremented
975 CALL grib_set(gaid,'typeOfStatisticalProcessing',this%timerange)
976! typeOfTimeIncrement to be replaced with typeOfProcessedData
977 CALL getenv('LIBSIM_G2COSMO_BEHAVIOR', env_var)
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()
|