Difference: AAOmegaFileFormat (17 vs. 18)

Revision 182010-02-26 - RobSharp

Line: 1 to 1
 

AAOmega File Format (or, which spectrum is which object?)

Line: 135 to 135
  ;; Make a wavelength vector, note the use of CRPIX1, which is often not expected by many users. ;; If missed, the wavelength solution will tend to be wrong by half a CCD width
Changed:
<
<
crpix=fxpar(header0,'crpix1')
>
>
crpix=fxpar(header0,'crpix1')-1.0 ; The -1.0 is needed as IDL is ZERO indexed
 crval=fxpar(header0,'crval1') cdelt=fxpar(header0,'cdelt1') wave=((findgen(n_elements(spec[*,0]))-crpix)*cdelt)+crval
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback