DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating channel over a number of value or time period

Hi,

 

I have a measurement file from a weather station. This station measure all 30 mn a temperature, a solar radiation.

 

I want to integrate the solar radiation over one day (or for the last 48 value) , each day .

 

Have you a idea how to do this in a script ?

 

Thank you for your help

 

 

0 Kudos
Message 1 of 3
(1,157 Views)

Hi,

 

If you have the time channel, it is quite easy.

Let:

  • Group/TimeChan be the time channel (0 s, 1,800 s, 3,600 s, 5,400 s)
  • Group/MeasChan be the channel you want to integrate
  • Group/IntChan be the desired output (the integral of MeasChan)

The code is:

ChnIntegrate("Group/TimeChan", "Group/MeasChan", "Group/IntChan", "TrapezoidalRule", 0, False, 0)

 

You can also access the integral function by GUI from Analysis Panel (from top menu, choose Basic -> Integrate) 

0 Kudos
Message 2 of 3
(1,128 Views)

Hi panta1978,

 

This method is going if you want to integrate the complete channel. 

I want to integrate the last 48 points or measurement. In the smooth function you can choose the number of sample (only previous channel and 48 points for example).

VGEIEBau_0-1612191648484.png

 

I search the same function for integrating the last 48 measurements.

 

regards

0 Kudos
Message 3 of 3
(1,100 Views)