<div dir="ltr"><div><div>I found that it took too much memory hence the error. <br>But what can I do so that ncl gets the values only in the lowest model layer, and then continues to calculate the average through time?<br><br></div>Thank you,<br></div>Jacob<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 24, 2016 at 5:10 PM, Jacob Alberto Garcia <span dir="ltr">&lt;<a href="mailto:jacob_garcia@dlsu.edu.ph" target="_blank">jacob_garcia@dlsu.edu.ph</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>Good day!<br><br></div>After running this script, I get this error wherein it cannot continue:<br><div><div><br>fatal:NclMalloc Failed:[errno=12]<br>fatal:dim_avg_n: Could not coerce input data to double, can&#39;t continue<br>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 2335 in file /usr/local/lib/ncarg/<wbr>nclscripts/csm/contributed.ncl<br><br><br></div><div>This is my script<br> <br>==============================<wbr>=================<br><br>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl&quot;<br>;load &quot;./WRFUserARW.ncl&quot;<br><br><br>  diri = &quot;./&quot;<br>  jake = (/ &quot;d03_DEC_YSU_F.nc&quot;, &quot;d03_JAN_YSU_F.nc&quot;, &quot;d03_FEB_YSU_F.nc&quot; /)<br>   j = addfile(&quot;d03_DEC_YSU_F.nc&quot;, &quot;r&quot;)<br>  pthi = diri+jake<br>fa  = addfiles(pthi, &quot;r&quot;)<br>pm25 = fa[:]-&gt;PM2_5_DRY<br>pm25_avg = dim_avg_n_Wrap(pm25, 0)<br>printVarSummary(pm25_avg)   ; south_north | ??] x [west_east | ??]<br><br><br><br>; We generate plots, but what kind do we prefer?<br>  type = &quot;pdf&quot;<br>; type = &quot;pdf&quot;<br>; type = &quot;ps&quot;<br>; type = &quot;ncgm&quot;<br><br>wks = gsn_open_wks(type,&quot;PM25&quot;)<br>  <br>  <br>   <br>  gsn_define_colormap(wks, &quot;WhBlGrYeRe&quot;)<br>  <br><br><br><br>  pltres = True<br>  mpres = True<br>  res = True<br>  mpres@mpDataBaseVersion = &quot;HighRes&quot;<br>  mpres@mpGridAndLimbOn = False<br>  res@gsnMaximize = True<br>  res@cnFillOn = True<br>  res@gsnSpreadColors = True<br>  res@cnLevelSelectionMode = &quot;ManualLevels&quot;    <br> ; res@cnMinLevelValF  = -1.8            ; set the minimum contour level<br>  ;res@cnMaxLevelValF  = 1.8            ; set the maximum contour level    <br>  ;res@cnLevelSpacingF = 0.1<br>  res@cnLinesOn = False<br>  res@cnLineLabelsOn = False<br>  mpres@mpGeophysicalLineColor = &quot;Black&quot;<br>  <br>  <br> <br><br>plot    = gsn_csm_contour_map(wks,pm25_<wbr>avg,res)<br><br>     contour_DIFF = wrf_contour(j,wks,pm25_avg,<wbr>res)      <br><br>     plot = wrf_map_overlays(j,wks,(/<wbr>contour_DIFF/),pltres,mpres)<br><br>==============================<wbr>====================<br><br></div><div>I am not sure anymore as to what part im going wrong. Hoping for your help<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Jacob<br></div><div>     <br>    <br><br></div><div><br><br></div></font></span></div></div>
</blockquote></div><br></div>

<br>
<a href="http://www.dlsu.edu.ph" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-logo.jpg"></a><a href="https://www.facebook.com/DLSU.Manila.100" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-fb.jpg"></a><a href="http://instagram.com/dlsu" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-instagram.jpg"></a><a href="https://twitter.com/dlsumanila" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-twitter.jpg"></a><a href="http://dlsumanila.tumblr.com/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-tumbler.jpg"></a><a href="http://iblog.lasalle.ph/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-blog.jpg"></a><font color="green" face="Arial" size="2"><br><br>DISCLAIMER AND CONFIDENTIALITY NOTICE </font><div><font color="green" face="Arial" size="2">The information contained in this e-mail, including those in its attachments, is confidential and intended only for the person(s) or entity(ies) to which it is addressed. If you are not an intended recipient, you must not read, copy, store, disclose, distribute this message, or act in reliance upon the information contained in it. If you received this e-mail in error, please contact the sender and delete the material from any computer or system. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of De La Salle University. </font></div>