stella.parameter
Class FlatPointing

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.FlatPointing
All Implemented Interfaces:
Cloneable, Parameter, CommandLineProviding, ParameterDepending, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class FlatPointing
extends AbstractParameter
implements ParameterDepending, CommandLineProviding

Provides the nominal best sky-flat pointing position, as reported in PASP 108, 944 (1996). This is in anti-solar azimuth, a 10 deg away from zenith.

As learned later, Pilar can only track positions if they are set using ra/de. Thus we have to convert the final az,h=80 further to ra/de. No comment.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static double DEFFLATALTITUDE
          The altitude of the pointing is constant.
static String DEFNAME
          Default name of the parameter.
static String KEY_FLATALTITUDE
          The altitude of the pointing is constant.
private  Latitude phi
          And the latitude.
private  SolAzimuth sun
          The parameter that delivers current solar azimuth.
private  SiderealTime theta
          To get from the hour angle to ra, we also need sidereal time.
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
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.PropertySupplying
CONFIG, KEY_CLASS
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
FlatPointing(Map<String,String> prop)
          Defaults the name.
 
Method Summary
 Object get()
          We get the command line.
 String getCommandLine()
          The command line is null if the solar azimuth was not registered, otherwise it is the nautic azimuth folloed by blank, followed by the pointing altitude for the flat field exposure.
 void registerParameter(Parameter az)
          We need the azimuth of the sun.
 Object set(Object to)
          This is not allowed.
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, register, rescanned, setName, toString
 
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, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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.ResourceSupplying
getResource, getResourceAsStream, getResources
 

Field Detail

KEY_FLATALTITUDE

public static final String KEY_FLATALTITUDE
The altitude of the pointing is constant.

See Also:
Constant Field Values

DEFFLATALTITUDE

public static final double DEFFLATALTITUDE
The altitude of the pointing is constant.

See Also:
Constant Field Values

DEFNAME

public static final String DEFNAME
Default name of the parameter.

See Also:
Constant Field Values

sun

private SolAzimuth sun
The parameter that delivers current solar azimuth.


theta

private SiderealTime theta
To get from the hour angle to ra, we also need sidereal time.


phi

private Latitude phi
And the latitude.

Constructor Detail

FlatPointing

public FlatPointing(Map<String,String> prop)
Defaults the name.

Method Detail

registerParameter

public void registerParameter(Parameter az)
We need the azimuth of the sun. For further conversion to ra/de, we need the latitude and sidereal time.

Specified by:
registerParameter in interface ParameterDepending

get

public Object get()
We get the command line.

Specified by:
get in interface Parameter

set

public Object set(Object to)
This is not allowed.

Specified by:
set in interface Parameter
Returns:
The previous value of this parameter.

getCommandLine

public String getCommandLine()
The command line is null if the solar azimuth was not registered, otherwise it is the nautic azimuth folloed by blank, followed by the pointing altitude for the flat field exposure.

Specified by:
getCommandLine in interface CommandLineProviding