set_taxis

Function bepaal_tijdstap

  Determine timestep of given time axis.
  
  

CALL:

   [tijdstapeenheid, tijdstap] = bepaal_tijdstap(taxis, mode)
  
  

INPUT:

   taxis: Vector of Matlab datenum.
   mode: (Optional) string with possible values:
         'TE' (default) - Assume an equidistant timeseries, tijdstap is the
                          smallest found timestep, this is useful when the 
                          timeseries has missing values.
         otherwise      - If timestep is always equal --> TE timeseries.
                          Otherwise                   --> TN timeseries.
  
  

OUTPUT:

   tijdstapeenheid:  String with possible values, empty if TN timeseries:
                     - 'd' days
                     - 'min' minute
                     - 's' seconds
                     - 'cs' centiseconds
  
   tijdstap: Integer with timestep in tijdstapeenheid units, empty for 'TN'
   timeseries.
  
  

See also:

cmp_taxis
set_taxis