libsim  Versione8.0.0

◆ arrayof_gridinfo_packarray()

subroutine arrayof_gridinfo_packarray ( type(arrayof_gridinfo)  this)

Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents.

The value of this::overalloc remains unchanged. After the call to the method, the object can continue to be used, extended and shortened as before. If the object is empty the array is allocated to zero length.

Parametri
thisobject to be packed

Definizione alla linea 651 del file gridinfo_class.F90.

651  IF (editionnumber == 2) THEN
652 
653  CALL grib_get(gaid,'typeOfProcessedData',tprocdata,status)
654  CALL grib_get(gaid,'typeOfTimeIncrement',ttimeincr,status)
655  IF (ttimeincr == 255) ttimeincr = 2 ! fix some MeteosWiss data
656 ! if analysis-like statistically processed data is encountered, the
657 ! reference time must be shifted to the end of the processing period
658  IF (status == grib_success .AND. ttimeincr == 1) THEN
659 ! old libsim convention, to be removed sometime in the future
660  CALL grib_get(gaid,'lengthOfTimeRange',p2g)
661  CALL grib_get(gaid,'indicatorOfUnitForTimeRange',unit)
662  CALL g2_interval_to_second(unit, p2g, p2)

Generated with Doxygen.