comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL MODFITS problem.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL MODFITS problem. [message #92679] Sat, 06 February 2016 06:34 Go to next message
Sapna Mishra is currently offline  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 Go to previous messageGo to next message
wlandsman is currently offline  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.
Re: IDL MODFITS problem. [message #92681 is a reply to message #92679] Sat, 06 February 2016 21:32 Go to previous messageGo to next message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Sorry but I don't know how to check the version, as nothing is mentioned in my modfits.pro file.
Can you suggest from where I can get the latest one????
Re: IDL MODFITS problem. [message #92682 is a reply to message #92679] Sat, 06 February 2016 21:59 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
It was actually because of old version of modfits.pro . My problem is solved now. Thanks alot .
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: exelisvis.com is now harrisgeospatial.com
Next Topic: xvolume array size limit?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:11:11 PDT 2025

Total time taken to generate the page: 0.00651 seconds