;This is the file with all the basic SCF parameters set by the user. file0='samplecube.fits';The name of the FITS file to be analyzed flag=1 ;Some fits cubes have velocity in the first ;dimension (flag=1) and some have it in the ;third dimension (flag=0) q=4 ;The number of FWHMs to include in each ;direction from the velocity centroid s2n=5 ;The signal to noise threshold for rejecting ;spectra flag2=1 ;Setting this flag to 1 causes the SCF ;routines to add noise to all the data such ;that the signal to noise ratio is that ;given by the variable s2n tol=0.01 ;This is the percentage error allowed in the ;final signal to noise value when adding noise ;to data res=3 ;The size of the SCF processing box in pixels. ;The data are only processed in an r x r box. smw=0 ;The number of widths to use in a running ;boxcar smoothing of the data to reduce noise. ;A value of 0 indicates no smoothing. flag3=0 ;randomizes the data and processes the cube again ;when this flag is set to 1. flag4=0 ;Uses a simpler routine than Gaussian Fitting to ;estimate widths: simply chooses width to be point ;where spectrum is 30% of maximum. Active when ;flag4 is set to 1 flag5=1 ;If flag4 is set to 1 then when flag5 is set to ;1, the program uses that Gaussian fits to ;create a map of the line parameters, but not ;for SCF calculation. ;The following procedures generates the masking function for the SCF ;algorithm using IDL commands. The dmask batch file creates a r x r ;array with each entry being the distance in pixels from the center. ;@dmask ;mask=(mask le 2) ;To create a uniform mask, uncomment the following line: mask=replicate(1.,res,res) ;mask(1:res-2,1:res-2)=0.