Class TheSky
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----TheSky
- public class TheSky
- extends Frame
This frame shows the postions of candidates, the sun, and the moon on the sky graphically.
Here is what the controls are like:
Important features:
- [6] The "Redraw" button. Click if you change the epoc, HA/DEC range, date, or time to see the change.
- [7] The "Reload" button. Reloads the candidates from the database.
- [14] The "Default Range" button. Click to rest the range to the default values. Also seems to restore control when the Sky canvas goes non-responsive.
- [21] The "Now" button. Sets the date and time to the current values and redraws.
- [22] The "location" Choice. Choose which site you wish the Sky to reflect.
- [23] The "Time Zone" Choice. Used in conjunction with the date and time fields.
Helpful features:
- [0] Left clicking and dragging on the Sky will allow you to create a box to quickly zoom in. Execute the zoom by middle clicking (or alt + left mouse).
- [0,16,17] Right clicking and/or dragging will show a box representing the telescopes field-of-view with the central RA and DEC displayed at the top. The field size can be set throught the "field width" and "field height" TextFields.
- [2] The "HA --> RA" button will toggel the x-axis labels between hour angle and right ascention (NOTE: the "Min HA" and "Max HA" fields always represent hour angle.
- [0,18] If you zoom in on a standard star field, all of the standarts of that field will be shown. By right clicking, you can see where a good spot to point the telescope is in order to get several standards. Color and magnitude information about the standards in the field box can be obtained by clicking on "Show Field Info"
- [13] The "2x" button will zoom out to twice the current range.
Other features:
- [1] Set the "eqnx" field to the epoc of you choice. Valid values are floats like 2000.0 or 1999.5
- [3] The airmass lines can be toggled on/off with the "Air Mass Lines" button.
- [4] The sun and Moon can be toggled on/off with the Sun/Moon button.
- [5] The Standards button toggles the displaying of the Landolt standards on/off.
- [8] The "cancel" button closes the window (WhatsUp use only).
- [9,10,11,12] The Min/Max HA/DEC fields can be used to specify the range of the Sky (click "redraw" when set).
- [15] The "priority >=" field determines which candidates are displayed (click "redraw" if changed).
- [19,20] The date and time TextFields allow the user to specify what time to draw the sky for.
The information below pertains to the java sorce code for the applet only and is
not vital for its use.
-
bfont
-
-
cbAirmass
-
-
cbDoRA
-
-
cbStands
-
-
cbSunMoon
-
-
clocation
-
-
ctimeZone
-
-
dateDF
-
-
defaultRange
-
-
doubleRange
-
-
elev
-
-
fieldInfo
-
-
jd
-
-
lat
-
-
longit
-
-
now
-
-
pbot
-
-
pbotCheck
-
-
pbotDate
-
-
pbotField
-
-
pbotRange
-
-
ptop
-
-
redraw
-
-
reload
-
-
sfont
-
-
showFieldInfo
-
-
sky
-
-
tdate
-
-
teqnx
-
-
tfieldHeight
-
-
tfieldWidth
-
-
timeDF
-
-
tmaxDEC
-
-
tmaxHA
-
-
tminDEC
-
-
tminHA
-
-
tminOAP
-
-
ttime
-
-
tz
-
-
url
-
-
uw
-
-
wd
-
-
TheSky(WhatData)
-
-
addCancelButton()
-
-
getMaxDEC()
- reads the maximum DEC from the TextField
-
getMaxHA()
- reads the maximum HA from the TextField
-
getMinDEC()
- reads the minimum DEC from the TextField
-
getMinHA()
- reads the minimum HA from the TextField
-
getTime()
-
-
main(String[])
-
-
roundToSigFigs(double, int)
- rounds of a number to a given number of places
-
setNewLocation()
-
-
setTimeToNow()
-
url
public final static String url
dateDF
public static DateFormat dateDF
timeDF
public static DateFormat timeDF
bfont
public Font bfont
sfont
public Font sfont
sky
protected TheSky. Sky sky
cbAirmass
protected Checkbox cbAirmass
cbSunMoon
protected Checkbox cbSunMoon
cbStands
protected Checkbox cbStands
cbDoRA
protected Checkbox cbDoRA
redraw
protected Button redraw
doubleRange
protected Button doubleRange
defaultRange
protected Button defaultRange
now
protected Button now
reload
protected Button reload
tdate
protected TextField tdate
ttime
protected TextField ttime
tminHA
protected TextField tminHA
tminDEC
protected TextField tminDEC
tmaxHA
protected TextField tmaxHA
tmaxDEC
protected TextField tmaxDEC
clocation
protected Choice clocation
ctimeZone
protected Choice ctimeZone
ptop
protected Panel ptop
pbot
protected Panel pbot
pbotCheck
protected Panel pbotCheck
pbotRange
protected Panel pbotRange
pbotField
protected Panel pbotField
pbotDate
protected Panel pbotDate
jd
protected JulianDate jd
tz
protected TimeZone tz
wd
public WhatData wd
lat
public Sixty lat
longit
public Sixty longit
elev
public double elev
tminOAP
public TextField tminOAP
tfieldWidth
public TextField tfieldWidth
tfieldHeight
public TextField tfieldHeight
teqnx
public TextField teqnx
showFieldInfo
public Button showFieldInfo
fieldInfo
public TheSky. FieldInfo fieldInfo
uw
public UserWait uw
TheSky
public TheSky(WhatData wd2)
main
public static void main(String args[])
addCancelButton
public void addCancelButton()
setNewLocation
public void setNewLocation()
setTimeToNow
protected void setTimeToNow()
getTime
protected JulianDate getTime()
getMinHA
public double getMinHA()
- reads the minimum HA from the TextField
getMaxHA
public double getMaxHA()
- reads the maximum HA from the TextField
getMinDEC
public double getMinDEC()
- reads the minimum DEC from the TextField
getMaxDEC
public double getMaxDEC()
- reads the maximum DEC from the TextField
roundToSigFigs
public static double roundToSigFigs(double d,
int sigFigs)
- rounds of a number to a given number of places