SADD N1 N2 N3 HJD0 PERIOD METHOD AC AS -- Adds or multiplies a set of spectra by a sinusoid of fixed period at every wavelength. Useful for computing window function with SDEC NB. This routine has to access the arrays in the wrong direction and may therefore page fault alot. Parameters: N1 -- Slot number of first spectrum to process N2 -- Slot number of last spectrum to process N3 -- Slot of first output spectrum HJD0 -- HJD0 of sinusoid PERIOD - Period of sinusoid METHOD - 'A' -- Add to data according to D = D + sinusoid 'M' -- Multiply data. D = D*(1.+sinusoid) 'R' -- Replace data. D = sinusoid AC -- Amplitude of cosine component AS -- Amplitude of sine component. Sinuosoid computed as AC*COS(2*PI*PHI)+AS*SIN(2*PI*PHI) where PHI = (HJD-HJD0)/PERIOD
This command belongs to the classes: time series and binary .