org.n52.operation.smac
Class ReflectanceAlgorithm

java.lang.Object
  extended by org.n52.math.AbstractAlgorithm
      extended by org.n52.operation.smac.ReflectanceAlgorithm
All Implemented Interfaces:
Algorithm

public class ReflectanceAlgorithm
extends AbstractAlgorithm
implements Algorithm

Algorithm to calculate the reflectance based on the radiance and the position on earth Intended to be used for MSG imagery.

Copied from ReflectanceCalculator.cpp by Bas Retsios. Simplified the code by using the SunAngle class by Jan Hendrikse.

Author:
Wim Koolhoven

Method Summary
 double calculate(double[] params)
          calculates the result of the Algorithm for these parameters.
 
Methods inherited from class org.n52.math.AbstractAlgorithm
getDescription, getDocURL, getName, getNrParams, getParamDescription, getParamName, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.math.Algorithm
getDescription, getDocURL, getName, getNrParams, getParamDescription, getParamName, getVersion
 

Method Detail

calculate

public double calculate(double[] params)
Description copied from interface: Algorithm
calculates the result of the Algorithm for these parameters. Calling the Algorithm multiple times with the same params has to be consistent

Specified by:
calculate in interface Algorithm
Parameters:
params - the Array has to have as many elements as specified with Algorithm.getNrParams()
Returns:
the result