Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Number of samples in "Average"


Otemohu Dec 20, 2012 12:25 PM

Hi all,

I would like to know if there is a command line to display the number of samples that is used to calculate the Average.

This is for the NDVI calculation with a filter on the PAR radiation for filtering.
With a Scanrate every 30sec, I do the following:
If PAR > 500 Then
NDVI = (NiR - red) / (NiR + red)
EndIf

Each day, at midnight, the datalogger stores the NDVI mean as following:
DataTable (NDVI_day,True,-1)
DataInterval(0,1,Day,0)
Average(1,NDVI,FP2,False)
StdDev(1,NDVI,FP2,False)
EndTable

So when PAR < 500, there is non NDVI value. At the daytime scale, how can I retrieve the number of values that are used to calculate the daily average?

Daniel


Sam Dec 21, 2012 03:22 AM

With the example you've given, the number of samples is:

1 day * 24 hr/day * 60 min/hr * 2 samples/min = 2880 samples per "average"


Otemohu Dec 21, 2012 10:19 PM

Ok, you're right. I have to put a DisVar in my table as following:

If PAR > 500 Then
NDVI_DisVar = False
NDVI = (NiR - red) / (NiR + red)
NDVI_smpl = 1
Else
NDVI_DisVar = True
EndIf

Each day, at midnight, the datalogger stores the NDVI mean as following:
DataTable (NDVI_day,True,-1)
DataInterval(0,1,Day,0)
Average(1,NDVI,FP2,NDVI_DisVar)
StdDev(1,NDVI,FP2,NDVI_DisVar)
Totalize(1,NDVI_smpl,FP2,NDVI_DisVar)
EndTable

Is it OK?

Log in or register to post/reply in the forum.