View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

disptrans : Image header parameter not found (EXTVE

Paula R. T. Coelho wrote on May 08, 2006

hello,

i'm trying to use disptrans to transform an SDSS spectrum from vaccum to air wavelength but i get

onedspec> disptrans sloanstar1 sloanstar1air angstroms air=vac2air
Warning: Image header parameter not found (EXTVER)

I read in another forum here that this message can be hiding another error, then i tried adding the keywork

onedspec> hedit sloanstar1.fits EXTVER 1. add=yes
add sloanstar1.fits,EXTVER = 1.
update sloanstar1.fits ? (yes):
sloanstar1.fits updated

But i keep getting the EXTVER not found message.

any idea how can i get to the source of the problem? i'm putting below the image header.

thx a lot
paula

sloanstar1.fits[3834,4][real]:
No bad pixels, min=0., max=0. (old)
Line storage mode, physdim [3834,4], length of user area 9963 s.u.
Created Mon 15:33:12 08-May-2006, Last modified Mon 15:33:16 08-May-2006
Pixel file "sloanstar1.fits" [ok]
EXTEND = T / File may contain extensions
ORIGIN = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator
DATE = '2006-05-08T18:24:41' / Date FITS file was generated
IRAF-TLM= '15:33:16 (08/05/2006)' / Time of last modification
TAI = 4477370385.46 / 1st row - Number of seconds since Nov 17 1858
RA = 39.823125 / 1st row - Right ascension of telescope boresigh
DEC = 0.036658 / 1st row - Declination of telescope boresight (d
EQUINOX = 2000.00 /
RADECSYS= 'FK5 ' /
AZ = 329.972577785 / 1st row - Azimuth (encoder) of tele (0=N?) (de
ALT = 53.0977644093 / 1st row - Altitude (encoder) of tele (de
AIRMASS = 1.23933216438 /
FOCUS = -999999999999.999999 / 1st row - Focus piston (microns?)
DATE-OBS= '2000-10-04' / 1st row - TAI date
TAIHMS = '09:38:13.99' / 1st row - TAI time (HH:MM:SS.SS) (TAI-UT = appr
TIMESYS = 'tai ' / TAI, not UTC
TAI-BEG = 4477368127.00 / Exposure Start Time
TAI-END = 4477372240.00 / Exposure End Time
MJD = 51821 / MJD of observation
MJDLIST = '51821 ' /
VERSION = 'v3_18_4_1' / version of IOP
CAMVER = 'SPEC2 v4_5' / Camera code version
OBSERVER= 'snedden '
OBSCOMM = 'science '
TELESCOP= 'SDSS 2.5-M' / Sloan Digital Sky Survey
NEXP = 16 / Number of exposures in this file
EXPID00 = 'b1-51821-00006914-00006919-00006920' / ID string for exposure 0
EXPID01 = 'b1-51821-00006915-00006919-00006920' / ID string for exposure 1
EXPID02 = 'b1-51821-00006916-00006919-00006920' / ID string for exposure 2
EXPID03 = 'b1-51821-00006917-00006919-00006920' / ID string for exposure 3
EXPID04 = 'b2-51821-00006914-00006919-00006920' / ID string for exposure 4
EXPID05 = 'b2-51821-00006915-00006919-00006920' / ID string for exposure 5
EXPID06 = 'b2-51821-00006916-00006919-00006920' / ID string for exposure 6
EXPID07 = 'b2-51821-00006917-00006919-00006920' / ID string for exposure 7
EXPID08 = 'r1-51821-00006914-00006919-00006920' / ID string for exposure 8
EXPID09 = 'r1-51821-00006915-00006919-00006920' / ID string for exposure 9
EXPID10 = 'r1-51821-00006916-00006919-00006920' / ID string for exposure 10
EXPID11 = 'r1-51821-00006917-00006919-00006920' / ID string for exposure 11
EXPID12 = 'r2-51821-00006914-00006919-00006920' / ID string for exposure 12
EXPID13 = 'r2-51821-00006915-00006919-00006920' / ID string for exposure 13
EXPID14 = 'r2-51821-00006916-00006919-00006920' / ID string for exposure 14
EXPID15 = 'r2-51821-00006917-00006919-00006920' / ID string for exposure 15
EXPT_B1 = 3600.00 / b1 camera exposure time (seconds)
EXPT_B2 = 3600.00 / b2 camera exposure time (seconds)
EXPT_R1 = 3600.00 / r1 camera exposure time (seconds)
EXPT_R2 = 3600.00 / r2 camera exposure time (seconds)
EXPTIME = 3600.00 / Minimum of exposure times for all cameras
SPCOADD = 'Mon Sep 1 21:13:49 2003' / SPCOADD finished
FLAVOR = 'science ' / Flavor of this sequence (e.g., dome flat, etc.)
QUALITY = 'excellent' / night/image quality
RADEG = 3.98223500000000E+01 / Right Ascension. (degrees)
DECDEG = 3.68630600000000E-02 / Declination. (degrees)
PLATEID = 408 / Plate Id
TILEID = 197 / Tile Id
CARTID = 9 /Cartridge used in this plugging
MAPID = 5182102 / Map Id
NAME = '0408-51821-02' / Name of target; PlateId-MJD-Mapper ReRun
NGUIDE = 16.0000 / Number of guider frames during exposure
SEEING20= 1.53681446492 / 20% seeing during exposure (arcsec)
SEEING50= 1.64974968034 / 50% seeing during exposure (arcsec)
SEEING80= 1.76931809261 / 80% seeing during exposure (arcsec)
RMSOFF20= 0.138139495707 / 20% RMS offset of guide fibers (arcsec)
RMSOFF50= 0.249123691615 / 50% RMS offset of guide fibers (arcsec)
RMSOFF80= 0.406596337035 / 80% RMS offset of guide fibers (arcsec)
COLBIN = 1 / Binning factor perpendicular to the columns
ROWBIN = 1 / Binning factor perpendicular to the rows
PROGRAM = 'binning 1 1 ' / Identifying name for CCD program
SECFOCUS= -3.0000000000000E+02 / Secondary Mirror Position as reported by TCC
GUIDEIMG= '/data/spectro/guider/gimg0029.fits' / Last archived guider image
WTIME = 970652994.359 / weatherData(timeStamp)
AIRTEMP = 15.1452275505 / weatherData(airtemp)
DEWPOINT= 0.857760528923 / weatherData(dewpoint)
DEWDEP = 14.2874670216 / weatherData(dewpointDep)
DUSTA = 61120.2201540 / weatherData(dusta)
DUSTB = 537.268330712 / weatherData(dustb)
DUSTC = 68073.0110964 / weatherData(dustc)
DUSTD = 547.157499575 / weatherData(dustd)
GUSTD = 3.08000000000000E+02 / weatherData(gustd)
GUSTS = 9.74286287350 / weatherData(gusts)
HUMIDITY= 37.8974104345 / weatherData(humidity)
HUMIDOUT= 37.3601084138 / weatherData(humidout)
PRESSURE= 21.5400000000 / weatherData(pressure)
WINDD = 305.913491052 / weatherData(windd)
WINDS = 7.09375639001 / weatherData(winds)
TEMP01 = -93.7500000000 / CCD 01 Temperature
TEMP02 = -93.0941494094 / CCD 02 Temperature
TEMP03 = -92.3814214190 / CCD 03 Temperature
TEMP04 = -92.9700000000 / CCD 04 Temperature
VERSIDL = '5.4 ' / Version of IDL
VERSUTIL= 'v4_10_1 ' / Version of idlutils
VERSREAD= 'v4_10_2 ' / Version of idlspec2d for pre-processing raw dat
VERS2D = 'v4_10_2 ' / Version of idlspec2d for 2D reduction
VERSCOMB= 'v4_10_2 ' / Version of idlspec2d for combining multiple spe
VERSLOG = 'Unknown ' / Version of SPECLOG product
VERSFLAT= 'v1_5 ' / Version of SPECFLAT product
OPBC = 'opBC-51813.par' /
OPCONFIG= 'opConfig-50000.par' /
OPECALIB= 'opECalib-51577.par' /
XSIGMA = 0.918579339746 /
XSIGMIN = 0.820862000000 /
XSIGMAX = 1.04901003838 /
WSIGMA = 0.912259866150 /
WSIGMIN = 0.864332000000 /
WSIGMAX = 0.978789000000 /
PLUGFILE= 'plPlugMapM-0408-51821-02.par' /
LAMPLIST= 'lamphgcdne.dat' /
SKYLIST = 'skylines.dat' /
HELIO_RV= -12.0629158238 / Heliocentric correction (added to velocities)
VACUUM = T / Wavelengths are in vacuum
SFLATTEN= T / Superflat has been applied
PSFSKY = 3 / Order of PSF skysubtraction
SKYCHI2 = 0.968751791627 / Mean chi^2 of sky-subtraction
SCHI2MIN= 0.914645000000 /
SCHI2MAX= 1.03406000137 /
PREJECT = 0.200000 / Profile area rejection threshold
SPEC1_G = 34.1012 /(S/N)^2 for spec 1 at mag 20.20
SPEC1_R = 40.4345 /(S/N)^2 for spec 1 at mag 20.25
SPEC1_I = 35.5231 /(S/N)^2 for spec 1 at mag 19.90
SPEC2_G = 35.9007 /(S/N)^2 for spec 2 at mag 20.20
SPEC2_R = 35.8616 /(S/N)^2 for spec 2 at mag 20.25
SPEC2_I = 34.6549 /(S/N)^2 for spec 2 at mag 19.90
LOWREJ = 5 / Extraction: low rejection
HIGHREJ = 8 / Extraction: high rejection
SCATPOLY= 5 / Extraction: Order of scattered light polynomial
PROFTYPE= 3 / Extraction profile: 1=Gaussian
NFITPOLY= 1 / Extraction: Number of parameters in each profil
XCHI2 = 1.28392843009 / Extraction: Mean chi^2
XCHI2MIN= 1.17296 /
XCHI2MAX= 1.44850 /
ROFFSET1= 0.0333611 /Mean r-band mag difference (spectro - photo)
RSIGMA1 = 0.0585678 /Stddev of r-band mag difference (spectro - photo
GROFF1 = 0.0371760 /Mean (g-r) color difference (spectro - photo)
GRSIGMA1= 0.0490814 /Stddev of (g-r) color difference (spectro - phot
ROFFSET2= 0.0262775 /Mean r-band mag difference (spectro - photo)
RSIGMA2 = 0.109759 /Stddev of r-band mag difference (spectro - photo
GROFF2 = 0.0134305 /Mean (g-r) color difference (spectro - photo)
GRSIGMA2= 0.202783 /Stddev of (g-r) color difference (spectro - phot
NWORDER = 2 / Linear-log10 coefficients
WFITTYPE= 'LOG-LINEAR' / Linear-log10 dispersion
UNAME = 'sdssdp31.fnal.gov' /
SMEARUSE= T / Smear available?
TSOBJNAM= 'tsObj-0408-51821-02.fit' / Name of tsObj file used
SFD_USED= T / SFD dust maps used?
XYGRSIG1= 0.0239891 / Sigma of (g-r) offsets as a fcn of plate x/y
XYGRSIG2= 0.0281336 / Sigma of (g-r) offsets as a fcn of plate x/y
MPGRSIG1= 0.0365812 / Sigma of (g-r)_model - (g-r)_photo Spec 1
MPGRSIG2= 0.162737 / Sigma of (g-r)_model - (g-r)_photo Spec 2
MPGROFF1= 0.0280974 / Mean of (g-r)_model - (g-r)_photo of Spec 1
MPGROFF2= 0.0479176 / Mean of (g-r)_model - (g-r)_photo of Spec 2
FBADPIX = 0.0156177 / Fraction of bad pixels
FBADPIX1= 0.0123973 / Fraction of bad pixels on spectro-1
FBADPIX2= 0.0188380 / Fraction of bad pixels on spectro-2
WAT0_001= 'system=linear' /
WAT1_001= 'wtype=linear label=Wavelength units=angstroms units_display=Angstrom'
CRPIX1 = 1 / Starting pixel (1-indexed)
CTYPE1 = 'LINEAR ' /
DC-FLAG = 1 / Log-linear flag
PIXMIN = 0.00000000000000E+00 / Place Holder
PIXMAX = 2.04700000000000E+03 / Place Holder
ARRAY1 = 'SPECTRUM' / units of (10^-17 erg/s/cm^2/A
ARRAY2 = 'CONTINUUM-SUBTRACTED SPECTRUM' / units of 10^-17 erg/s/cm^2/A
ARRAY3 = 'ERROR ' / units of 10^-17 erg/s/cm^2/A
ARRAY4 = 'MASK ' / mask bit array
BUNIT = '1.0E-17 erg/cm/s/Ang' / units
SN_G = 6.36127000000000E+01 / Median S/N ration ig g'
MAG_G = 1.36001000000000E+01 / Synthetic magnitude in g'
SN_R = 6.94800000000000E+01 / Median S/N ratio in r'
MAG_R = 1.30471000000000E+01 / Synthetic magnitude in r'
SN_I = 6.44784000000000E+01 / Median S/N ratio in i'
MAG_I = 1.29136000000000E+01 / Synthetic magnitude in i'
SCI_SN = 6.42598000000000E+01 / Science signal to noise ratio
SMEAR_SN= 2.72350000000000E+01 / Smear signal to noise ratio
SM_LEG_0= 1.20654000000000E+00 / 1st legendre coeff. for smear correct
SM_LEG_1= 1.55136000000000E-01 / 2nd legendre coeff. for smear correct
SM_LEG_2= 2.95152000000000E-03 / 3rd legendre coeff. for smear correct
OBJID = ' 94 4 6 438 38' / run rerun camcol field objID
MAG = ' 23.6711 24.9325 17.2925 24.2481 16.1686' / fiber Mags
OBJTYPE = 'GALAXY ' / object Type
RAOBJ = 4.03976470000000E+01 / RA(deg) of object
DECOBJ = 1.24234180000000E+00 / DEC(deg) of object
XFOCAL = 1.25356660000000E+02 / X position in Focal plane
YFOCAL = 2.62687600000000E+02 / Y position in focal plane
PRIMTARG= 64 / primary Target Flag
SECTARGE= 0 / Secondary Target Flag
FIBERID = 528 / fiber ID
SPECID = 2 / spectrograph ID
NGOOD = 3827 / Number of Good Pixels
VERS_1D = 'v5_9_4 ' / Version of Spectro1d
BESTTEMP= 9 / Best cross-correlation template
COEFF0 = 3.58020000000000E+00 / Center wavelength (log10) of first pi
COEFF1 = 1.00000000000000E-04 / Log10 dispersion per pixel
CRVAL1 = 3.58020000000000E+00 / Iraf zero point
CD1_1 = 1.00000000000000E-04 / Iraf dispersion
1D_PDATE= '06/08/05:01:13:49' / 1D Processing/last Modification date
SPEC_CLN= 1 / Spectral Classn
VEL_DIS = -9.9990000000000E+03 / Velocity dispersion (km/s)
VEL_DISE= -9.9990000000000E+03 / Error on Velocity Dispersion (km/s)
Z = -1.0849700000000E-04 / Final redshift
Z_ERR = 6.14086000000000E-05 / Redshift error
Z_CONF = 1.00000000000000E+00 / Redshift confidence
Z_STATUS= 4 / Redshift Status
Z_WARNIN= 16 / Redshift Warning Flags
ECLASS = -2.0113600000000E-02 / galaxy classification parameter
ECOEFF1 = 9.95081000000000E-01 / 1st expansion coefficient
ECOEFF2 = 2.00174000000000E-02 / 2nd expansion coefficient
ECOEFF3 = 7.40217000000000E-02 / 3rd expansion coefficient
ECOEFF4 = 3.15033000000000E-02 / 4th expansion coefficient
ECOEFF5 = -5.4240400000000E-02 / 5th expansion coefficient
WCSDIM = 2
CTYPE2 = 'LINEAR '
CDELT1 = 1.00000000000000E-4
CDELT2 = 1.
CD2_2 = 1.
LTM1_1 = 1.
LTM2_2 = 1.
WAT1_002= 's '
EXTVER = 1.

Paula R. T. Coelho wrote on May 08, 2006

hello there,

i've actually found it. the sloan spectrum is not 1D, so i had to apply the task as

disptrans sloanstar1[0][*,1] sloanstar1air angstroms air=vac2air

paula

Last post on May 08, 2006