Thank you<span></span><br><br>On Friday, September 12, 2014, Dennis Shea &lt;<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">a=addfile(&quot;~/Documents/Snow_<div>cover_IMS/<a href="http://nhsce_v01r01_19661004_20140602.nc" target="_blank">nhsce_v01r01_19661004_20140602.nc</a>&quot;,&quot;r&quot;)<br>sce=a-&gt;snow_cover_extent<br><br>;print(dimsizes(sce))<br><br>sce_area=a-&gt;area<br><br>B = sce_area<br><br>       do i = 0,2486<br>         B(i,:,:)=(/ sce(i,:,:)*sce_area(:,:) /)<br>       end do<br></div><div>B@long_name = &quot;sce*sce_area&quot;<br></div><div><br>xMonthAvg = calculate_monthly_values(B, &quot;avg&quot;, 0, False)<br></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 1:01 PM, Ipshita Majhi <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ipmajhi@alaska.edu&#39;);" target="_blank">ipmajhi@alaska.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br></div>I am trying to create a new matrix where snow cover extent (sce) which are in bytes is multiplied by area to get the real km2 values. In the process I am loosing the time information. How to save that so that I can create monthly avg.<br></div>Best Regards<br>Ipshita<br><div><div><div><br></div><div><br>; This program is to calculate the area average for snow for all the data period<br>;*******************************************<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>;*******************************************<br><br>;To create a new matrix with area values multiplied to the binary values so that we can get <br><br>a=addfile(&quot;~/Documents/Snow_cover_IMS/<a href="http://nhsce_v01r01_19661004_20140602.nc" target="_blank">nhsce_v01r01_19661004_20140602.nc</a>&quot;,&quot;r&quot;)<br>sce=a-&gt;snow_cover_extent<br><br>;print(dimsizes(sce))<br><br>sce_area=a-&gt;area<br><br>B = new((/2487,88,88/),float)<br><br>       do i = 0,2486<br>         B(i,:,:)=sce(i,:,:)*sce_area(:,:)<br>       end do<br><br>xMonthAvg = calculate_monthly_values(B, &quot;avg&quot;, 0, False)<br></div></div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote>