All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.VLA.VLAReadTextObs

java.lang.Object
   |
   +----JObserve.VLA.VLAReadTextObs

public class VLAReadTextObs
extends Object
Read a VLA schedule from a text file utility class Parses information from ascii file and creates a Linked list of Scans. This class is never instantiated and consists entirely of static functions.


Variable Index

 o MaxIgnore
Maximum number of unrecognized "calibrators"

Constructor Index

 o VLAReadTextObs()

Method Index

 o GetCalibratorPosition(VLAScan, ListBlock, Observation)
Lookup calibrator in calibrator list and fill in info if found.
 o GetPosition(int, VLAScan, String, String, String)
Check and fill in source position information
 o SourceTextInput(String, Observation)
Read schedule from Text file Entries are free format, comma delimited fields in the order Source name, Qualfier, Duration, BJorC, [Ra, Dec], Bands, Bandwidths, UserDefault, NRAODefault.

Variables

 o MaxIgnore
 public static final int MaxIgnore
Maximum number of unrecognized "calibrators"

Constructors

 o VLAReadTextObs
 public VLAReadTextObs()

Methods

 o SourceTextInput
 public static void SourceTextInput(String file,
                                    Observation Obs) throws IllegalArgumentException, IOException
Read schedule from Text file Entries are free format, comma delimited fields in the order Source name, Qualfier, Duration, BJorC, [Ra, Dec], Bands, Bandwidths, UserDefault, NRAODefault. Once a value has been entered in a field it becomes the default in further entries. Defaulted fields must still be indicated by a terminating comma.

Parameters:
the - list to be added to
the - name of the file
the - associated observation (schedule).
Throws: FileNotFoundException
if can't find.
Throws: IOException
if problem opening, reading or closing
 o GetCalibratorPosition
 public static boolean GetCalibratorPosition(VLAScan theScan,
                                             ListBlock calList,
                                             Observation Obs)
Lookup calibrator in calibrator list and fill in info if found.

Parameters:
VLAScan - the Scan being updated
ListBlock - the Calibrator list
Observation - the associated observation (schedule).
Returns:
boolean true if calibrator found, else false
 o GetPosition
 public static void GetPosition(int lineCount,
                                VLAScan theScan,
                                String BJorC,
                                String Ra,
                                String Dec)
Check and fill in source position information

Parameters:
int - Line number for error messages
VLAScan - the Scan being updated
String - the code for position type B=B1950, J=J2000
String - the deblanked RA (hhmmss.s) string
String - the deblanked Dec (-ddmmss.s) string

All Packages  Class Hierarchy  This Package  Previous  Next  Index