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


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 importing ds9 datamin into an IRAF script
   
nwj781
 07/16/2009 05:50PM (Read 1487 times)  
+----
Newbie

Status: offline


Registered: 05/08/2008
Posts: 13
When an image is displayed with ds9 the terminal also displays z1, a variable representing the datamin. If I wanted to use this variable in a script how would I access it?

 
Profile Email
 Quote
fitz
 07/16/2009 05:50PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If what you want is to capture the output of the DISPLAY command, try something like[code:1:ee47d958d3]display ("dev$pix", 1) |& scanf ("z1=%g z2=%g", z1, z2)[/code:1:ee47d958d3]where I've assumed you declared 'z1' and 'z2' as local script variables. If you mean you want the scale values used by DS9 loading an image outside of IRAF, then you'll need to use one of the XPA access points to ask for it using 'xpaget' declared as a foreign command (note I'm not even sure there is such an access point, you'd have to check).-Mike

 
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