|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.util.PointingModel
public class PointingModel
Class to calculate a pointing model for STELLA and RoboTel. Its is general enough to comply with any pointing model possible, though it is only used for the STELLA pointing model:
Δ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_zoff
It 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 #AZMODEL or #ALTMODEL. A second question
is how the measurement get into the object. Refer to appropriate classes
here, e.g. #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.
| Nested Class Summary | |
|---|---|
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.Wifsip
Utilitiy class to read in pointing data obtained on Robotel with the Wifsip instrument. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
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 QuadMatrix |
altcorrelation
The covariance matrix of the altitude solution devided by altsigma. |
private QuadMatrix |
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 |
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 QuadMatrix |
azcorrelation
The covariance matrix of the azimuth solution devided by azsigma. |
private QuadMatrix |
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 |
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 String |
DEFALTCOUDE
If pm was measured in coude focus, we have additional terms in az an 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 was measured in Nasmith focus, the alt model has one additional term. |
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 String |
DEFAZCOUDE
If pm was measured in coude focus, we have additional terms in az an 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 was measured 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 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. |
static String |
KEY_ALTMODEL
The altitude model. |
static String |
KEY_ALTNAMES
The altitude model. |
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_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. |
private static Map<String,Integer> |
PRETTY
For proper parsing of the variables. |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
PointingModel(Map prop)
Constructs a new pointing model using default normalized expressions. |
|
PointingModel(Map prop,
boolean pilar,
boolean extended,
boolean harmonic)
Constructs a new pointing model. |
|
| Method Summary | |
|---|---|
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 |
setAzimuthEncoderOffsets(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 |
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 |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, 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, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public 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_BOOTSTRAPNUMBER
public static final String KEY_BOOTSTRAPDUPLICATE
public static final String KEY_BOOTSTRAPCOVARIANT
public static final String KEY_AZWEIGHTHEIGHT
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 DEFGREGORNUMAZNAMES
private static final String DEFGREGORNUMALTNAMES
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 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 int DEFBOOTSTRAPNUMBER
private static final double DEFBOOTSTRAPDUPLICATE
private static final boolean DEFBOOTSTRAPCOVARIANT
private static final Map<String,Integer> PRETTY
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 QuadMatrix azcovariance
private QuadMatrix azcorrelation
private QuadMatrix altcovariance
private QuadMatrix 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 List aznames
private List altnames
| Constructor Detail |
|---|
public PointingModel(Map prop)
public PointingModel(Map prop,
boolean pilar,
boolean extended,
boolean harmonic)
init(). If pilar is true, we use
default expressions compliable with PILAR standard model.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyResourcespublic 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 setAzimuthEncoderOffsets(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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||