Welcome to iraf.net Friday, May 17 2024 @ 05:44 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Script using imsurfit
   
Gordon
 04/09/2009 11:29PM (Read 2179 times)  
+----
Newbie

Status: offline


Registered: 08/21/2008
Posts: 5
Hi,I am trying to use imsurfit to fit a plane to data within a circular region of an image. Right now I haveimsurfit(infile, outfile, 2, 2, cross_terms="no", type_output="fit", region="circle", circle=?)The x and y coordinates and the radius of the circle need to be passed at "?". On the command line this can be done manually (e.g., circle="430 430 350") but our application requires these numbers to be read from a fits header and fed to imsurfit on the fly. The routine reads these parameters as integers but can't yet feed them to imsurfit. Please could you help?Many thanks,Gordon

 
Profile Email
 Quote
fitz
 04/09/2009 11:29PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The 'circle' parameter is a simple string: If you are able to construct this string within a script then there's no problem: The HSELECT task can extract keyword values, the '//' operator in the CL will concatenate strings, and if you're doing all of this from a script you should be able to easily construct a string of values derived from header values you can pass in to the 'circle' param of the task.If you post more info about what you're doing I can suggest some things, if you want the imsurfit.circle param to be able to read a keyword value, then it simply won't happen.-Mike

 
Profile Email
 Quote
Gordon
 04/09/2009 11:29PM  
+----
Newbie

Status: offline


Registered: 08/21/2008
Posts: 5
OK, thank you. I have something working along the lines that you suggested. I am now wondering how to record the coefficients of a polynomial surface fit using imsurfit.Thanks again,Gordon

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