Next: Multi-taper methods for spectral
Up: GRASP Routines: General purpose
Previous: Function: sound()
  Contents
Example: translate
0
This example may be found in the src/examples/examples_utility directory of
GRASP, and contains an example program which translates data from the
``old 1994" Caltech 40-meter format described earlier, to the new
LIGO/VIRGO frame format. Because this code provides an example of how
the data is encoded in this new format, we have included the text of
the translation code here. The frames produced by this
translation contain about 5 seconds of data each, and are about half a
megabyte in length. The number of frames in each data file is set by the
# define FRAMES_PER_FILE
at the top of the code.
To run the utility, use the command
translate directory-name
where directory-name is the name of the directory in which
the files channel.0 to channel.15 may be found.
The FRAME format files produced by translate are labelled uniquely
by the time at which the first data point in the first frame was taken.
The choice of file names depends upon the version of the Frame library.
- For Frame library versions
, the files are labeled by their time
(in Coordinated Universal Time or UTC). An example of such a file (produced
by translate) is:
C1-94_10_15_06_18_02 .
In the file name, 94
denotes the year (we will use 01 for 2001, etc.) and 10 denotes
the month (labelled from 1 to 12). The hour ranges from 0 to 23 and in
this examples is 06. The minutes (18) ranges from 0 to 59
and the seconds (02) ranges from 0 to 61 to include leap seconds
but is normally in the range from 0 to 59. This naming convention will
be used for any data files containing one second or more of data.
- For Frame library versions
, the files are labeled by their GPS time.
The relationship between different time coordinates is explained in Section
.
An example of the corresponding file (produced
by translate) is:
C1-468915467.F
where the suffix means ``frame", and the integer is the number of seconds
after Jan 6, 1980 00:00:00 UTC.
Here C1 denotes the Caltech 40-meter prototype.
The names that will be used for the other sites are:
H2 Hanford LIGO
detectors (these will be stored in a single frame, together, with channel names
to distinguish the 2km and 4km detectors,
L for the Livingston LIGO detector V1 for the
Virgo detector, G1 for the GEO detector, T for the Tama
detector, S for the Glasgow detector, M for the Max-Plank
detector, and A for the AIGO detector.
In some cases (for example at Livingston and Hanford) additional frame files
containing trend data, with typically one sample per channel per second, and
one minute of data per frame, will be stored in files of the form H-609637094.T,
with the suffix denoting ``trend".
Includes/translate.tex
- Author:
Bruce Allen, ballen@dirac.phys.uwm.edu
- Comments:
The technique used to time-stamp this data is an attempt to correct
the poor resolution of the original data - please see the remarks in
for additional detail. Also notice that because
the sample rates of the slow/fast channels differ by a ratio of 10, we
can not easily reformat the frames with sample sizes of length
.
We expect that the FRAME format will continue to evolve, so that this
translator (and the FRAME format data) may reqire periodic updates.
Should the year have four digits (eg, 1994) for easier sorting?
Next: Multi-taper methods for spectral
Up: GRASP Routines: General purpose
Previous: Function: sound()
  Contents
Bruce Allen
2000-11-19