All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.Telescope

java.lang.Object
   |
   +----JObserve.Telescope

public class Telescope
extends Object
This is the virtual base class for Telescope information that is constant for an entire schedule. Included are the constructors for telescope specific Scan members.

See Also:
ListBlock

Variable Index

 o AskForFilename
File name to force asking user for file name
 o Azimuth
Initial azimuth 8 characters "sddd.dd"
 o Declination
Initial Declination 8 characters "sDDMMSS "
 o defaultPanel
 o Elevation
Initial elevation 8 characters "sddd.dd"
 o fileExt
File extensions for the Observe lists Note: these are coordinated with the list numbers in Observation.
 o HourAngle
Initial Hour Angle 8 characters "sHHMMSS"
 o J2000CalNames
Use J2000 calibrator names?
 o LeapSeconds
Leap seconds to correct UT to IAT
 o LocalSiderealDay
Local Siderial day number 6 characters "ddddd"
 o LocalSiderealTime
Local Siderial time 7 characters "HHMMSS"
 o LocalTime
Local Time
 o myListEditPanel
List display/edit panel
 o NRAOCalibratorFile
URL of file containing most recent version of the Calibrator List.
 o NRAODefaultFile
URL of file containing most recent version of the NRAO Defaults List.
 o observeFile
Observe file name
 o observeFilter
Observe file name filter This doesn't actually work - another java bug
 o obsTextFile
Text Schedule file
 o PlanetAngSepLimit
Planetary warning angle How close can an observed source be to a planet (deg) before a warning is issued?
 o reportFiles
Observe report file names
 o RightAscension
Initial Right Ascension 7 characters ""HHMMSS"
 o saveDirectory
Save Directory
 o saveFile
Save/restore file name root
 o SolarAngSepLimit
Solar warning angle How close can an observed source be to the sun (deg) before a warning is issued?
 o sourceTextFile
Text Source file
 o UT
UTC time

Constructor Index

 o Telescope()
Constructor

Method Index

 o CheckDB()
Check data base versions This allows the user to see if he/she is using the most recent calibrator lists and NRAO Defaults lists.
 o FetchDB()
Fetch database file from NRAO This allows the user to update the version of a file from NRAO.
 o getPlanetWarn()
Get Planetary warnings distance
 o getSolarWarn()
Get Solar warnings distance
 o MakeBandInfo()
Create a Calibrator BandInfo structure - a virtual function
 o MakeScan()
Create a Scan structure - a virtual function
 o MakeScan(Scan)
Duplicate a Scan structure - a virtual function
 o MakeScanPos(boolean)
Create a ScanPos structure This is the virtual version
 o MoveTime(Scan)
Compute telescope Move time
 o parseHeaderCard(String)
Parse Card from beginning of a Scan list virtual version
 o ReadCalDB(String, Observation)
Read Calibrator database virtual version
 o ReadObsFile(String, Observation)
Read Observe List virtual version
 o ReadScanList(String, Observation, int)
Read schedule ScanList
 o ReadSetupFile(String, Observation)
Read schedule Setup file virtual version
 o ReadSourceFile(String, Observation)
Read Source list Read a source list from a free format text file virtual version
 o ReadTextObs(String, Observation)
Read Text Schedule Read a schedule from a free format text file virtual version
 o ResetCalibrator(boolean)
Reset Calibrator Epoch boolean true if J2000, else B1950
 o ResetTimes(Observation, int)
Reset stop times (Stop time, duration, or Dwell time) in Scan members.
 o Schedule(Observation)
Process an observing schedule Process any scans not scheduled
 o ScheduleAll(Observation)
Process an observing schedule Completely reschedule
 o ScheduleScan(Scan)
Schedule scan virtual version
 o ScheduleUpTo(Observation, Scan)
Process an observing schedule Process up to a given scan
 o setPlanetWarn(double)
Set Planetary warnings distance
 o setSolarWarn(double)
Set Solar warnings distance
 o SetupScan(ScanPos, Scan)
Setup for scan virtual version
 o ShowEditListsPanel()
Display EditListsPanel virtual version
 o ShowInitialConditionsPanel()
Display Initial Conditions Panel virtual version
 o ShowInitialPanel()
Display initial panel virtual version
 o ShowPlanetWarnPanel()
Display Planetary warnings Panel
 o ShowSolarWarnPanel()
Display Solar warnings Panel
 o StripExtn(String)
Get filename root Strip any ".*" from a file name
 o Unschedule(Observation, Scan)
Unschedule the Observe List

Rules of the game:

  1. Only the observe list may be unscheduled.
     o VerifyScan(Scan)
    Verify scan correctness Any errors found are returned in the Messages member virtual version
     o WriteObsFile(String, Observation)
    Write Observe file virtual version
     o WriteReport(String, Observation, int)
    Write Report virtual version
     o WriteScanList(String, Observation, int)
    Write schedule ScanList If the scan list is empty and a null name is given then the routine throws an IllegalArgumentException
     o WriteSetupFile(String, Observation)
    Write schedule Setup file virtual version
     o xxxReadScanList(String, Observation, int)
    Read schedule ScanList virtual version
     o xxxWriteScanList(String, Observation, int)
    Write schedule ScanList virtual version

Variables

 o defaultPanel
 public ObservePanel defaultPanel
 o myListEditPanel
 public ListEditPanel myListEditPanel
List display/edit panel

 o saveDirectory
 protected String saveDirectory
Save Directory

 o saveFile
 protected String saveFile
Save/restore file name root

 o observeFile
 protected String observeFile
Observe file name

 o sourceTextFile
 protected String sourceTextFile
Text Source file

 o obsTextFile
 protected String obsTextFile
Text Schedule file

 o NRAOCalibratorFile
 protected String NRAOCalibratorFile
URL of file containing most recent version of the Calibrator List. This is set in the array specific constructor.

 o NRAODefaultFile
 protected String NRAODefaultFile
URL of file containing most recent version of the NRAO Defaults List. This is set in the array specific constructor.

 o observeFilter
 protected FilenameFilter observeFilter
Observe file name filter This doesn't actually work - another java bug

 o LocalSiderealDay
 public String LocalSiderealDay
Local Siderial day number 6 characters "ddddd"

 o LocalSiderealTime
 public String LocalSiderealTime
Local Siderial time 7 characters "HHMMSS"

 o LocalTime
 public double LocalTime
Local Time

 o UT
 public double UT
UTC time

 o LeapSeconds
 public double LeapSeconds
Leap seconds to correct UT to IAT

 o Azimuth
 public String Azimuth
Initial azimuth 8 characters "sddd.dd"

 o Elevation
 public String Elevation
Initial elevation 8 characters "sddd.dd"

 o HourAngle
 public String HourAngle
Initial Hour Angle 8 characters "sHHMMSS"

 o RightAscension
 public String RightAscension
Initial Right Ascension 7 characters ""HHMMSS"

 o Declination
 public String Declination
Initial Declination 8 characters "sDDMMSS "

 o J2000CalNames
 public boolean J2000CalNames
Use J2000 calibrator names?

 o SolarAngSepLimit
 public double SolarAngSepLimit
Solar warning angle How close can an observed source be to the sun (deg) before a warning is issued?

 o PlanetAngSepLimit
 public double PlanetAngSepLimit
Planetary warning angle How close can an observed source be to a planet (deg) before a warning is issued?

 o fileExt
 public static final String fileExt[]
File extensions for the Observe lists Note: these are coordinated with the list numbers in Observation.

 o reportFiles
 public static final String reportFiles[]
Observe report file names

 o AskForFilename
 public static final String AskForFilename
File name to force asking user for file name

Constructors

 o Telescope
 public Telescope()
Constructor

Methods

 o MoveTime
 public double MoveTime(Scan theScan)
Compute telescope Move time

Parameters:
Scanthe - Scan defining the position to move to.
Returns:
double the move time in seconds, -1.0 => an impossible move
 o MakeScan
 public Scan MakeScan()
Create a Scan structure - a virtual function

Returns:
Scan the new Scan
 o MakeScan
 public Scan MakeScan(Scan scan)
Duplicate a Scan structure - a virtual function

Parameters:
Scan - the Scan to copy
Returns:
Scan the new scan
 o MakeBandInfo
 public BandInfo MakeBandInfo()
Create a Calibrator BandInfo structure - a virtual function

Returns:
BandInfo the new BandInfo
 o MakeScanPos
 public ScanPos MakeScanPos(boolean initial)
Create a ScanPos structure This is the virtual version

Parameters:
boolean - it true set to initial conditions
 o Schedule
 public void Schedule(Observation Obs)
Process an observing schedule Process any scans not scheduled

Parameters:
- Observation the Observation (schedule).
 o ScheduleUpTo
 public void ScheduleUpTo(Observation Obs,
                          Scan StopScan)
Process an observing schedule Process up to a given scan

Parameters:
- Observation the Observation (schedule).
- Scan last Scan to process.
 o ScheduleAll
 public void ScheduleAll(Observation Obs)
Process an observing schedule Completely reschedule

Parameters:
- Observation the Observation (schedule).
 o Unschedule
 public void Unschedule(Observation Obs,
                        Scan startScan)
Unschedule the Observe List

Rules of the game:

  1. Only the observe list may be unscheduled. The scan pointer given must point to a valid source within that list, or be null(). Bad things will happen if it doesn't.
  2. A null scan pointer means that the entire list will be unscheduled.
  3. A valid pointer will cause that scan, and all others to the end of the list to be unscheduled.
  4. All unscheduled sources except the first will have all times except the specified time marked as NotPresent.
  5. The first unscheduled source may have the start time left as computed.

    Parameters:
    - Observation the Observation (schedule).
    - Scan the first Scan to be descheduled, if null then from the start.
 o SetupScan
 public void SetupScan(ScanPos Current,
                       Scan theScan)
Setup for scan virtual version

Parameters:
ScanPos - Telescope pointing at the start of the scan
Scan - The Scan in question
 o ScheduleScan
 public void ScheduleScan(Scan theScan)
Schedule scan virtual version

Parameters:
Scan - The Scan in question
 o VerifyScan
 public void VerifyScan(Scan theScan)
Verify scan correctness Any errors found are returned in the Messages member virtual version

Parameters:
Scan - The Scan in question
 o ResetTimes
 public void ResetTimes(Observation Obs,
                        int newTime)
Reset stop times (Stop time, duration, or Dwell time) in Scan members. this will unschedule all Scans

Parameters:
- Observation the Observation (schedule).
- int new time specification for scans (Scan.java)
See Also:
Scan
 o ResetCalibrator
 public void ResetCalibrator(boolean J2000)
Reset Calibrator Epoch boolean true if J2000, else B1950

 o ShowInitialPanel
 public void ShowInitialPanel()
Display initial panel virtual version

 o ShowInitialConditionsPanel
 public void ShowInitialConditionsPanel()
Display Initial Conditions Panel virtual version

 o ShowEditListsPanel
 public void ShowEditListsPanel()
Display EditListsPanel virtual version

 o ShowPlanetWarnPanel
 public void ShowPlanetWarnPanel()
Display Planetary warnings Panel

 o setPlanetWarn
 public void setPlanetWarn(double distance)
Set Planetary warnings distance

Parameters:
double - the warning distance
 o getPlanetWarn
 public double getPlanetWarn()
Get Planetary warnings distance

Returns:
double the warning distance
 o ShowSolarWarnPanel
 public void ShowSolarWarnPanel()
Display Solar warnings Panel

 o setSolarWarn
 public void setSolarWarn(double distance)
Set Solar warnings distance

Parameters:
double - the warning distance
 o getSolarWarn
 public double getSolarWarn()
Get Solar warnings distance

Returns:
double the warning distance
 o ReadSetupFile
 public boolean ReadSetupFile(String File,
                              Observation Obs) throws IllegalArgumentException, IOException
Read schedule Setup file virtual version

Parameters:
String - file name (null = ask) if name = Telescope.AskForFilename" then the user will always be asked
Observation - the observation
Returns:
boolean true if worked, else user abort
 o WriteSetupFile
 public boolean WriteSetupFile(String File,
                               Observation Obs) throws IllegalArgumentException, IOException
Write schedule Setup file virtual version

Parameters:
String - file name (null = ask) if name = Telescope.AskForFilename" then the user will always be asked
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o xxxReadScanList
 public boolean xxxReadScanList(String File,
                                Observation Obs,
                                int whichList) throws IllegalArgumentException, IOException
Read schedule ScanList virtual version

Parameters:
String - file name (null = ask) if name = Telescope.AskForFilename" then the user will always be asked
Observation - the observation
int - 0-rel ListBlock to update (defined in Observation)
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
See Also:
Observation
 o ReadScanList
 public boolean ReadScanList(String File,
                             Observation Obs,
                             int whichList) throws IllegalArgumentException, IOException
Read schedule ScanList

Parameters:
String - file name (null = ask, or use Save file) if name = Telescope.AskForFilename" then the user will always be asked if name is null no return will be OK if no UserDefault, Default, Observe or Source list is found
Observation - the observation
int - 0-rel ListBlock to update (defined in Observation)
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
See Also:
Observation
 o xxxWriteScanList
 public boolean xxxWriteScanList(String File,
                                 Observation Obs,
                                 int whichList) throws IllegalArgumentException, IOException
Write schedule ScanList virtual version

Parameters:
String - file name (null = ask) if name = Telescope.AskForFilename" then the user will always be asked
Observation - the observation
int - 0-rel ListBlock to update (defined in Observation)
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
See Also:
Observation
 o WriteScanList
 public boolean WriteScanList(String File,
                              Observation Obs,
                              int whichList) throws IllegalArgumentException, IOException
Write schedule ScanList If the scan list is empty and a null name is given then the routine throws an IllegalArgumentException

Parameters:
String - file name (null = ask, or use Save file) if name = Telescope.AskForFilename" then the user will always be asked
Observation - the observation
int - 0-rel ListBlock to update (defined in Observation)
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
Throws: IllegalArgumentException
if List is empty and a nonnull File given
See Also:
Observation
 o ReadObsFile
 public boolean ReadObsFile(String File,
                            Observation Obs) throws IllegalArgumentException, IOException
Read Observe List virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o WriteObsFile
 public boolean WriteObsFile(String File,
                             Observation Obs) throws IllegalArgumentException, IOException
Write Observe file virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o WriteReport
 public boolean WriteReport(String File,
                            Observation Obs,
                            int type) throws IllegalArgumentException, IOException
Write Report virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
int - report type (defined in Report.java)
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
See Also:
Report
 o ReadSourceFile
 public boolean ReadSourceFile(String File,
                               Observation Obs) throws IllegalArgumentException, IOException
Read Source list Read a source list from a free format text file virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o ReadTextObs
 public boolean ReadTextObs(String File,
                            Observation Obs) throws IllegalArgumentException, IOException
Read Text Schedule Read a schedule from a free format text file virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o ReadCalDB
 public boolean ReadCalDB(String File,
                          Observation Obs) throws IllegalArgumentException, IOException
Read Calibrator database virtual version

Parameters:
String - file name (null = ask)
Observation - the observation
Returns:
boolean true if worked, else user abort
Throws: IOException
if problem opening, reading or closing
 o parseHeaderCard
 public void parseHeaderCard(String Card)
Parse Card from beginning of a Scan list virtual version

Parameters:
String - Card image
 o CheckDB
 public void CheckDB()
Check data base versions This allows the user to see if he/she is using the most recent calibrator lists and NRAO Defaults lists. The current and NRAO current version strings are displayed in a box.

 o FetchDB
 public void FetchDB()
Fetch database file from NRAO This allows the user to update the version of a file from NRAO. This can be either the Calibrator list or the NRAO Default list.

 o StripExtn
 public static String StripExtn(String name)
Get filename root Strip any ".*" from a file name

Parameters:
String - file name
Returns:
String stripped file name

All Packages  Class Hierarchy  This Package  Previous  Next  Index