Peter,
> > Will these lines correctly align with SpecFrames that have velocity
> > shifts present?
>
> Assuming all the SpecFrame attributes (for the spectrum and the line data)
> are correct, I'd guess so (DSB?).
Anything is possible - it's difficult to give details without knowing
exactly what it is you are trying to do. It is indeed generally a case of
making sure that all the necessary attributes are filled in. Presumably
the frequencies in the catalogue are measured in the rest frame of the
source?
If you are trying to display specified lines on a displayed spectrum, you
could try doing something like this:
1 - Within your Plot, note the index of the Current Frame and then set the
current Frame to be the CmpFrame which contains the SpecFrame describing
the X axis and the 1D Frame describing the Y axis (e.g. you may use
astFindFrame to do this if you don't already know which it is).
2 - Note the original values for the System, Unit and StdOfRest attributes
associated with the SpecFrame.
3 - Set System(1)=freq, Unit(1)=kHz, StdOfRest(1)=Source (assuming that
the SpecFrame is the first axis in the CmpFrame). Do this using the astSet
methods on the Plot object, not the SpecFrame or CmpFrame objects. This
will cause the SpecFrame to be re-mapped within the Plot to take account
of the changes made to its attributes.
4 - Do the plotting
5 - Re-instate the original values for the modified SpecFrame attributes
6 - Re-instate the original current Frame.
An approach such as this has a good chance of working...
David
|