libsim  Versione6.3.0
subroutine vol7d_compute_stat_proc_agg ( type(vol7d), intent(inout)  this,
type(vol7d), intent(out)  that,
integer, intent(in)  stat_proc,
type(timedelta), intent(in)  step,
type(datetime), intent(in), optional  start,
type(timedelta), intent(in), optional  max_step,
logical, intent(in), optional  weighted,
type(vol7d), intent(inout), optional  other 
)

Method for statistically processing a set of instantaneous data.

This method performs statistical processing by aggregation of instantaneous data. Only floating point single or double precision data are processed.

The output that vol7d object contains elements from the original volume this satisfying the conditions

Output data will have timerange of type stat_proc, and p2 = step. The supported statistical processing methods (parameter stat_proc) are:

  • 0 average
  • 2 maximum
  • 3 minimum
  • 4 difference
  • 6 standard deviation
  • 201 mode (only for wind direction sectors)

In the case of average, it is possible to weigh the data proportionally to the length of the time interval for which every single value is valid, i.e. halfway between the time level of the value itself and the time of its nearest valid neighbours (argument weighted). A maximum distance in time for input valid data can be assigned with the optional argument max_step, in order to filter datasets with too long "holes".

Parametri
[in,out]thisvolume providing data to be computed, it is not modified by the method, apart from performing a vol7d_alloc_vol on it
[out]thatoutput volume which will contain the computed data
[in]stat_proctype of statistical processing to be computed (from grib2 table)
[in]steplength of the step over which the statistical processing is performed
[in]startstart of statistical processing interval
[in]max_stepmaximum allowed distance in time between two contiguougs valid data within an interval, for the interval to be eligible for statistical processing
[in]weightedif provided and .TRUE., the statistical process is computed, if possible, by weighting every value with a weight proportional to its validity interval
[in,out]otheroptional volume that, on exit, is going to contain the data that did not contribute to the accumulation computation

Definizione alla linea 672 del file vol7d_class_compute.F90.


Generated with Doxygen.