On Aug 18, 2010, at 8:11 AM, Matthew Smith wrote:
> Hi,
>
> I'm working on some HARP data and am converting the file to fits and then back to sdf later on. However even if I do nothing to the file between the ndf2fits and fits2ndf steps I get an error when I use makecube saying
>
> !! No state information associated with supplied header. Possible programming error.
> ! Application exit status SAI__Error, Error
>
> Is there a way I can get round this.
MAKECUBE can only work on the raw time series spectral data written by the telescope. Are you saying that when you convert the time series to FITS and back to NDF you don't get back what you started? Or are you converting to FITS loading it into IDL or some other package to fiddle with it and then saving it back to FITS?
If the latter then you have to make sure all the extensions are in place in the FITS file after it's been rewritten. The easiest thing is to do what you need to do (I'm intrigued what that is) then convert it back to NDF. Then use hcopy (from hdstools) to copy the .DATA_ARRAY component over the top of the original time series file (or use hcopy to copy the .MORE NDF extension into your new file.
--
Tim Jenness
|