Welcome to iraf.net Thursday, April 25 2024 @ 01:09 PM GMT


 Forum Index > Help Desk > IRAFNet
 Run IMSTAT from inside CL script
   
mairan
 01/12/2010 05:00PM (Read 3436 times)  
+----
Newbie

Status: offline


Registered: 08/18/2006
Posts: 12
Hi all,I would like to determine the number of pixels of my spectra.
To do so, I decided to run IMSTAT from inside my CL script. My intention is to feed a variable with the result from the field "npix". However, I don't know what the syntax would be.Can anybody help me?Thanks in advance!
m.

Mairan Teodoro, PhD.
 
Profile Email
fitz
 01/12/2010 05:00PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try something like[code:1:6bd8aae018]imstat ("dev$pix", fields="npix", format-) | scan (i)
[/code:1:6bd8aae018]where the script variable 'i' will then contain the number of pixels.

 
Profile Email
mairan
 01/12/2010 05:00PM  
+----
Newbie

Status: offline


Registered: 08/18/2006
Posts: 12
As always, this forum saved my time with quick replies from experienced users!Thank you fitz! It worked alright!m.

Mairan Teodoro, PhD.
 
Profile Email
   

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