The input is an image. The input image can have any
number of dimensions. The input can have the
following data type: "byte" (BITPIX=8), "short"
(BITPIX=16), "long" (BITPIX=32), "float" (BITPIX=-32),
and "double" (BITPIX=-64).
Currently, there MUST be a real part to the data,
though the imaginary part can be "none".
The image can be a virtual image as defined by the
datamodel, e.g. "my_file.fits[EVENTS][bin
x=1:100:1,y=1:100:1]".
A table array must contain at least two columns. The
first column, used to determine the Fourier
frequencies, must be evenly spaced, and cannot contain
any data gaps. In practice, roundoff errors in
generating time bins may make this problematic, and the
time column may have to be replaced with a uniformly
spaced grid. This can be achieved, for example, via
dmtcalc using the following command:
dmtcalc infile=my_ltc.fits outfile=my_fixed_ltc.fits
expression="INT_TIME((long)#row)"
The new column, INT_TIME, now contains the integer
value of the row number from the lightcurve, which is
guaranteed to be evenly spaced (although information
about data gaps is not retained). One can then create
the psd via:
apowerspectrum infilereal="my_fixed_ltc.fits[cols
in_time,total_counts]" outfile=my_psd.fits
The output file my_psd.fits contains the frequency column
INV_INT_TIME, and the psd is found in the DATA column.