public class NasmythPointingModel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NasmythPointingModel.FileData
An access class to a pointing model that reads data from a file.
|
private static class |
NasmythPointingModel.Harmonics
A pure harmonic model
|
private static class |
NasmythPointingModel.ZonalHarmonicFunction
A pure harmonic function
|
| Modifier and Type | Field and Description |
|---|---|
private Vector2D[] |
azalt
The telescope nautic azimuth and altitude in radians.
|
private static double |
DEFLATITUDE
Default site, Teide observatory.
|
private double |
phi
The latitude of the site, degrees.
|
private double[] |
xaux
The measured x-coordinate on the auxiliary guider CCD.
|
private double[] |
yaux
The measured y-coordinate on the auxiliary guider CCD.
|
| Constructor and Description |
|---|
NasmythPointingModel() |
NasmythPointingModel(double latdeg) |
| Modifier and Type | Method and Description |
|---|---|
private static VectorG[] |
convertAzAlt(Vector2D[] azalt)
We convert the argument vector2D array into to vectors, one with all
azimuth data in radians, the other with cosine of zenith distance.
|
DataModel |
getAuxiliaryXModel()
We return the pure x-model for the guiding case.
|
DataModel |
getAuxiliaryYModel()
We return the pure y-model for the guiding case.
|
static double |
getAuxModelX(VectorG params,
VectorG etael)
This method calculates the x-coordinate on the auxiliary CCD using the
provided parameters with the following meaning, all in aux-ccd pixel, if
not angles.
|
static double |
getAuxModelY(VectorG params,
VectorG etael)
This method calculates the x-coordinate on the auxiliary CCD using the
provided parameters with the following meaning, all in aux-ccd pixel, if
not angles.
|
Vector2D[] |
getAzAlt() |
static Vector2D[] |
getAzCosz(Vector2D[] azalt)
Converts for the harmonic model the azimuth and height to azimuth (plain
copy) and cosine of zenith distance.
|
static Vector2D[] |
getEtaElevation(Vector2D[] azalt,
double phi)
From the measured nautical azimuth and elevation in radians, we calculate
the internal coordinates, namely parallactic angle and elevation.
|
GeneralLinearRegression |
getHarmonicXFit(SphericalHarmonics.LM[] lm,
double hlow,
double zenith)
We return a pure harmonic model.
|
DataModel |
getHarmonicXModel(SphericalHarmonics.LM[] lm,
double hlow,
double zenith)
We return a pure harmonic model.
|
GeneralLinearRegression |
getHarmonicYFit(SphericalHarmonics.LM[] lm,
double hlow,
double zenith)
We return a pure harmonic model.
|
DataModel |
getHarmonicYModel(SphericalHarmonics.LM[] lm,
double hlow,
double zenith)
We return a pure harmonic model.
|
static Vector2D |
getOrigin(VectorG params,
VectorG etael)
This method calculates the origin of the unperturbed Az/El system as seen
from the science CCD.
|
double[] |
getXaux() |
double[] |
getYaux() |
void |
setAzAlt(Vector2D[] azalt) |
void |
setXaux(double[] xaux) |
void |
setYaux(double[] yaux) |
VectorG |
solve(DataModel dm,
GeneralLinearRegression solution) |
VectorG |
solveY(DataModel dm)
We solve for the y model.
|
private static final double DEFLATITUDE
private double phi
private Vector2D[] azalt
private double[] xaux
private double[] yaux
public NasmythPointingModel()
public NasmythPointingModel(double latdeg)
public Vector2D[] getAzAlt()
public void setAzAlt(Vector2D[] azalt)
azalt - the azalt to setpublic double[] getXaux()
public void setXaux(double[] xaux)
xaux - the xaux to setpublic double[] getYaux()
public void setYaux(double[] yaux)
yaux - the yaux to setpublic static final double getAuxModelX(VectorG params, VectorG etael)
public static final double getAuxModelY(VectorG params, VectorG etael)
public static final Vector2D getOrigin(VectorG params, VectorG etael)
public static final Vector2D[] getEtaElevation(Vector2D[] azalt, double phi)
tan(η) = -sin(az)/(cos(E)tan(φ)-sin(E)*cos(az))with φ the geographic latitude of the observer.
azalt - The nautical azimuth and elevation of the measures, radiansphi - Latitude of observer, radians.public static final Vector2D[] getAzCosz(Vector2D[] azalt)
public DataModel getAuxiliaryXModel()
public DataModel getAuxiliaryYModel()
public DataModel getHarmonicXModel(SphericalHarmonics.LM[] lm, double hlow, double zenith)
public DataModel getHarmonicYModel(SphericalHarmonics.LM[] lm, double hlow, double zenith)
public GeneralLinearRegression getHarmonicXFit(SphericalHarmonics.LM[] lm, double hlow, double zenith)
public GeneralLinearRegression getHarmonicYFit(SphericalHarmonics.LM[] lm, double hlow, double zenith)
private static VectorG[] convertAzAlt(Vector2D[] azalt)
azalt - public VectorG solve(DataModel dm, GeneralLinearRegression solution)