astro
Class WcsProjection.EulerRotation

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by astro.WcsProjection
                  extended by astro.WcsProjection.EulerRotation
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, VectorFunction
Enclosing class:
WcsProjection

public static class WcsProjection.EulerRotation
extends WcsProjection

A Euler rotation, defined by the coordinates of the native pole. An Euler rotation is defined via three angles, in FITS normally longitude and latitude in ra/de of the native pole are given, and the third angle, lonpole is 180 deg.


Nested Class Summary
 
Nested classes/interfaces inherited from class astro.WcsProjection
WcsProjection.EulerRotation, WcsProjection.Gnomonic, WcsProjection.LinearGnomonicRaDe, WcsProjection.LinearPixelProjection, WcsProjection.PolynomialGnomonicRaDe, WcsProjection.PolynomialPixelProjection, WcsProjection.ReadWcs, WcsProjection.ThreeStepWcs, WcsProjection.VariableGnomonicRaDe, WcsProjection.VariablePixelProjection
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private  double cospole
          The cosine of the native longitude of the celestial pole.
static String KEY_DEUNIT
           
static String KEY_RAUNIT
           
private  double sinpole
          The sine of the native longitude of the celestial pole.
static String WDEC
           
static String WRA
           
 
Fields inherited from class astro.WcsProjection
KEY_PARAMETERSCALE
 
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
  WcsProjection.EulerRotation()
          Classis Euler Rotation for zenithal projections, defaulting pole to 180.
  WcsProjection.EulerRotation(double ll)
          Classis Euler Rotation, the longitude of the north pole is explicatly stated.
private WcsProjection.EulerRotation(double sphi, double cphi, Map<String,String> u2f)
          Hidden constructor, directly for sine and cosine of the longitude of the north pole.
  WcsProjection.EulerRotation(double ll, Map<String,String> u2f)
          Classis Euler Rotation, the longitude of the north pole is explicatly stated.
  WcsProjection.EulerRotation(Map<String,String> u2f)
           
 
Method Summary
 VectorG estimateParameters(nom.tam.fits.Header h)
          We start with the anticipated pointing of the telescope.
 VectorG estimateParameterScales(VectorG s)
          We return a typical pixel scale here.
 VectorG evaluate(VectorG pxpy)
          The argument must be in native spherical coordinates, result is in spherical coordinates, defined by the native pole.
 Collection<nom.tam.fits.HeaderCard> getCards()
          The two cards are the ra and dec of the native pole, or, if the projection is not for ra dec the coordinates of the native pole.
 double getPixelArea(VectorG pxpy)
          Area of pixel is unity.
 boolean parseHeader(nom.tam.fits.Header h)
          Parses the header searching for the two CRVAL cards.
 
Methods inherited from class astro.WcsProjection
argumentDimension, functionDimension, getParameters, getStandardKeys, setParameters
 
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, init, 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
 
Methods inherited from interface util.Initializable
init
 

Field Detail

WRA

public static final String WRA
See Also:
Constant Field Values

KEY_RAUNIT

public static final String KEY_RAUNIT
See Also:
Constant Field Values

WDEC

public static final String WDEC
See Also:
Constant Field Values

KEY_DEUNIT

public static final String KEY_DEUNIT
See Also:
Constant Field Values

cospole

private double cospole
The cosine of the native longitude of the celestial pole.


sinpole

private double sinpole
The sine of the native longitude of the celestial pole.

Constructor Detail

WcsProjection.EulerRotation

public WcsProjection.EulerRotation()
Classis Euler Rotation for zenithal projections, defaulting pole to 180. degrees.


WcsProjection.EulerRotation

public WcsProjection.EulerRotation(Map<String,String> u2f)

WcsProjection.EulerRotation

public WcsProjection.EulerRotation(double ll)
Classis Euler Rotation, the longitude of the north pole is explicatly stated.


WcsProjection.EulerRotation

public WcsProjection.EulerRotation(double ll,
                                   Map<String,String> u2f)
Classis Euler Rotation, the longitude of the north pole is explicatly stated.


WcsProjection.EulerRotation

private WcsProjection.EulerRotation(double sphi,
                                    double cphi,
                                    Map<String,String> u2f)
Hidden constructor, directly for sine and cosine of the longitude of the north pole.

Method Detail

estimateParameterScales

public VectorG estimateParameterScales(VectorG s)
We return a typical pixel scale here.

Overrides:
estimateParameterScales in class WcsProjection

estimateParameters

public VectorG estimateParameters(nom.tam.fits.Header h)
                           throws nom.tam.fits.HeaderCardException
We start with the anticipated pointing of the telescope. If no unit for ra, de is given, we assume Sexagesimal, colons as separators. If a lonpole is given, we set it, but it is never a fitted parameter.

Specified by:
estimateParameters in class WcsProjection
Throws:
nom.tam.fits.HeaderCardException

evaluate

public VectorG evaluate(VectorG pxpy)
The argument must be in native spherical coordinates, result is in spherical coordinates, defined by the native pole. The native pole has to be set prior to this call with setParameters.


getCards

public Collection<nom.tam.fits.HeaderCard> getCards()
                                             throws nom.tam.fits.HeaderCardException
The two cards are the ra and dec of the native pole, or, if the projection is not for ra dec the coordinates of the native pole. Name of the cards is CRVAL.

Specified by:
getCards in class WcsProjection
Throws:
nom.tam.fits.HeaderCardException

parseHeader

public boolean parseHeader(nom.tam.fits.Header h)
                    throws nom.tam.fits.HeaderCardException
Parses the header searching for the two CRVAL cards. Their value represents the native pole, normally in ra dec.

Specified by:
parseHeader in class WcsProjection
Throws:
nom.tam.fits.HeaderCardException

getPixelArea

public double getPixelArea(VectorG pxpy)
Area of pixel is unity.

Specified by:
getPixelArea in class WcsProjection