timelineplot -tp /Pathtotimelinedata -ap /PathtoADFsummarytable -o outputpostscriptfilenameThe -tp and -ap command-line inputs are required. The -o command-line input is optional; if not specified, the default output file name is timelineplot.ps and is located in the current directory.
timelineplot produces a temporary file called timelineplot.inp which contains the paths the user specifies. This file is used by the next level IDL routine, and deleted as the perl program exits. timelineplot also creates a logfile, which the user may delete when the script runs sastisfactorily. The primary output file is called timelineplot.ps by default (unless the -o switch is specified). This is a standard (color) postscript file, and may be viewed or printed as such. Be aware that there will be ~15 pages per day of the timeline.
* readcol.pro is in the astrolib library of IDL routines. All other routines were written by me.
Details about level (2):
subtimelineplot.pro
first reads all the input files. tfile is
the planned data file, sfile is the scheduled datafile, and adffile is
the ADFsummary.tbl3 file. Then, for each orbit, it sequentially selects,
orders, and otherwise manipulates the variables read in from the data files.
It also determines the name of the timeline directory and the first day
of the timeline.
It first plots the planned data (if any) and color codes it by planfile,
and positions it by priority and position angle on the orbit. Next, the
scheduled data is plotted in the same manner. Each tile is marked with
an index number which is consistent between the plots within the orbit,
and the tables printed on the page. The two tables are printed by subroutines.
Summary.pro prints the information about the scheduled tiles,
and info.pro prints the information about the planned but unscheduled tiles
below. Finally, a key indicating the color code for each planfile is printed.
readplan.pro
was written to read the files created by David Henderson which are
in spreadsheet format. The columns are tab-separated, and there may be
comments. This routine handles both conditions.
readcol
is from the astrolib idl library. It is simple and easy to run. Although
it is not very fast for large files, in the right situations it is better
than creating new code.
boxboy.pro
is a utility to quickly determine the parameters of a box (tile) to
be drawn. Given the two x coordinates (beg, last), the priority, and the
half-height, it will return two vectors of x, y, and the center of the
box.
info.pro
prints a table of information about the tiles that didn't get scheduled.
The index for each line corresponds to the numbers on the tiles in the
upper plot.
The table headings are:
Ind - the index number
AreaID - given by the planners
RA, DEC - regular coordinates
ObsID - this is an incomplete obsid because the tile has not
been scheduled
Beg, End, Dur - are in degrees of orbit angle as given in tfile.
Beg corresponds to "lambda_beginsettle_d", End corresponds to "lambda_term_d"
and Dur is the difference. These will differ from reports by Fan and Wen.
See Fan's
notes on duration.
Planfile - source_planfile
Note - first two characters of the Note field
Truncatable - 0=no, 1=yes. Not the same as Truncated.
summary.pro
Similar to info, except it gives information about the tiles that were
scheduled. Since it is the first table on the page, it also lists what
day of the timeline this orbit is for. It runs timecheck, to see if the
durations (in seconds) are within the allowed range. The allowed range
is in the file ADFsummary.tbl3. The index for each line corresponds to
the numbers on the tiles in both plots.
The table headings are:
Ind - the index number
AreaID - given by the planners
Planned angles (beg, end, dur) - Same as in info.pro
Scheduled angles (beg, end, dur) - Same is in info.pro, except
these are taken from sfile.
Scheduled times (daynumber)(beg, end, dur) - Corresponds to
mjd_beginsettle, mjd_term, and the difference. Beg and End both are mod
360 so that the integer part of the day corresponds to an actual day of
year number. Dur is obtained by finding the difference (before doing the
mod360) and multiplying it by 86400(number of seconds in a day). The Dur
column is shown with some numbers in red (we hope it's red) and either
a caret (^) or lower case "v" next to it. The red indicates if it is out
of the allowed range, and the ^ indicates if the duration is too great,
while the "v" indicates if it is too small.
key.pro
is a very simple utility that creates the color key for the plot. Because
the colors change from terminal to terminal, we need to have a current
key. This key shows what color each plan file is coded.
plancolor.pro
looks at the planfile associated with the particular tile and assigns
it a color for plotting.