Thanks a lot Eric for your prompt suggestion. <br>This works fine for me. <br><br>regards<br>--wasim<br><br><div class="gmail_quote">On Sat, Oct 8, 2011 at 1:09 AM, Eric Greisen <span dir="ltr"><<a href="mailto:egreisen@nrao.edu">egreisen@nrao.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Wasim Raja wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Eric,<br>
  Is there a keyword that stores the following:<br>
  1) Total Flux Density<br>
  2) Number of pixels used in a current run of IMSTAT<br>
<br>
  My goal is to use AIPS task "SYSTEM" to output<br>
  the total flux density specified by blc and trc in task<br>
  IMSTAT. While I am able to grab the values of<br>
  the mean flux density using PIXAVG, I am not able<br>
  to access the TOTAL FLUX DENSITY or the<br>
  NUMBER OF PIXELS used in computing the mean.<br>
<br>
  I of course can "SEE" the Number of Pixels used, on<br>
  the TV SCREEN, but as you must have guessed, I<br>
  am dealing with a large number of these images and<br>
  hence desire to automate the process.<br>
</blockquote>
<br></div>
I am afraid not.  You can compute them and store them in<br>
local variables in POPS.  The total number of pixels is<br>
XX = (TRC(1)-BLC(1)+1)*(TRC(2)-BLC(<u></u>2)+1)<br>
The Clean beam area in pixels is rather harder:<br>
keyword='bmaj'; geth; x = keyv(1)<br>
keyword='bmin'; geth; x = x*keyv(1)*1.1331<br>
keyword='cdelt1'; geth; y = keyv(1)<br>
keyword='cdelt2'; geth; y = y * keyw(1);<br>
x = x / abs(y)<br>
<br>
will make x = number of pixels in a clean beam area<br>
<br>
Total flux is then<br>
<br>
pixavg * xx / x<br>
<br>
xx, x, y are all pops variables known and useful for scratch.<br><font color="#888888">
<br>
<br>
Eric Greisen<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Research Fellow (A&A)<br>Raman Research Institute<br>Bangalore--560080<br>