IDL MODFITS problem. [message #92679] |
Sat, 06 February 2016 06:34  |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
Hello everyone,
I have an IDL procedure for updating fits file header, which is working fine for almost all fits files but for few files it is showing error:
MODFITS: Input FITS header contains 253 lines
% MODFITS: Current disk FITS header contains 252 lines
% MODFITS: ERROR - FITS header not compatible with existing file
% MODFITS: FITS file BLL1132+0034_CHIP1_SCIENCE_SKY_SPECTRUM_FORS1.2008_05_06T01_ 09_51.196.fits not modified
Can anyone tell how to solve this problem?
The part of my procedure using command:
sxaddpar,h,'CLASS',C
modfits,fname(i),0,h
where h: file header
CLASS: keyword I want to add
C: variable whose value I want to add in CLASS keyword in my fits header.
Please let me know any of your suggestion.
|
|
|
Re: IDL MODFITS problem. [message #92680 is a reply to message #92679] |
Sat, 06 February 2016 11:43   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
Are you sure you have the latest version of modfits.pro and ( check_fits.pro)
http://idlastro.gsfc.nasa.gov/ftp/pro/fits/modfits.pro
http://idlastro.gsfc.nasa.gov/ftp/pro/fits/check_fits.pro
with last revision update in August 2013? --Wayne
On Saturday, February 6, 2016 at 9:35:01 AM UTC-5, Sapna Mishra wrote:
> Hello everyone,
> I have an IDL procedure for updating fits file header, which is working fine for almost all fits files but for few files it is showing error:
> MODFITS: Input FITS header contains 253 lines
> % MODFITS: Current disk FITS header contains 252 lines
> % MODFITS: ERROR - FITS header not compatible with existing file
> % MODFITS: FITS file BLL1132+0034_CHIP1_SCIENCE_SKY_SPECTRUM_FORS1.2008_05_06T01_ 09_51.196.fits not modified
>
> Can anyone tell how to solve this problem?
> The part of my procedure using command:
> sxaddpar,h,'CLASS',C
> modfits,fname(i),0,h
>
> where h: file header
> CLASS: keyword I want to add
> C: variable whose value I want to add in CLASS keyword in my fits header.
>
> Please let me know any of your suggestion.
|
|
|
|
|