Processing math: 100%

5 Menu Options

PERIOD is a menu-driven package. On entering PERIOD, you will be confronted with the following menu options, which are described in greater detail below.

  |**************************************************|
  |**| PERIOD  :>  A time-series analysis package |**|
  |**| Version :>  5.0 for UNIX                   |**|
  |**| Date    :>  12 December 2001               |**|
  |**************************************************|
  
  Options.
  --------
  
  INPUT    --  Input ASCII file data.
  OGIP     --  Input OGIP FITS table data
  FAKE     --  Create fake data.
  NOISE    --  Add noise to data.
  DETREND  --  Detrend the data.
  WINDOW   --  Set data points to unity.
  OPEN     --  Open a log file.
  CLOSE    --  Close the log file.
  PERIOD   --  Find periodicities.
  FIT      --  Fit sine curve to folded data.
  FOLD     --  Fold data on given period.
  SINE     --  +, -, / or * sine curves.
  PLT      --  Call PLT.
  STATUS   --  Information on stored data.
  OUTPUT   --  Output data.
  HELP     --  On-line help.
  QUIT     --  Quit PERIOD.
  
  PERIOD>

Any one of these commands can be entered by typing anything from the shortest unambiguous string up to the full command name. Therefore, P would be ambiguous, but PE would not.

INPUT

As described in section 3.1, this option allows you to input ASCII data into PERIOD. The routine determines the number of columns in the input files and then prompts the user for which columns refer to the x-axis, y-axis and y-axis errors (if desired, see section 3). For example, if the user is inputting radial velocity data, the x-axis would most probably be HJD’s, the y-axis the heliocentric radial velocities and there would most likely be errors associated with each radial velocity value. Note that the x-axis values must be in ascending order, otherwise INPUT will report a warning and either sort the data (if requested to do so) or abort. Note also that the y-axis errors are used by all options in the main PERIOD menu, but by only the CHISQ periodicity-finding option in the period_period sub-menu.

OGIP

As described in section 3.2, this option allows you to input data from an OGIP FITS table into PERIOD. The routine displays some information about the file requested and allows you to choose which of its available tables is to be examined. You then select which of the columns in the file refers to the x-axis, y-axis and y-axis errors (if desired, see section 3).

FAKE

Allows you to create fake data with which to test or experiment with PERIOD. Two options are catered for: periodic data or chaotic data. The periodic data are created by summing a user-specified number of sine curves of the form:

  Y = GAMMA + (AMPLITUDE * SIN( ((2.0*PI)/PERIOD) * (X - ZEROPT)))

The chaotic data are created using a simple logistic equation of the form:

  Xn+1 = LAMBDA * Xn * (1-Xn)

(see, for example, Scargle 1990ab).

NOISE

Using this option, it is possible to add noise to data or randomize data. The latter operation is carried out by specifying the [N]ew dataset option, which will construct an artificial dataset of the same mean value and the same standard deviation as the original. Selecting the [O]ld dataset allows you to apply noise to data, create errorbars on the data points, and/or add noise to the data sampling (so that, for instance, an evenly sampled dataset becomes unevenly sampled). This routine is useful, not only in creating realistic artificial datasets (in conjunction with FAKE), but also in investigating the effects of noise on a period detection.

DETREND

This option removes the D.C. bias from data, which if not removed gives rise to significant power at 0 Hz. There are two options: If the data show no long term trends, it is best to simply subtract the mean and divide by the standard deviation (the [M] option). This gives a dataset with a mean of zero and a standard deviation of one. Otherwise, it is best to subtract a low-order polynomial fit to the data (the [P] option), since if these are not removed, a Fourier transform will inject a significant amount of power at the frequency of the long term variations.

WINDOW

One of the main problems with the classical periodogram1 (see Scargle 1982 for a definition), is spectral leakage, of which there are several forms. Leakage to nearby frequencies (sidelobes) is due to the finite total interval over which the data is sampled. Leakage to distant frequencies is due to the finite size of the interval between samples. The WINDOW option sets all the y-axis data points to unity. A discrete Fourier transform of the resulting data (using, for example, the FT option, see below) yields the window function (or spectrum), which shows the effects of spectral leakage.

OPEN

It is possible to store the fits calculated by SINE and PEAKS in a log file. This option opens a new log file (if it does not already exist), or else re-opens an old log file and skips over the existing entries.

CLOSE

This option closes the currently open log file.

PERIOD

This is where all the work is done. You will be confronted by the following sub-menu:

  Options.
  --------
  
  SELECT   --  Select data slots.
  FREQ     --  Set/show frequency search limits.
  CHISQ    --  Chi-squared of sine fit vs frequency.
  CLEAN    --  CLEANed power spectrum.
  FT       --  Discrete Fourier power spectrum.
  PDM      --  Phase dispersion minimization.
  SCARGLE  --  Lomb-Scargle normalized periodogram.
  STRING   --  String-length vs frequency.
  PEAKS    --  Calculate period from periodogram.
  SIG      --  Enable/disable significance calc.
  HELP     --  On-line help.
  QUIT     --  Quit PERIOD_PERIOD.
  
  PERIOD_PERIOD>

Returning to the main PERIOD menu:

FIT

Folds the data on a given period and zero point and then fits the data with a sine curve. The sine curve has the form: Y = GAMMA + (AMPLITUDE * SIN( ((2.0*PI)/PERIOD) * (X - ZEROPT) )). Outputs the fit parameters (which can be written to a log file) and the resulting sine curve.

FOLD

Folds the data on a given period and zero point. Hence, this option transforms the data onto a phase scale, where one phase unit is equal to one period and phase zero is defined by the zero point. If the zero point is not known, the data can be folded by taking the first data point as the zero point. This option is useful for checking whether derived periods actually give sensible results when applied to the data. In addition to normal folding, it is also possible to phase bin the data, which folds the data and then averages all the data points falling into each bin.

SINE

Adds, subtracts, multiplies or divides a sine curve from data. The sine curve has the form: Y = GAMMA + (AMPLITUDE * SIN( ((2.0*PI)/PERIOD) * (X - ZEROPT) )). This option is useful for removing or adding known periods from/to data, thus enabling or testing the detection of other periods.

PLT

This routine calls PGPLOT routines to display the graphs of the slots requested. The layout of the displays is fixed but output file types such as landscape postscript files can be created. This represents slightly less functionality than the original XANADU based QDP PLT routine, but no QDP PLT routine is currently available for LINUX.

In order to receive on-line help, simply type HELP at the PERIOD-PLT prompt. To exit PERIOD-PLT and return to the PERIOD menu, type EXIT.

STATUS

Returns information on the data slots or on the stored fits in the log file. This command is useful in order to check which slots contain which datasets and also as a means of obtaining some elementary statistics on the stored data. You can also use this option to check the fits from the SINE and PEAKS options stored in the log file without having to exit the package and read the log file.

OUTPUT

Writes any selected slot to an ASCII file on disk. This is the only way of saving data created by PERIOD (it does not write to FITS files), and should therefore be run before QUITing in order to store, say, a power spectrum.

HELP

This command provides on-line help for PERIOD. Detailed information about individual commands can be obtained by typing HELP ’COMMAND’ (eg. HELP PERIOD).

QUIT (or EXIT)

This option quits a PERIOD session. However, it does provide a last chance to stay in the package. This is essential to prevent accidental exit, since any data files created using PERIOD will be lost on exit from the package unless one OUTPUTs the data first.

1Throughout the PERIOD package and this document, the terms power spectrum and periodogram are used interchangeably, although strictly speaking the power spectrum is a theoretical quantity defined as an integral over continuous time, of which the periodogram is merely an estimate based on a finite amount of discrete data (Scargle 1982).