Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run IMSTAT from inside CL script

 
Post new topic   Reply to topic    iraf.net Forum Index -> IRAFNet
View previous topic :: View next topic  
Author Message
mairan



Joined: 18 Aug 2006
Posts: 12
Location: IAG/USP - Brazil

PostPosted: Tue Jan 12, 2010 5:00 pm    Post subject: Run IMSTAT from inside CL script Reply with quote

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.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Tue Jan 12, 2010 5:08 pm    Post subject: Reply with quote

Try something like

Code:
imstat ("dev$pix", fields="npix", format-) | scan (i)


where the script variable 'i' will then contain the number of pixels.
Back to top
View user's profile Send private message
mairan



Joined: 18 Aug 2006
Posts: 12
Location: IAG/USP - Brazil

PostPosted: Tue Jan 12, 2010 6:02 pm    Post subject: Reply with quote

As always, this forum saved my time with quick replies from experienced users!

Thank you fitz! It worked alright!

m.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> IRAFNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.11 seconds