Welcome to iraf.net Thursday, May 02 2024 @ 03:27 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 pointing to pixels
   
rikhill
 02/27/2007 09:37PM (Read 3247 times)  
+----
Newbie

Status: offline


Registered: 02/27/2007
Posts: 1
I am reviving some old data from about 10 years ago. Unfortunately, it's
in the 3-part format (.*.imh, *.pix and *.imh) not in fits. Older
versions of IRAF used to have a nifty task called IMPOINT that would
link the header files with the pixel files. But the version I'm
currently running 2.11.3 (and cannot update for reasons dealing with our
systems here) does not have IMPOINT. All pixel files are always kept in
a directory with a relative path of ./pix. Short of having to convert
everything to FITS (if that's even possible in the old directory
structure or on that old machine that no longer has IRAF in the new
O.S.) I'm not sure what I can do. I would appreciate your help with this.-Richard Hill

 
Profile Email
 Quote
fitz
 02/27/2007 09:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Hi Richard,The IMPOINT task must have been something local, it never existed in the core system. Regardless, what it probably did was just edit the i_pixfile pathname in the image header to reconnect the .pix file. I'll append the FAQ that shows you how to do this, but note that if the old data were written on a machine with a different byte order (e.g. written on a Sun but using Linux now), you might have problems reading the image. There is no task to swap an old image to the new format, you'll need to find a machine w/ the same byte order and run the script there.Cheers,
-Mike[code:1:c984e16d92]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=13.3 My pixel files were moved to another disk and now the i_pixfile pathname
in the image headers is wrong. How can IRAF find the pixels? The pixels of an IRAF image are stored separately from the image header.
The pathname to the pixel file is contained in a header parameter referenced as
"pixfile" by the HSELECT and HEDIT tasks. Users occasionally need to
modify this pixel pathname, most commonly when the disk containing the pixels
has been renamed or if the pixel files have been moved en masse for system
administration reasons to a new location. The following method enables you to
modify a large number of image headers to contain new pixel pathnames. The
technique is to first create a temporary file of image names and their current
pixel pathnames using the task HSELECT. You globally edit this temporary file
to contain the new pixel pathnames and then use the modified file as input to
the HEDIT task. cl> hselect *.imh $I,pixfile yes > filin
.... [do a global edit to filin and edit in the new pixel pathname]
cl> list="filin"
cl> {
while(fscan(list,s1,s2) != EOF)
hedit(s1,"pixfile",s2,verify-)
}
[/code:1:c984e16d92]

 
Profile Email
 Quote
   
Content generated in: 0.08 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