Welcome to iraf.net Thursday, April 25 2024 @ 01:09 PM GMT
mairan |
01/12/2010 05:00PM (Read 3436 times)
|
|
|
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.
|
|
|
|
fitz |
01/12/2010 05:00PM
|
|
|
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.
|
|
|
|
mairan |
01/12/2010 05:00PM
|
|
|
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.
|
|
|
|
| |
|