Welcome to iraf.net Friday, May 03 2024 @ 02:45 PM GMT
malte |
12/17/2007 01:08PM (Read 4652 times)
|
|
|
Status: offline
Registered: 03/16/2006
Posts: 9
|
I want to transform a spectrum's wavelength axis to velocity relative to a specified spectral line. Splot does this with its command v, but I'm looking for something a bit more like scopy. Scopy looks like it might do the trick, but I'm not clear on that.It looked to me like the sequence disptrans -> dispcor would work, but after that I find that splot won't plot anything.[code:1:6cff9b0bdf]--> epar disptransTask disptrans is running...delv: Dispersion transformed to km/s.
--> epar dispcorTask dispcor is running...delv: Resampling using current coordinate system
delv0: ap = 1, w1 = -2000., w2 = 2000., dw = 30.07519, nw = 134
--> splot delv0
Killing IRAF task `splot'
Traceback (innermost last):
File "<CL script CL1>", line 1, in ?
IrafError: Error running IRAF task splot
IRAF task terminated abnormally
ERROR (1, "Error in velocity reference wavelength")[/code:1:6cff9b0bdf]
|
|
|
|
fitz |
12/17/2007 01:08PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
DISPTRANS is the correct task to use, e.g. something like[code:1:3e6cc3d1db]cl> disptrans inspec outspec units="km/s 6707.76 angstroms'[/code:1:3e6cc3d1db]will reset the WCS to be in velocity units relative to the 6707.76 line. An SPLOT or
WSPECTEXT, etc should show the new units. You can also use SLIST to print out the dispersion information.-Mike
|
|
|
|
malte |
12/17/2007 01:08PM
|
|
|
Status: offline
Registered: 03/16/2006
Posts: 9
|
Thanks. That does seem to do the trick, or at least for WSPECTEXT. But SPLOT still shows wavelengths in Å rather than km/s, which makes it harder for me to check that I'm doing the right thing. If I SPLOT the DISPCORred spectra they just look like resampled versions of the original one.
|
|
|
|
valdes |
12/17/2007 01:08PM
|
|
|
Status: offline
Registered: 11/11/2005
Posts: 728
|
Hi,The distinction between how the pixels are stored, what the associated WCS is, and how things are display can be confusing. SPLOT will normally display things in a standard way which can be different than the pixel sampling and dispersion solution are given in the image. For example, SPLOT will generally display in linear Ang even if the data are dispersion corrected to uniform log intervals (for some RV analysis).To check things you would need to look at the WCS in the header with IMHEAD. As a hint, you can use a non-spectral task like IMPLOT setting things to be shown in "world" coordinates. THis should show things in the actual dispersion system.I hope these comments are helpful.Yours,
Frank Valdes
|
|
|
|
| |
|
Content generated in: 0.13 seconds |
|