On 11 July 2013 17:59, Tim Jenness <[log in to unmask]> wrote:
> Yes, COLAXES=1 COLDATA='[2,3]' seem to work.
>
> The main problem is that figaro doesn't really know that the axes values are
> angstroms. It just puts them in the AXIS array. Ideally for better
> compatibility with other applications the wavelength would be stored in a
> proper AST Frameset to allow proper alignment with other data and nice
> rendering of plots. David - is there an easy way to convert the AXIS
> wavelength data into an AST Spectrum object?
If the 1D NDF created by figaro is fred.sdf
% kappa
% wcsadd fred axis frmtype=specframe maptype=unit \
attrs="'system=wave,unit=Angstrom'"
would do it.
David
>
> On Thu, Jul 11, 2013 at 12:53 PM, Peter W. Draper <[log in to unmask]>
> wrote:
>>
>> Hi Robert,
>>
>> you need to use the FIGARO ascin command. That will read just these sort
>> of text files.
>>
>> Regards,
>>
>> Peter.
>>
>>
>>
>> On Thu, 11 Jul 2013, rcs wrote:
>>
>>> I have a set of echelle spectra, which have been reduced for me to 1d
>>> form, using IRAF, but have been provided to me only as text files, with
>>> three columns: wavelength, flux, error (w, f, e). These files were produced
>>> as part of the stitching together of the various echelle orders, and I have
>>> a horrid feeling that there are no IRAF originals. The person concerned is
>>> currently incommunicado....
>>>
>>> I have tried using the CONVERT facility, ascii2ndf, but I cannot work out
>>> what to use as the SHAPE parameter - when I use the number of rows, the
>>> conversion is done, but not correctly: hdstrace reveals that it has taken
>>> the data in the order w, f, e and stopped one-third of the way through the
>>> file. How can I get ascii2ndf to recognise that the three rows are different
>>> types of data?
>>>
>>> I attach a sample data file.
>>>
>>> Robert
>>>
>>> --
>>> Dr Robert C Smith 01273 678974
>>> Emeritus Reader in Astronomy Pevensey III, 4C1
>>> Astronomy Centre, Dept of Physics & Astronomy
>>> University of Sussex, Falmer, Brighton BN1 9QH
>>> [log in to unmask]
>>> http://astronomy.sussex.ac.uk/~rcs/rcs.html
>>>
>>>
>>> ----
>>> Starlink User Support list
>>> For list configuration, including subscribing to and unsubscribing from
>>> the list, see
>>> https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
>>>
>>
>> --
>> Peter W. Draper, http://astro.dur.ac.uk/~pdraper
>>
>>
>> ----
>> Starlink User Support list
>> For list configuration, including subscribing to and unsubscribing from
>> the list, see
>> https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
>
>
> ---- Starlink User Support list For list configuration, including
> subscribing to and unsubscribing from the list, see
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
----
Starlink User Support list
For list configuration, including subscribing to and unsubscribing from the list, see
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
|