Welcome to iraf.net Tuesday, April 30 2024 @ 05:41 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 imarith problem: Image is not 2 dimension
   
BrainBug
 10/30/2006 10:33AM (Read 5882 times)  
++---
Junior

Status: offline


Registered: 10/30/2006
Posts: 33
Sorry for bad english - i'm from Russia... :-)
About problem: then i probe to allign 3 *.fits images with moon, i get error:
"Image moon1 is not 2 dimension"
But imcomb of this 3 images are working fine!
IRAF version is 2.13b
System: Gentoo LinuxOne more - this 3 images i have in the list: @list_moon
I created moon1.coords and insert into this file:
1272 1347
As i know, in this file must be placed coords of pixel wich be centerd ither images?
In the file shifts.txt i inserted shifts in the pixels for each images:
0 0
97 42
27 113Where i do wrong? Help me please!PS. IRAF - is a power! But i bad know this software...

 
Profile Email Website
 Quote
fitz
 10/30/2006 10:33AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:75a1bc12ab]About problem: then i probe to allign 3 *.fits images with moon, i get error:
"Image moon1 is not 2 dimension"
But imcomb of this 3 images are working fine![/quote:75a1bc12ab]IMCOMBINE is able to work on non-2D images, however IMARITH cannot. You probably have either a 1-D or 3-D image (i.e. an image 100x100x1 is considered 3-D]. You can use the IMHEADER task to check the image, e.g.[code:1:75a1bc12ab]cl> imhead moon1.fits long+[/code:1:75a1bc12ab]If it's a 3-D image then something like[code:1:75a1bc12ab]cl> imarith moon1[*,*,1] + moon[*,*,1] newmoon[/code:1:75a1bc12ab]will use the image section [*,*,1] to extract the 2-D band from the image, or else do the same but IMCOPY the section to a new image.
[quote:75a1bc12ab]One more - this 3 images i have in the list: @list_moon
I created moon1.coords and insert into this file:
1272 1347
As i know, in this file must be placed coords of pixel wich be centerd ither images?
In the file shifts.txt i inserted shifts in the pixels for each images:
0 0
97 42
27 113 [/quote:75a1bc12ab]I assume we're talking about IMCOMBINE again? If the shift.txt file is what you give the 'offsets' parameter then that shift will be applied to each image, but I'm not sure what/where you're using the moon1.coords file. Please post more information. Hope this helps.Cheers,
-Mike

 
Profile Email
 Quote
BrainBug
 10/30/2006 10:33AM  
++---
Junior

Status: offline


Registered: 10/30/2006
Posts: 33
Sorry... I posted mistake information!!! Here is what about i talked:
1:C7D5935828 Formatted Code

cl> imalign @list_moon moon1 moon1.coords newmoon4 shifts=shifts
#Coords        Image     X-center   Err      Y-center   Err     Num
Warning: Image is not 2 dimensional
moon1.fit:  ERROR: No shifts were calculated.
[/code:1:c7d5935828]
So, what i need to do for centered all 3 images and make a summ if this?
As i thinking i must to do next:
1. centering all 3 images
2. summ all its
Isn't it?
One more sorry about my english...
Thanks for help me...

 
Profile Email Website
 Quote
BrainBug
 10/30/2006 10:33AM  
++---
Junior

Status: offline


Registered: 10/30/2006
Posts: 33
Here is my last result:
[code:1:28e66a4eea]
cl> imcomb @list_moon moons2323 offsets=moon.shift
Warning: IMCOMBINE: Error in offset list
Warning: Can't set output geometry
[/code:1:28e66a4eea]
moon.shift contain next:
[code:1:28e66a4eea]
0 0
49 63
1 113
[/code:1:28e66a4eea]Thirst lin contain 0 0 because it is shift of normal image. All other - containt shift by X and Y...
So, what i do wrong again?
I need result like after Registax working...
HELP ME!!! EPLAIN ME, PLZ!!!
This is my 3-d night in the IRAF... But no results!

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