> Hi Phil,
> great, the method described below works for me. There is one
> remaining problem that I have with spectool, and maybe you can help
> me with this:
> Is it possible to access the data that is displayed in a graph window
> (spectrum, continuum, etc.) directly from memory, i.e. without saving
> it to a fits file?
I'm not sure what you mean by access. As far as I know, whatever tools
are available in spectool or the other spectoscopy tasks (onedspec and
friends) are what you can use to access the data in memory (i.e., while
running those tools). Other than that, everything is file-based access.
> Alternatively, I look for a way to create a fits file from an ascii
> table of *unevenly* spaced wavelengths WITHOUT much smoothing due to
> interpolation. I used the rspectext task with dtype=interp, but that
> smoothes the spectrum notably. If I use the dtype=nonlinear option, I
> get a 1:1 reproduction of the spectrum that spectool can read &
> handle, but I cannot save the file, e.g. after I fitted/subtracted a
You are having the same issues as before, as the 'interp' parameter was
left out. I'll include a copy of that reply below. However, this
issue seems somewhat circular.
> So, either I find a way to produce a fits file from ascii that is
> finely sampled/interpolated (preferred), or I use the nonlinear
> version, but cannot save my results.
I hope that helps.
I did try your file, and did get the same errors.
The only workaround for this is to use the tools in onedspec on this
type of image. You can use sarith or splot ('s' key) to do arithmetic.
For other types of files, you can still use spectool, and hopefully
they should work.
I apologize that we are not able to pursue a fix for this. Hopefully
the onedspec tools will be sufficient for your needs, with respect to
these types fo files.
One further note, which is the buglog that was created for spectool,
and another workaround that I failed to include in my last email.
I hope that helps.
SYSTEM: SPT V1.2: February 2003
DATE: Tue Jun 21 11:35:40 MST 2005
BUG: When the arithmetic function needs to interpolate the
spectrum it needs a parameter "interp" which was left out. The
workaround is to type 'string interp="poly5"' after loading the SPT
package and before running SPECTOOL.
(which, if I recall, didn't seem to work for you). I'm not sure what
to suggest next.)
Post generated using Mail2Forum (http://www.mail2forum.com)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum