astro
Class WcsProjection.VariablePixelProjection

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

public static class WcsProjection.VariablePixelProjection
extends WcsProjection.LinearPixelProjection

It turned out, that the quality of the WCS solution is highly dependant on the correct position of the native pole, rj. This class solves also for this parameters. It should be done probably only once, then these values should be frozen.


Nested Class Summary
 
Nested classes/interfaces inherited from class astro.WcsProjection.LinearPixelProjection
WcsProjection.LinearPixelProjection.Type
 
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
 
Fields inherited from class astro.WcsProjection.LinearPixelProjection
IMROT, KEY_CRPIX1, KEY_CRPIX2, KEY_IMROTUNIT, KEY_PSCALEUNIT, PSCALE
 
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.VariablePixelProjection()
          We only allow full variations in the transformation matrix.
WcsProjection.VariablePixelProjection(Map<String,String> u2f)
          We only allow full variations in the transformation matrix.
 
Method Summary
 VectorG estimateParameters(nom.tam.fits.Header h)
          We refer to the parental parsing methods, but sneak in on the returned parameters, adding the center of projection at the end of the list.
 VectorG estimateParameterScales(VectorG start)
          The parameter scales are wrong, we have a translatory matrix and a rotation.
 VectorG getParameters()
          We query the cij from the parent and add the projection center at the end
 void setParameters(VectorG vv)
          The first four parameters are the cij, then we have the projection center.
 
Methods inherited from class astro.WcsProjection.LinearPixelProjection
evaluate, evaluateMatrix, getCards, getCij, getPixelArea, getRj, parseHeader, setRj
 
Methods inherited from class astro.WcsProjection
argumentDimension, functionDimension, getStandardKeys
 
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
 

Constructor Detail

WcsProjection.VariablePixelProjection

public WcsProjection.VariablePixelProjection()
We only allow full variations in the transformation matrix.


WcsProjection.VariablePixelProjection

public WcsProjection.VariablePixelProjection(Map<String,String> u2f)
We only allow full variations in the transformation matrix.

Method Detail

setParameters

public void setParameters(VectorG vv)
The first four parameters are the cij, then we have the projection center. This is set in the parent as rj

Overrides:
setParameters in class WcsProjection.LinearPixelProjection

getParameters

public VectorG getParameters()
We query the cij from the parent and add the projection center at the end

Overrides:
getParameters in class WcsProjection.LinearPixelProjection

estimateParameters

public VectorG estimateParameters(nom.tam.fits.Header h)
                           throws nom.tam.fits.HeaderCardException
We refer to the parental parsing methods, but sneak in on the returned parameters, adding the center of projection at the end of the list.

Overrides:
estimateParameters in class WcsProjection.LinearPixelProjection
Throws:
nom.tam.fits.HeaderCardException

estimateParameterScales

public VectorG estimateParameterScales(VectorG start)
The parameter scales are wrong, we have a translatory matrix and a rotation.

Overrides:
estimateParameterScales in class WcsProjection