Welcome to iraf.net Friday, April 26 2024 @ 02:54 AM GMT


 Forum Index > Help Desk > IRAFNet
 EOF error encountered when using FXCOR
   
m_alp
 07/20/2009 06:14PM (Read 4021 times)  
+----
Newbie

Status: offline


Registered: 07/20/2009
Posts: 4
Hi everyone!I'm very new to IRAF and am attempting to use it to extract some velocity dispersions from some spectra I've been given. To do this, I am using the FXCOR task, but unfortunately when I enter the files I want to cross-correlate, I receive the following error:[code:1:1d59c59134]ERROR: FXF: EOF encountered while reading FITS file (name).[/code:1:1d59c59134]This only seems to happen to a couple of files -- unfortunately, they are my template spectra, and so are quite important! Are there any workarounds for this error?Thanks in advance!

 
Profile Email
fitz
 07/20/2009 06:14PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The message sometimes means the FITS file was truncated, i.e. the padding NULL chars were lost in transfer. You should check the file size to be sure it is an integral number of 2880-byte blocks. It it does appear truncated, you can use the host 'dd' command to pad it again,. e.g.[code:1:35cd4192a5]
% dd if=temp.fits of=newtemp.fits bs=2880 conv=sync
[/code:1:35cd4192a5]The file might be corrupted in other ways as well, if you still have problems you can put it in ftp://iraf.noao.edu/pub and I'll have a look.-Mike

 
Profile Email
m_alp
 07/20/2009 06:14PM  
+----
Newbie

Status: offline


Registered: 07/20/2009
Posts: 4
Hi Mike,I checked the file sizes and they were, in fact, corrupted (they were all 0 bytes!). I've now downloaded them once again, and the problem seems to be fixed.Thank you very much!

 
Profile Email
   

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login