public class PointingModel extends PropertyContainer implements Initializable
Δaz=c_an*sin(az)*cot(z)-c_ae*cos(az)*cot(z)+c_npae*cot(z)-c_ca/sin(z)+c_aoff Δz=c_an*cos(az)+c_ae*sin(az)+c_flex*sin(z)+c_zoffIt follows from the classical alt/az pointing model:
Δaz=c_an*sin(az)*tan(h)-c_ae*cos(az)*tan(h)-c_npae*tan(h)+c_ca/cos(h)+c_aoff Δh=c_an*cos(az)-c_ae*sin(az)+c_flex*cos(h)+c_hoffIt remains questionable, if parameters
c_an c_ae are really
identical for both offsets, in most of the pointing models I came across,
they were different. Thus, this class uses two different parameters. Adding
additinal terms or removing terms is especially easy, just add an expression
to the appropriate KEY_AZMODEL or KEY_ALTMODEL. A second
question is how the measurement get into the object. Refer to appropriate
classes here, e.g. PointingModel.FileData.
Note that this class can in principle also be used for finding a temperature/heigth model for the focus, if proper changes in the fitting functions and usage of the correct data set is done.
| Modifier and Type | Class and Description |
|---|---|
static class |
PointingModel.FileData
An access class to a pointing model that reads data from a file.
|
static class |
PointingModel.PilarConverter
A helper class that converts the TCS-pointings into something readable.
|
private static class |
PointingModel.PointingDataModel
Connects a pointing model to the
DataModel framework. |
static class |
PointingModel.PseudoModel
We generate a test file for reconstructing the class.
|
static class |
PointingModel.Temperature
Takes a list of dates and interpolates the temperature sensors to this
times.
|
static class |
PointingModel.Wifsip
Utilitiy class to read in pointing data obtained on Robotel with the
Wifsip instrument.
|
| Modifier and Type | Field and Description |
|---|---|
private VectorG |
altboot
Average of the altitude solution in bootstrapping.
|
private double |
altbootmax
The rms maximum of the altitude solution, bootstrap fit..
|
private double |
altbootmin
The rms minimum of the altitude solution, bootstrap fit..
|
private double |
altbootrms
The rms value of the altitude solution, bootstrap fit..
|
private double |
altchi2
The chi-square value of the altitude solution.
|
private Jama.Matrix |
altcorrelation
The covariance matrix of the altitude solution devided by altsigma.
|
private Jama.Matrix |
altcovariance
The covariance matrix of the altitude solution.
|
private VectorG |
alterror
Errors of the altitude offset measurements or null if not available.
|
private VectorG |
altfit
The azimuth model fit.
|
private VectorG |
altmax
Maxima of the altitude solution in bootstrapping.
|
private VectorG |
altmin
Minima of the altitude solution in bootstrapping.
|
private Multidimensional[] |
altmodel
The altitude model, parsed from
KEY_ALTMODEL. |
private List<String> |
altnames
The names of the altitude parameters as a list.
|
private VectorG |
altoffset
The zenith distance offsets measured.
|
private double |
altqual
The quality of the altitude solution.
|
private VectorG |
altresiduals
Residuals of the altitude model.
|
private double |
altrms
The rms value of the altitude solution.
|
private VectorG |
altsigma
Sigma on the altitude solution, either covariance or bootstrap.
|
private VectorG |
altsigorg
Covariance sigma in altitude parameters in bootstrapping.
|
private VectorG |
altsolution
Solution of the altitude model, set with first call to
getAltitudeSolution(). |
private VectorG[] |
azalt
The azimuth and zenith distance of the measurements, radian 0=az 1=z.
|
private VectorG |
azboot
Average of the azimuth solution in bootstrapping.
|
private double |
azbootmax
The rms maximum of the azimuth solution, bootstrap fit.
|
private double |
azbootmin
The rms minimum of the azimuth solution, bootstrap fit.
|
private double |
azbootrms
The rms value of the azimuth solution, bootstrap fit.
|
private double |
azchi2
The chi-square value of the azimuth solution.
|
private Jama.Matrix |
azcorrelation
The covariance matrix of the azimuth solution devided by azsigma.
|
private Jama.Matrix |
azcovariance
The covariance matrix of the azimuth solution.
|
private VectorG |
azerror
Errors of the azimuth offset measurements or null if not available.
|
private VectorG |
azfit
The azimuth model fit.
|
private VectorG |
azmax
Maxima of the azimuth solution in bootstrapping.
|
private VectorG |
azmin
Minima of the azimuth solution in bootstrapping.
|
private Multidimensional[] |
azmodel
The azimuth model, parsed from
KEY_AZMODEL. |
private List<String> |
aznames
The names of the azimuth parameters as a list.
|
private VectorG |
azoffset
The azimuth offsets measured.
|
private double |
azqual
The quality of the azimuth solution.
|
private VectorG |
azresiduals
Residuals of the azimuth model.
|
private double |
azrms
The rms value of the azimuth solution.
|
private VectorG |
azsigma
Sigma on the azimuth solution, either covariance or bootstrap.
|
private VectorG |
azsigorg
Covariance sigma in azimuth parameters in bootstrapping.
|
private VectorG |
azsolution
Solution of the azimuth model, set with first call to
getAzimuthSolution(). |
private static String |
DEFALT20MODEL
The default expression for the altitude model, height above 20.
|
private static boolean |
DEFALTBOOTSTRAP
The default usage of bootstrapping.
|
private static String |
DEFALTCOUDE
If in coude focus, we have additional terms in az and el.
|
private static String |
DEFALTMODEL
The default expression for the altitude model.
|
private static String |
DEFALTMODEL20EXTENDED
Expressions for the extended altitude model compliant with PILAR.
|
private static String |
DEFALTMODELEXTENDED
Expressions for the extended altitude model compliant with PILAR.
|
private static String |
DEFALTMODELPILAR
Expressions for the zenith distance model compliant with PILAR.
|
private static String |
DEFALTNAMES
Constant names in the default azimuth model.
|
private static String |
DEFALTNAMESEXTENDED
Constant names in the default azimuth model.
|
private static String |
DEFALTNAMESPILAREXTENDED
Constant names in the default azimuth model.
|
private static String |
DEFALTNASMYTH
If pm in Nasmith focus, the alt model has one additional
|
private static String |
DEFALTPILAREXTENDED
Expressions for the extended altitude model compliant with PILAR.
|
private static String |
DEFAZ20MODEL
The default expressions for the azimuth model, height above 20.
|
private static boolean |
DEFAZBOOTSTRAP
The default usage of bootstrapping.
|
private static String |
DEFAZCOUDE
If pm in coude focus, we have additional terms in az and el.
|
private static String |
DEFAZMODEL
The default expressions for the azimuth model, comma separated lists.
|
private static String |
DEFAZMODEL20EXTENDED
Expressions for the extended azimuth model compliant with PILAR.
|
private static String |
DEFAZMODELEXTENDED
Expressions for the extended azimuth model compliant with PILAR.
|
private static String |
DEFAZMODELPILAR
Expressions for the azimuth model compliant with PILAR.
|
private static String |
DEFAZNAMES
Constant names in the default azimuth model.
|
private static String |
DEFAZNAMESEXTENDED
Constant names in the default azimuth model.
|
private static String |
DEFAZNAMESPILAREXTENDED
Constant names in the default azimuth model.
|
private static String |
DEFAZNASMYTH
If pm in Nasmith focus, the alt model has one additional term.
|
private static String |
DEFAZPILAREXTENDED
Expressions for the extended azimuth model compliant with PILAR.
|
static boolean |
DEFAZWEIGHTHEIGHT
If true, we use the sine of the target height as a weight for az.
|
private static boolean |
DEFBOOTSTRAP
The default usage of bootstrapping.
|
private static boolean |
DEFBOOTSTRAPCOVARIANT
The default usage of the covariance weights for bootstrapping.
|
private static double |
DEFBOOTSTRAPDUPLICATE
The default percentile of data replicas.
|
private static int |
DEFBOOTSTRAPNUMBER
The default number of simulated data set on bootstrapping.
|
private static String |
DEFCOUDEALTNAMES
Constant names in the default coude altitude model.
|
private static String |
DEFCOUDEAZNAMES
Constant names in the default coude azimuth model.
|
private static boolean |
DEFFLATTEN
The default usage of flattening.
|
private static String |
DEFGREGORALTMODEL
Expression for GREGOR, alt model.
|
private static String |
DEFGREGORALTNAMES
Constant names in the default gregor azimuth model.
|
private static String |
DEFGREGORAZMODEL
Expression for GREGOR, az model.
|
private static String |
DEFGREGORAZNAMES
Constant names in the default gregor azimuth model.
|
private static String |
DEFGREGORNUM0ALTMODEL
Expression for GREGOR, alt model.
|
private static String |
DEFGREGORNUM0AZMODEL
Expression for GREGOR, numerical az model.
|
private static String |
DEFGREGORNUMALTMODEL
Expression for GREGOR, alt model.
|
private static String |
DEFGREGORNUMALTNAMES
Constant names in the default gregor azimuth model.
|
private static String |
DEFGREGORNUMAZMODEL
Expression for GREGOR, numerical az model.
|
private static String |
DEFGREGORNUMAZNAMES
Constant names in the default gregor azimuth model.
|
private static String |
DEFHARMONIC2MODEL
Expression for a harmonic model up to l=2.
|
private static String |
DEFHARMONIC3MODEL
Expression for a harmonic model up to l=3.
|
private static String |
DEFHARMONIC4MODEL
Expression for a harmonic model up to l=4.
|
private static String |
DEFHARMONIC5MODEL
Expression for a harmonic model up to l=5.
|
private static String |
DEFHARMONIC6MODEL
Expression for a harmonic model up to l=6.
|
private static String |
DEFHARMONIC7MODEL
Expression for a harmonic model up to l=7.
|
private static String |
DEFHARMONIC8MODEL
Expression for a harmonic model up to l=8.
|
private static String |
DEFHARMONICALTMODEL
Expression for a harmonic model up to l=7, suited for altitude.
|
private static String |
DEFHARMONICAZMODEL
Expression for a harmonic model up to l=6, suited for azimuth.
|
private static String |
DEFNAMEHARMONIC2
Constatn names in the harmonic model.
|
private static String |
DEFNAMEHARMONIC3
Constatn names in the harmonic model.
|
private static String |
DEFNAMEHARMONIC4
Constatn names in the harmonic model.
|
private static String |
DEFNAMEHARMONIC5 |
private static String |
DEFNAMEHARMONIC6 |
private static String |
DEFNAMEHARMONIC7 |
private static String |
DEFNAMEHARMONIC8 |
private static String |
DEFNAMEHARMONICALT
Parameter names remaining for the altitude model.
|
private static String |
DEFNAMEHARMONICAZ
Parameter names remaining for the azimuth model.
|
private static String |
DEFNASMYTHALTNAMES
Constant names in the default nasmyth altitude model.
|
private static String |
DEFNASMYTHAZNAMES
Constant names in the default nasmyth azimuth model.
|
private static String |
DEFWEATHERLIST
The default weather sensors to read.
|
private static boolean |
DEFWEATHERSQL
The default usage of the weather sql-db.
|
private static Multidimensional |
HCOS |
static String |
KEY_ALTBOOTSTRAP
True, if bootstrapping should be done
|
static String |
KEY_ALTMODEL
The altitude model.
|
static String |
KEY_ALTNAMES
The altitude model.
|
static String |
KEY_AZBOOTSTRAP
True, if bootstrapping should be done
|
static String |
KEY_AZMODEL
The azimuth model.
|
static String |
KEY_AZNAMES
The azimuth model parameter names.
|
static String |
KEY_AZWEIGHTHEIGHT
If true, we use the sine of the target height as a weight for az.
|
static String |
KEY_BOOTSTRAP
True, if bootstrapping should be done
|
static String |
KEY_BOOTSTRAPCOVARIANT
If true, use the covariance as weighs in bootstrapping.
|
static String |
KEY_BOOTSTRAPDUPLICATE
If given, use this fraction of duplicated data for bootstrapping.
|
static String |
KEY_BOOTSTRAPNUMBER
If given, use this number of simulated data sets for bootstrapping.
|
static String |
KEY_DALTDALT
For the Jacobian of the old model, d(azold)/daz.
|
static String |
KEY_DALTDAZ
For the Jacobian of the old model, d(azold)/daz.
|
static String |
KEY_DAZDALT
For the Jacobian of the old model, d(azold)/daz.
|
static String |
KEY_DAZDAZ
For the Jacobian of the old model, d(azold)/daz.
|
static String |
KEY_FLATTEN
If true, we normalize offset and basis for cos(h).
|
static String |
KEY_OLDALT
The old azimuth model to be inverted on azimuth data.
|
static String |
KEY_OLDAZ
The old azimuth model to be inverted on azimuth data.
|
static String |
KEY_WEATHERLIST
List of sensor to read from the db.
|
static String |
KEY_WEATHERSQL
Yes, we can access the db db.
|
private static Map<String,Integer> |
PRETTY
For proper parsing of the variables.
|
private Date[] |
t0
The dates of the measurements, not necessary for plain model.
|
private List<VectorG> |
temps
If possible, the temperatures intrapolated from db values.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
PointingModel(Map<String,String> prop)
Constructs a new pointing model using default normalized expressions.
|
PointingModel(Map<String,String> prop,
boolean pilar,
boolean extended,
boolean harmonic)
Constructs a new pointing model.
|
| Modifier and Type | Method and Description |
|---|---|
DataModel |
getAltitudeModel() |
VectorG |
getAltitudeSigma()
Returns the sigma of the altitude model.
|
VectorG |
getAltitudeSolution()
Fits the offsets to the altitude model using linear regression.
|
DataModel |
getAzimuthModel() |
VectorG |
getAzimuthSigma()
Returns the sigma of the azimuth model.
|
VectorG |
getAzimuthSolution()
Fits the offsets to the azimuth model using linear regression.
|
void |
init()
Parses the model functions of the altuitude and azimuth model.
|
void |
setAltitude(VectorG z)
Sets the zenith distance data.
|
void |
setAltitudeOffsets(VectorG off,
VectorG err)
Sets the measured zenith distance offsets and the erros, if available.
|
void |
setAzimuth(VectorG az)
Sets the azimuth data.
|
void |
setAzimuthFlatOffsets(VectorG off,
VectorG err)
Sets the azimuth data.
|
void |
setAzimuthOffsets(VectorG off,
VectorG err)
Sets the measured azimuth offsets and the erros, if available.
|
void |
setTimes(Date[] times)
Sets measurement times.
|
void |
setZenithDistance(VectorG z)
Sets the zenith distance data.
|
void |
setZenithOffsets(VectorG off,
VectorG err)
Sets the measured zenith distance offsets and the erros, if available.
|
void |
subtractMean(VectorG nv)
Replaces the measruements by the measurements minus their average
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_OLDAZ
public static final String KEY_OLDALT
public static final String KEY_DAZDAZ
public static final String KEY_DAZDALT
public static final String KEY_DALTDAZ
public static final String KEY_DALTDALT
public static final String KEY_AZMODEL
public static final String KEY_AZNAMES
public static final String KEY_ALTMODEL
public static final String KEY_ALTNAMES
public static final String KEY_BOOTSTRAP
public static final String KEY_AZBOOTSTRAP
public static final String KEY_ALTBOOTSTRAP
public static final String KEY_BOOTSTRAPNUMBER
public static final String KEY_BOOTSTRAPDUPLICATE
public static final String KEY_BOOTSTRAPCOVARIANT
public static final String KEY_AZWEIGHTHEIGHT
public static final String KEY_FLATTEN
public static final String KEY_WEATHERSQL
public static final String KEY_WEATHERLIST
private static final String DEFAZMODEL
private static final String DEFALTMODEL
private static final String DEFAZNASMYTH
private static final String DEFALTNASMYTH
private static final String DEFAZCOUDE
private static final String DEFALTCOUDE
private static final String DEFAZ20MODEL
private static final String DEFALT20MODEL
private static final String DEFAZMODELPILAR
private static final String DEFALTMODELPILAR
private static final String DEFAZPILAREXTENDED
private static final String DEFALTPILAREXTENDED
private static final String DEFAZMODELEXTENDED
private static final String DEFALTMODELEXTENDED
private static final String DEFAZMODEL20EXTENDED
private static final String DEFALTMODEL20EXTENDED
private static final String DEFHARMONIC2MODEL
private static final String DEFHARMONIC3MODEL
private static final String DEFHARMONIC4MODEL
private static final String DEFHARMONIC5MODEL
private static final String DEFHARMONIC6MODEL
private static final String DEFHARMONIC7MODEL
private static final String DEFHARMONIC8MODEL
private static final String DEFHARMONICAZMODEL
private static final String DEFHARMONICALTMODEL
private static final String DEFGREGORAZMODEL
private static final String DEFGREGORALTMODEL
private static final String DEFGREGORNUMAZMODEL
private static final String DEFGREGORNUMALTMODEL
private static final String DEFGREGORNUM0AZMODEL
private static final String DEFGREGORNUM0ALTMODEL
private static final String DEFGREGORAZNAMES
private static final String DEFGREGORALTNAMES
private static final String DEFAZNAMES
private static final String DEFALTNAMES
private static final String DEFNASMYTHAZNAMES
private static final String DEFNASMYTHALTNAMES
private static final String DEFCOUDEAZNAMES
private static final String DEFCOUDEALTNAMES
private static final String DEFGREGORNUMAZNAMES
private static final String DEFGREGORNUMALTNAMES
private static final String DEFAZNAMESEXTENDED
private static final String DEFALTNAMESEXTENDED
private static final String DEFAZNAMESPILAREXTENDED
private static final String DEFALTNAMESPILAREXTENDED
private static final String DEFNAMEHARMONIC2
private static final String DEFNAMEHARMONIC3
private static final String DEFNAMEHARMONIC4
private static final String DEFNAMEHARMONIC5
private static final String DEFNAMEHARMONIC6
private static final String DEFNAMEHARMONICAZ
private static final String DEFNAMEHARMONICALT
private static final String DEFNAMEHARMONIC7
private static final String DEFNAMEHARMONIC8
public static final boolean DEFAZWEIGHTHEIGHT
private static final boolean DEFBOOTSTRAP
private static final boolean DEFAZBOOTSTRAP
private static final boolean DEFALTBOOTSTRAP
private static final boolean DEFFLATTEN
private static final boolean DEFWEATHERSQL
private static final String DEFWEATHERLIST
private static final int DEFBOOTSTRAPNUMBER
private static final double DEFBOOTSTRAPDUPLICATE
private static final boolean DEFBOOTSTRAPCOVARIANT
private static final Multidimensional HCOS
private Multidimensional[] azmodel
KEY_AZMODEL.private Multidimensional[] altmodel
KEY_ALTMODEL.private VectorG[] azalt
private VectorG azoffset
private VectorG azerror
private VectorG altoffset
private VectorG alterror
private VectorG azsolution
getAzimuthSolution().private VectorG altsolution
getAltitudeSolution().private VectorG azfit
private VectorG azresiduals
private VectorG altfit
private VectorG altresiduals
private VectorG azsigma
private VectorG altsigma
private Jama.Matrix azcovariance
private Jama.Matrix azcorrelation
private Jama.Matrix altcovariance
private Jama.Matrix altcorrelation
private double azrms
private double azbootrms
private double azbootmin
private double azbootmax
private double azchi2
private double azqual
private double altbootrms
private double altbootmin
private double altbootmax
private double altrms
private double altchi2
private double altqual
private VectorG azboot
private VectorG azsigorg
private VectorG altboot
private VectorG altsigorg
private VectorG azmin
private VectorG azmax
private VectorG altmin
private VectorG altmax
private Date[] t0
public PointingModel(Map<String,String> prop)
public PointingModel(Map<String,String> prop, boolean pilar, boolean extended, boolean harmonic)
init(). If pilar is true, we use
default expressions compliable with PILAR standard model.public void init()
init in interface Initializablepublic void setTimes(Date[] times)
InitExceptionpublic void setAzimuth(VectorG az)
public void setAltitude(VectorG z)
public void setZenithDistance(VectorG z)
public void setAzimuthOffsets(VectorG off, VectorG err)
off - The measured offsets in azimuth.err - Measurement errors or null.public void setAzimuthFlatOffsets(VectorG off, VectorG err)
public void setZenithOffsets(VectorG off, VectorG err)
off - The measured offsets in zenith distance.err - Measurement errors or null.public void setAltitudeOffsets(VectorG off, VectorG err)
off - The measured offsets in zenith distance.err - Measurement errors or null.public VectorG getAzimuthSolution()
public VectorG getAltitudeSolution()
public VectorG getAzimuthSigma()
azboot,
azmin, and azmax.public VectorG getAltitudeSigma()
altboot,
altmin, and altmax.public DataModel getAzimuthModel()
public DataModel getAltitudeModel()
public void subtractMean(VectorG nv)