stella.util
Class FlatFinder

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.util.FlatFinder
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class FlatFinder
extends PropertyBundles

The flat finder reads in a star catalog and prints out the remaining stellar pointings that have no entry within the quoted field-of-view. For an Rmag star, the incident flux on the detector for a tracking telescope is

   ADU=2.424e6*(D/1m)^2*eff*1/gain*(px/fwhm)^2*t*10^(-.4*(R-10)),
   
while for a telescope at rest
   ADU= 1.188e3*(D/1m)^2*eff*1/gain*eff*10^(-.4*(R-10)),
   
thus much lower, unless the pixel scale is comparable to the earth rotational velocity of 15arcsec/sec. Note that the drift-ADU do not depend on seeing or pixel scale, as it is always a integration along the -inf +inf axis of a 1-d gauss (the exposure time is always much longer compared to fwhm/v_earth, so we always get the full photon flux in one axis, is the seeing is very good, we get it faster).


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static double DEFDESTEP
          Default de-step width.
private static double DEFFOV
          Default field-of-view.
private static double DEFHIGHDE
          Default high-de.
private static double DEFLOWDE
          Default low-de.
private static double DEFRASTEP
          Default ra step width.
private  int[][] field
          The array with possible pointings.
static String KEY_DESTEP
          The step-width in de, degrees.
static String KEY_FOV
          The field-of-view in degrees, plain multiple of de-step.
static String KEY_HIGHDE
          The higher-limit in declination to search.
static String KEY_LOWDE
          The lower-limit in declination to search.
static String KEY_RASTEP
          The step-width in ra, degrees.
 
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
FlatFinder(Map<String,String> prop)
          Constructs a new Flat finder grid.
 
Method Summary
private  void addOne(double ralow, double rahigh, int de)
          We use the low and high ra plus the index in de to add 1 in all affected fields.
 void applyCatalog(List<StarDescription> cat)
          Applis the star catalog.
private  List<Vector2D> getUnaffectedField()
          Returns the Ra,De vectros of all unaffected fields.
static void main(String[] arg)
          We apply the serialized catalog in the first field to the sky grid in the second.
private  int unaffected()
          Counts the unaffected fields.
 
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

KEY_LOWDE

public static final String KEY_LOWDE
The lower-limit in declination to search.

See Also:
Constant Field Values

KEY_HIGHDE

public static final String KEY_HIGHDE
The higher-limit in declination to search.

See Also:
Constant Field Values

KEY_RASTEP

public static final String KEY_RASTEP
The step-width in ra, degrees.

See Also:
Constant Field Values

KEY_DESTEP

public static final String KEY_DESTEP
The step-width in de, degrees.

See Also:
Constant Field Values

KEY_FOV

public static final String KEY_FOV
The field-of-view in degrees, plain multiple of de-step.

See Also:
Constant Field Values

DEFLOWDE

private static final double DEFLOWDE
Default low-de.

See Also:
Constant Field Values

DEFHIGHDE

private static final double DEFHIGHDE
Default high-de.

See Also:
Constant Field Values

DEFRASTEP

private static final double DEFRASTEP
Default ra step width.

See Also:
Constant Field Values

DEFDESTEP

private static final double DEFDESTEP
Default de-step width.

See Also:
Constant Field Values

DEFFOV

private static final double DEFFOV
Default field-of-view.

See Also:
Constant Field Values

field

private int[][] field
The array with possible pointings.

Constructor Detail

FlatFinder

public FlatFinder(Map<String,String> prop)
Constructs a new Flat finder grid. Initiates the arrays with zero, does not load any catalog.

Method Detail

applyCatalog

public void applyCatalog(List<StarDescription> cat)
Applis the star catalog. Each star adds a hit in all field it affects.


addOne

private void addOne(double ralow,
                    double rahigh,
                    int de)
We use the low and high ra plus the index in de to add 1 in all affected fields. 0<=ralow

unaffected

private int unaffected()
Counts the unaffected fields.


getUnaffectedField

private List<Vector2D> getUnaffectedField()
Returns the Ra,De vectros of all unaffected fields.


main

public static void main(String[] arg)
                 throws Exception
We apply the serialized catalog in the first field to the sky grid in the second.

Throws:
Exception