Welcome to iraf.net Friday, April 19 2024 @ 12:06 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 "cannot open pixel file" after re-starting my cump
   
china_108
 11/12/2008 05:03AM (Read 4685 times)  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
Everytime when I restart my computer, I cannot open all imh files that were processed in a previous application. It says "cannot open pixel file xxx.imh"
How can I fix the problem?

 
Profile Email
 Quote
fitz
 11/12/2008 05:03AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
What is the value of your 'imdir' directory (i.e. do a "cl> show imdir")?? This is the directory where the pixel files are put when an image is created, and if it is /tmp or /usr/tmp then these directories are normally purged at reboot time. You can reset the value by editing your login.cl file or on the command-line.Using FITS files will avoid this problem (i.e. reset the 'imtype' variable in your login.cl to be 'fits'), an imdir value such as "HDR$pix/" will put the file in the 'pix' subdirectory of the .imh file (it will be created automatically). Write back if this doesn't explain it.-Mike

 
Profile Email
 Quote
china_108
 11/12/2008 05:03AM  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
Thank you very much, Mike. It works fine for my computer now after chaning the imtype to fit. But it seems that when I copy all those imh files to another computer, the same problem appears(cannot open pixel file xxx.imh).Is there anyway to solve the problem or I need to use the same computer all the time?

 
Profile Email
 Quote
fitz
 11/12/2008 05:03AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The IMH format stores the image in a .imh file containing the header information, and a .pix file for the pixels which is stored in the 'imdir' directory. The .imh file contains the path to the .pix file, if you move the files to a new directory/computer you may invalidate this path and so you see the error.Using an imdir such as HDR$pix/ stores the .pix files in a relative directory so as long as you move entire directories of images you don't need to change anything, otherwise on the new machine you'll need to edit the path to the pixfile. This is covered in part in the FAQ at https://iraf.net/faqman/index.php?op=view&t=3 In general, moving images is best done using FITS images.-Mike

 
Profile Email
 Quote
   
Content generated in: 0.18 seconds
New Topic Post Reply

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