public class GuiderData extends PropertyResources
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiderData.Integrity
A class to test the integrity of the data file.
|
static class |
GuiderData.Regular
A class that prints out all position files that do not show the
same number of mirrors and direct images or have a missing main
star.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private double |
airmass
The airmass of the object at observing time.
|
private static String |
DEFCATALOG
The default catalog name used for vizier resolving.
|
private static String |
DEFDATAEXT
The string to append to get from
truncated to position data. |
private static String |
DEFDATE
The fits-header key to the file ceration time.
|
private static Format |
DEFDATEFORMAT
The default date formatter in the fits file date.
|
private static long |
DEFEXPMULTI
The default multiplier to get from fits exp-time to ms.
|
private static String |
DEFEXPTIME
The fits-header key to the exposure time.
|
private static String |
DEFFITSEXT
The string to append to get from
truncated to fits file. |
private static boolean |
DEFIGNOREHEADERDATE
The string to append to get from
truncated to position data. |
private static String |
DEFSITE
The default site name, parsable from
Site. |
private static String |
DEFURLRESOURCES
Default URL of fits data directory and position directory.
|
private long |
exposure
The exposure time (ms).
|
private List |
ghosts
A list of mirror ghotst.
|
static String |
KEY_CATALOG
The key to the main catalog name vor Vizier resolves.
|
static String |
KEY_DATAEXT
The extension to get from the name header to the positions file.
|
static String |
KEY_DATE
The fits header key for date.
|
static String |
KEY_DATEFORMAT
The key to the date formatter used in the fits header.
|
static String |
KEY_EXPMULTI
The multiplier to get from the fits exposure time to ms.
|
static String |
KEY_EXPTIME
The fits header key for exposure time.
|
static String |
KEY_FITSEXT
The extension to get from the name header to the fits file.
|
static String |
KEY_IGNOREHEADERDATE
If true, the fits modification time is used instead of Header time.
|
static String |
KEY_SITE
The key to the name of the observing site.
|
private Latitude |
latitude
The latitude of the observatory.
|
private Longitude |
longitude
The longitude of the observatory.
|
private Star |
main
The
SimpleStar object retrieved for object name. |
private List |
mirrors
A list of star mirror images.
|
private String |
name
The catalog-resolvable object name.
|
private List |
nonstars
A list of non-stars, ordered as encountered in the file.
|
private List |
spurious
A list of spurious detections.
|
private List |
stars
A list of stars, where the index is the star number.
|
private Date |
time
The date of the guider image.
|
private String |
truncated
The truncated guidere image and data file.
|
KEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
GuiderData(Map prop,
String mainname)
Constructs a new guider data object from a truncated file name.
|
GuiderData(String mainname)
Constructs a new guider data object from a truncated file name.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAirmass()
Returns the airmass of the observation.
|
private static double |
getAirmass(Star star,
Date when,
Longitude lambda,
Latitude phi)
Takes a
SimpleStar object that has at least the
right ascension and declination of the star defined and calculates
the airmass at the given time for the given location. |
Star |
getCatalogMain()
Returns the main star entry.
|
long |
getExposureTime()
Returns the exposure time in millisec.
|
private static MHeader |
getFitsHeader(URL file)
Takes a resource and parses the first header if it is a fits-file.
|
List |
getGhosts()
Returns the list of ghost images to the mirror images.
|
private static Star |
getMainStar(String name,
String cat)
Resolve the catalog name.
|
List |
getMirrors()
Returns the list of mirrors.
|
List |
getNonStars()
Returns the list of non-stars.
|
private static List |
getRawStars(List lines)
Takes a list of ascii-descriptions of raw stars and converts them into
a list of
Guiding.RawStars. |
List |
getSpurious()
Returns the list of spurios detections.
|
List |
getStars()
Returns the list of stars detected.
|
Guiding.RawStar |
getTargetMirror()
Returns the main star mirror or null if not detected.
|
Guiding.RawStar |
getTargetStar()
Returns the main star entry or null if not detected.
|
Date |
getTime()
Returns the date of the exposure.
|
String |
getTruncated()
Returns the truncated file name.
|
boolean |
hasTargetMirror()
Returns true if the main star is detected and has a mirror.
|
private static String |
parseFromFile(String file)
From a truncated file name, we parse a hopefully resolvable catalog name
out of it.
|
boolean |
resolveAirmass()
Resolves the airmass of the target at the time of observation this
method will only succeed if the position of the main star is known
#resolveMain and if the date of the exposure time is valid. |
boolean |
resolveCatalogMain()
Resolves the main star by passing the parsed star name and the catalog
name to
getMainStar(java.lang.String, java.lang.String). |
boolean |
resolveFitsTimes()
Resolves the image properties like exposure time and file creation
time.
|
boolean |
resolvePositions()
Reads the data from a position file with the ASCII-format
|
void |
setGhosts(List setghosts)
Sets the list of ghosts.
|
void |
setMirrors(List setmirrors)
Sets the mirror list.
|
void |
setNonStars(List setnonstars)
Sets the list of non-stars, but still star-like.
|
void |
setSpurious(List setspurious)
Sets the list of spurious detections.
|
void |
setStars(List setstars)
Sets the list of stars.
|
boolean |
writeGuiderData()
Writes the guider data to a new file, constructed from truncated
file name.
|
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiespublic static final String KEY_CATALOG
public static final String KEY_SITE
public static final String KEY_DATE
public static final String KEY_DATEFORMAT
public static final String KEY_EXPTIME
public static final String KEY_EXPMULTI
public static final String KEY_FITSEXT
public static final String KEY_DATAEXT
public static final String KEY_IGNOREHEADERDATE
private static final String DEFURLRESOURCES
private static final String DEFCATALOG
private static final String DEFSITE
Site.private static final String DEFDATE
private static final Format DEFDATEFORMAT
private static final String DEFEXPTIME
private static final long DEFEXPMULTI
private static final String DEFFITSEXT
truncated to fits file.private static final String DEFDATAEXT
truncated to position data.private static final boolean DEFIGNOREHEADERDATE
truncated to position data.private final String truncated
private List stars
private List mirrors
private List ghosts
private List nonstars
private List spurious
private Date time
private long exposure
#EXPTIME header card.private final String name
private Star main
SimpleStar object retrieved for object name.private final Longitude longitude
private final Latitude latitude
private double airmass
public GuiderData(String mainname)
#readData etc. are
called. The vizier catalog used is the hipparchos catalog.public GuiderData(Map prop, String mainname)
#readData etc. are
called.public String getTruncated()
public List getStars()
public void setStars(List setstars)
public List getMirrors()
public void setMirrors(List setmirrors)
public List getGhosts()
public void setGhosts(List setghosts)
public List getNonStars()
public void setNonStars(List setnonstars)
public List getSpurious()
public void setSpurious(List setspurious)
public boolean writeGuiderData()
throws IOException
IOExceptionpublic Date getTime()
public long getExposureTime()
public double getAirmass()
public Star getCatalogMain()
public Guiding.RawStar getTargetStar()
public Guiding.RawStar getTargetMirror()
public boolean hasTargetMirror()
public boolean resolveCatalogMain()
getMainStar(java.lang.String, java.lang.String).public boolean resolveFitsTimes()
public boolean resolveAirmass()
#resolveMain and if the date of the exposure time is valid.public boolean resolvePositions()
xc yc mag sharp elong theta area sky fwhm id
where xc/yc are the position on the CCD in pixel, mag is the
instrumental magnitude of the star, sharp the sharpness parameter,
elong the elongation of the image (zero for perfect roundness), theta
the position angle in degrees of the major axis of the object ellipse,
to x-direction, area the number of pixels within the search-box
considered for the object, sky the average of the 'good' pixel values,
fwhm the full-width half-maximum of the image, and id is zero for
non-stars, positive numbers for direct star images, starting with
one for the main star, and negative indices for mirrored images, the
absoulte value being the index of the direct star image. Ghosts to
these mirrors are non-integers (linke '-1.1'), where the integer part
is the mirror the ghosts belongs to. Spurious detections, i.e. those
that are artifacts of the image reduction are indicated with an 'x' in
the id field.private static List getRawStars(List lines)
Guiding.RawStars. Data following the tenth column is
ignored.private static MHeader getFitsHeader(URL file)
private static double getAirmass(Star star, Date when, Longitude lambda, Latitude phi)
SimpleStar object that has at least the
right ascension and declination of the star defined and calculates
the airmass at the given time for the given location.private static Star getMainStar(String name, String cat)
name and the catalog used for resolving,
#catalog.