public class AltAzFromFits extends PropertyContainer implements CoordinateTransforming, TrueFitsStart, VectorFunction
chianti:
/work2/wooz/stella/asiva/Coord_Transform_Processing_Tenerife_ASIVA.pro
This class is a VectorFunction, where it directly transforms
fits coordinates, starting from 1,1 to azimuth/altitude, both degrees.
Additionally, it implements a coordinatetransforming instance. Measured are
radius 262, center y more at 270| Modifier and Type | Class and Description |
|---|---|
static class |
AltAzFromFits.Test
We test for the moon-pixel in
/work2/wooz/stella/asiva/ir_20130226T005010_skyq.fits
located at x=367 y=169
|
| Modifier and Type | Field and Description |
|---|---|
private double |
chicos
Sine and cosine of Euler angle.
|
private double |
chisin
Sine and cosine of Euler angle.
|
private static double |
DEFCHI0
One of threee Euler angles.
|
private static Dimension |
DEFFITSSIZE
Default size of sky-quality fits.
|
private static double |
DEFPHI0
One of threee Euler angles.
|
private static double |
DEFPSI0
One of threee Euler angles.
|
private static double |
DEFX0
Center of projection.
|
private static double |
DEFY0
Center of projection.
|
private static double |
H1
Proportional to h.
|
private static double |
H2
Proportional to h.
|
private static double |
H3
Proportional to h.
|
private static double |
H4
Proportional to h.
|
private static double |
H5
Proportional to h.
|
static String |
KEY_CHI0
One of threee Euler angles.
|
static String |
KEY_FITSSIZE
For jview, we need original size.
|
static String |
KEY_PHI0
One of threee Euler angles.
|
static String |
KEY_PSI0
One of threee Euler angles.
|
static String |
KEY_X0
Center of projection.
|
static String |
KEY_Y0
Center of projection.
|
private double |
phicos
Sine and cosine of Euler angle.
|
private double |
phisin
Sine and cosine of Euler angle.
|
private double |
psicos
Sine and cosine of Euler angle.
|
private double |
psisin
Sine and cosine of Euler angle.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
AltAzFromFits()
All defaults.
|
AltAzFromFits(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
int |
argumentDimension()
x/y means two arguments.
|
VectorG |
evaluate(VectorG xy)
This is the core of the class, here we convert x/y in fits true space
(starting from 1,1) to (astronomical) azimuth and altitude in degrees.
|
int |
functionDimension()
The function return azimuth/altitude, thus 2 coordinates.
|
Dimension |
getFitsSize() |
VectorG |
invert(VectorG azalt)
From azimuth, counted from South to West in degrees and the height
we try to infer pixel coordinates via a numerical differentiation and
inversion of the forward equation using
evaluate(VectorG). |
void |
setFitsSize(Dimension fitsbox) |
Point2D |
toNormalizedSpace(VectorG user) |
VectorG |
toUserSpace(Point2D norm)
From pixel coordinates to az/alt
|
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_X0
public static final String KEY_Y0
public static final String KEY_CHI0
public static final String KEY_PHI0
public static final String KEY_PSI0
public static final String KEY_FITSSIZE
private static final double DEFX0
private static final double DEFY0
private static final double DEFCHI0
private static final double DEFPHI0
private static final double DEFPSI0
private static final Dimension DEFFITSSIZE
private static final double H1
private static final double H2
private static final double H3
private static final double H4
private static final double H5
private final double chicos
private final double chisin
private final double phicos
private final double phisin
private final double psicos
private final double psisin
public void setFitsSize(Dimension fitsbox)
public Dimension getFitsSize()
public Point2D toNormalizedSpace(VectorG user)
toNormalizedSpace in interface CoordinateTransformingpublic VectorG toUserSpace(Point2D norm)
toUserSpace in interface CoordinateTransformingpublic int functionDimension()
functionDimension in interface VectorFunctionpublic int argumentDimension()
argumentDimension in interface VectorFunctionpublic VectorG invert(VectorG azalt)
evaluate(VectorG).azalt - public VectorG evaluate(VectorG xy)
evaluate in interface VectorFunction