HTML automatically generated with rman
Table of Contents
ccdspec - print spectrum at a grid point in an image cube
ccdspec prints the spectrum (see also snapprint(1NEMO)
for more flexible options) to stdout, with a commented line that adds some
statistics on the standard deviation of the series and that of the differentials.
It also computes sigma_diff/sigma/sqrt(2)
, which should be 1 if the spectrum
is normal and uncorrelated noise. In general smoothing and/or a signal
will lower this value.
The following parameters are recognized
in any order if the keyword is also given:
Here is an example creating a
spectrum with uncorrelated noise. The stats mentioned in the commented last
line ar the pixel position and length of spectral axis, and mean/sigma
for the signal, and mean/sigma he differential spectrum. The last number
is the ratio of the two sigma and sqrt(2)
, which for normal gaussian noise
should be 1.
- Input filename. No default.
- Pixel in X to print (0=1st pixel). By default it uses the center of the
- Pixel in Y to print.
- Pixel range in Z to select. By default all
pixels are selected.
- Output scaling factors for the spectral
axis (fac1) and cube value (fac2). Note the mean/sigma output will also
be scaled by fac2. [Default: 1,1]
% ccdgen "" - noise 0,1 size=1,1,8000 seed=123 | ccdspec - | tail -3
# 0 0 8000 mean/sig 0.00102038 1.00182 9.94952e-05 1.41469 0.998513
with median=f gives the same stats
% ccdgen "" - noise 0,1 size=1,1,8000 seed=123 | ccdspec - | tabhist - 2 median=f
Mean and dispersion : 0.00102037 1.00182 0.0112014
Diff mean and disp : 9.94952e-05 1.41469 0.998513
and if an extra hanning smoothing is done, the correlation is less than
% ccdgen "" - noise 0,1 size=1,1,8000 seed=123 | ccdsmooth - - dir=z | ccdspec
- | tail -3
# 0 0 8000 mean/sig 0.000986234 0.616406 4.92386e-05 0.49548 0.568387
11-Feb-2021 V0.3 Created Q&D PJT
Table of Contents