Hey guys,
Just wanted to follow up on this, as I have the same INDEF velocity issue, and no suggestions I have encountered worked for me.
My template files are generated via
rspectext from text files, with the first column containing wavelength values 3000, 3001, 3002, ..., 10000, and the second containing the flux values. Afterwards I add a set of headers. My headers currently look like this:
rv\$this->_split2($m[0]) imhead J024010.8-141630_temp.fits longheader=yes
J024010.8-141630_temp.fits[7001][real]:
No bad pixels, min=0., max=0. (old)
Line storage mode, physdim [7001], length of user area 1256 s.u.
Created Mon 13:13:08 22-Oct-2018, Last modified Mon 13:13:08 22-Oct-2018
Pixel file "J024010.8-141630_temp.fits" [ok]
EXTEND = F / File may contain extensions
ORIGIN = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator
DATE = '2018-10-18T15:32:57' / Date FITS file was generated
IRAF-TLM= '2018-10-22T17:13:08' / Time of last modification
DC-FLAG = 0
CRPIX1 = 1.
CRVAL1 = 3000
CDELT1 = 1.
DATE-OBS= '1993-03-17T04:56:38.0'
RA = 12.
DEC = 12.
EPOCH = 1993.
OBSERVAT= 'KPNO '
VHELIO = 0.
W0 = 3000
WPC = 1.
CUNIT1 = 'angstroms'
CTYPE1 = 'LINEAR '
No matter what I try to cross-correlate this *.fits file with, I get an INDEF velocity, but not always an INDEF velocity error. For example, if I cross-correlate this template with itself, I get:
rv\$this->_split2($m[0]) fxcor J024010.8-141630_temp.fits J024010.8-141630_temp.fits interactive=no verbose=stxtonly output='test200'
rv\$this->_split2($m[0]) cat test200.txt
#K IRAF = NOAO/IRAF V2.16 version
#K USER = dgudin name
#K HOST = crcfe01.crc.nd.edu computer
#K DATE = 2018-10-22 yyyy-mm-dd
#K TIME = 13:31:33 hh:mm:ss
#K PACKAGE = rv name
#K TASK = fxcor name
#
#T Template ' A' -- Object = '' \*
# Image = 'J024010.8-141630_temp.fits' Vhelio = 0.00
#
# Velocity Dispersion = 51.56 Km/sec/pixel Rebinned WPC = 7.46970E-5
#
#N OBJECT IMAGE REF HJD AP SHIFT FWHM VHELIO VERR
#U name image days pixel km/s km/s
#
J024010.8- A INDEF 1 -0.000 1109.93 INDEF 0.000
My observation spectra are SDSS spectra in the IRAF format, and they work fine when cross-correlated with each other:
rv\$this->_split2($m[0]) fxcor J024010.8-141630_obs_mod.fits J024010.8-141630_obs_mod.fits interactive=no verbose=stxtonly output='test210'
rv\$this->_split2($m[0]) cat test210.txt
#K IRAF = NOAO/IRAF V2.16 version
#K USER = dgudin name
#K HOST = crcfe01.crc.nd.edu computer
#K DATE = 2018-10-22 yyyy-mm-dd
#K TIME = 13:33:34 hh:mm:ss
#K PACKAGE = rv name
#K TASK = fxcor name
#
#T Template ' A' -- Object = 'J024010.8-141630' \*
# Image = 'J024010.8-141630_obs_mod.fits' Vhelio = INDEF
#
# Velocity Dispersion = 92.08 Km/sec/pixel Rebinned WPC = 1.33385E-4
#
#N OBJECT IMAGE REF HJD AP SHIFT FWHM VHELIO VERR
#U name image days pixel km/s km/s
#
J024010.8-1 J024010.8- A 6911.95076 1 -0.000 1896.38 -0.0008 0.000
But, again, cross-correlating them with templates always leads to INDEF:
rv\$this->_split2($m[0]) fxcor J024010.8-141630_obs_mod.fits J024010.8-141630_temp.fits interactive=no verbose=stxtonly output='test220'
rv\$this->_split2($m[0]) cat test220.txt
#K IRAF = NOAO/IRAF V2.16 version
#K USER = dgudin name
#K HOST = crcfe01.crc.nd.edu computer
#K DATE = 2018-10-22 yyyy-mm-dd
#K TIME = 13:34:23 hh:mm:ss
#K PACKAGE = rv name
#K TASK = fxcor name
#
#T Template ' A' -- Object = '' \*
# Image = 'J024010.8-141630_temp.fits' Vhelio = 0.00
#
# Velocity Dispersion = 51.56 Km/sec/pixel Rebinned WPC = 7.46970E-5
#
#N OBJECT IMAGE REF HJD AP SHIFT FWHM VHELIO VERR
#U name image days pixel km/s km/s
#
# Velocity Dispersion = 51.56 Km/sec/pixel Rebinned WPC = 7.46970E-5
J024010.8-1 J024010.8- A INDEF 1 0.629 855.87 INDEF 196.080
What could be causing this?
Thanks a lot!