stella.util
Class PointingFunction.FullModel

java.lang.Object
  extended by stella.util.PointingFunction
      extended by stella.util.PointingFunction.FullModel
All Implemented Interfaces:
VectorFunction
Enclosing class:
PointingFunction

public static class PointingFunction.FullModel
extends PointingFunction

The extended pointing model for version zero. No docs for that. Estimate follows:

       Δaz=AAN·sin(A)·ctg(Z)-AAE·cos(A)·ctg(Z)
       +NPAE·ctg(Z)-BNP/sin(Z)+AES·sin(A)+AEC·cos(A)+
       AS2A·sin(2A)·ctg(Z)+AC2AAOFF·cos(2A)·ctg(Z)+
       AS3A·sin(3A)·ctg(Z)+AC3AAOFF·cos(3A)·ctg(Z)+
       AOFF
       
Δzd=ZAN·cos(A)+ZAE·sin(A)+ ZES·sin(Z)+ZEC·cos(Z)+ ZS2A·sin(2A)+ZC2A·cos(2A)+ ZS3A·sin(3A)+ZC3A·cos(3A)+ ZS4A·sin(4A)+ZC4A·cos(4A)+ C5/sin(Z)+ZOFF
Note that the pilar model is using the zenith distance instead of the more standard elevation (Z=90-El).


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.util.PointingFunction
PointingFunction.ClassicModel, PointingFunction.ExtendedModel, PointingFunction.FullModel
 
Field Summary
static Map<String,Double> MAPPING
          Mapping of parameter names to values.
 
Fields inherited from class stella.util.PointingFunction
POINTINGMODELS
 
Constructor Summary
PointingFunction.FullModel()
           
 
Method Summary
 VectorG evaluate(VectorG nautz)
          The classic pointing model expects the nautic azimuth in the first argument and the zenith distance in the second, both in degrees.
 String getModelName()
          Returns the name of this model.
 Set<String> getParameterNames()
          Returns the parameter names as known by pilar.
 boolean setParameter(String name, double value)
          Sets a given parameter to a certain value.
 
Methods inherited from class stella.util.PointingFunction
argumentDimension, createFromType, functionDimension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPPING

public static final Map<String,Double> MAPPING
Mapping of parameter names to values.

Constructor Detail

PointingFunction.FullModel

public PointingFunction.FullModel()
Method Detail

getModelName

public String getModelName()
Returns the name of this model. This is used in querying the parameters from Pilar.

Specified by:
getModelName in class PointingFunction

getParameterNames

public Set<String> getParameterNames()
Returns the parameter names as known by pilar.

Specified by:
getParameterNames in class PointingFunction

setParameter

public boolean setParameter(String name,
                            double value)
Sets a given parameter to a certain value.

Specified by:
setParameter in class PointingFunction
Returns:
True, if the parameter is found.

evaluate

public VectorG evaluate(VectorG nautz)
The classic pointing model expects the nautic azimuth in the first argument and the zenith distance in the second, both in degrees. It returns the correction (pointing_true=argument+return_value) to the nautic azimuth in the first argument and the correction to zenith distance in the second.

Parameters:
nautz - Two-dim vector with nautic azimuth and zenith distance in degrees.
Returns:
Correction to pointing in Pilar units, normally degrees.