# File lib/rvsao.h # February 5, 2002 # RVSAO 2.2 header file define VERSION "2.2.5" define C 2.9979e5 define LN2 0.69314718 define CLN10 6.90292e5 define TWOPI 6.283185 define MIN_PIXEL_VALUE -1000000 # Minimum legal pixel value define MAX_RANGES 50 define MAXPTS 16384 define MAXPTS2 8192 define MAXTEMPS 256 define MAXCACHE 0 define MAXLOG 5 define NPAR 4 define SZ_HSTRING 68 define SZ_HKWORD 9 define CZMIN -500. define CZMAX 50000. define SIGMIN 25. define SIGMAX 750. define GAMMIN 0.25 define GAMMAX 1.50 define CHIMIN 0.2 define CHIMAX 10.0 define ERRMIN 0.0001 define ERRMAX 10. # Velocity correction flags define HC_VTYPES "|none|file|heliocentric|barycentric|hfile|" define NONE 1 # no correction define FBCV 2 # Barycentric correction from file BCV define HCV 3 # Heliocentric correction define BCV 4 # Solar system barycentric correction define FHCV 5 # Heliocentric correction from file HCV # Velocity types define VCORREL 1 # Velocity from cross-correlation define VEMISS 2 # Velocity from emission line fit define VCOMB 3 # Velocity from emission and correlation define VSEARCH 4 # Velocity guessed from spectrum define VGUESS 5 # Velocity guess from parameter file define ZGUESS 6 # Velocity/c guess from parameter file define VCORTEMP 7 # Velocity from correlation of template # Velocity plotting flags define PL_VTYPES "|correlation|emission|combination|search|guess|" # Initial velocity flags define IEM_VTYPES "|correlation|emission|combination|search|guess|zguess|cortemp|" # Correlation flags define COR_TYPES "|no|velocity|pixel|wavelength|yes|" define COR_NO 1 # Do not cross-correlate define COR_VEL 2 # Cross-correlate velocity shift define COR_PIX 3 # Cross-correlate pixel shift define COR_WAV 4 # Cross-correlate wavelength shift define COR_YES 5 # Cross-correlate velocity shift # Jul 3 1995 Last undocumented revision # Feb 5 1997 Add velocity plotting and initial velocity flags # Mar 20 1997 Version 2.0 # Apr 25 1997 Add zguess velocity flag # May 19 1997 Add vcortemp velocity flat for initial velocities # Feb 13 1998 Increase maximum number of correlation points to 16,384 # Mar 4 1998 Fix BCVCORR # Apr 7 1998 Fix SUMSPEC # May 15 1998 Allow minvel and maxvel to be INDEFD # Jun 12 1998 2.0b17: Use pixel limits of WCS # Jul 31 1998 2.0: Add toggling of heading in emsao mode 3 summary graph # Dec 30 1998 2.1b1: Fix bug in XCSAO template pathname list handling # Dec 30 1998 2.1b1: Increase maximum templates to 256 # Mar 18 1999 2.1b3: Multiply by 1000 after renormalizing # Mar 30 1999 2.1b5: Allow use of OBSERVAT keyword for observatory location # Apr 6 1999 2.1b6: Read templates only once # May 11 1999 2.1b7: Fix SUMSPEC spectrum stacking # Jun 10 1999 2.1b9: Add more options to SUMSPEC # Jun 30 1999 2.1b11: Fix bug using template vel and HCV in XCSAO # Jul 16 1999 2.1b12: Fix bug so QPLOT updates headers # Jul 23 1999 2.1b13: Fix null report entries and add EMSAO tab table reports # Jul 29 1999 2.1b14: Add XCSAO tab table reports; SUMSPEC constant normalize # Aug 18 1999 2.1b15: SUMSPEC divide continuum no longer subtracts 1 # Sep 7 1999 2.1b16: Set CD matrix in SUMSPEC; fix dependency bugs # Sep 15 1999 2.1b17: Fix tab table output from XCSAO # Sep 24 1999 2.1.18: Fix EMSAO and XCSAO to update if quality flag is set # Dec 6 1999 2.1.19: Free image WCS structure correctly # Jan 25 2000 2.1.20: Add option to not remove object spectrum continuum # Mar 6 2000 2.1.21: Fix bug in LINESPEC when using redshift as Z # Apr 22 2000 2.1.22: Add 1900 to years from 0-120, not just 0-99 # Jul 5 2000 2.1.24: Automate renormalization # Jul 21 2000 2.1.25: Add BCV adjustment without target velocity to SUMSPEC # Aug 2 2000 2.1.26: Fix echelle spectrum number tracking # Aug 10 2000 2.1.27: Fix bug in EMSAO which sorted lines poorly # Sep 13 2000 Version 2.2: Add wavelength correlation and partial templates # Feb 9 2001 2.2.1: Fix XCSAO to work with reversed spectra # Mar 28 2001 2.2.2: Fix EMSAO to work with reversed spectra # Feb 5 2002 2.2.5: Drop ends of spectra with values below MIN_PIXEL_VALUE