First you need to extract the data. For example:
this is the electric intensity.
then you can sum them using
E2sum=sum(E2). It will sum up all the data into one value.
Not sure what is the physical meaning of this operation.
There vidoes for scripting: