<div dir="ltr"><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/conform.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/conform.shtml</a><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/conform_dims.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/conform_dims.shtml</a><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">===</span></font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">If x(20,406,270) and lat2d(406,270),<span style="font-family:arial,sans-serif">lon2d(406,270)</span><span style="font-family:arial,sans-serif">  </span></pre><pre style="word-wrap:break-word"><span style="color:rgb(0,0,0);white-space:pre-wrap">  do nf=0,nfil-1
     print(nf+&quot;   &quot;+fili(nf))
     f       = addfile(diri+fili(nf), &quot;r&quot;)
                                     ; read data
     lat2d   = short2flt_hdf( f-&gt;Latitude )
     lon2d   = short2flt_hdf( f-&gt;Longitude)
     x       = short2flt_hdf( f-&gt;$vNam$   )</span></pre><pre style="word-wrap:break-word">     LAT     = conform( x, lat2d, (/1,2/) )<br>     LON     = conform( x, lon2d, (/1,2/) ) </pre><pre style="word-wrap:break-word">     delete( [/lat2d,lon2d/])</pre><pre style="word-wrap:break-word">    <span style="white-space:pre-wrap;font-family:arial,sans-serif;color:rgb(0,0,0)">   bin_sum(GBIN,GKNT,lon,lat   \</span><br></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">            ,ndtooned(LON), ndtooned(LAT),ndtooned(x) )

     delete( [/ x , LAT, LON  )        ; size may change
  end do
</span></font></pre><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 3:20 AM, AJILESH PP <span dir="ltr">&lt;<a href="mailto:ajileshparolla@gmail.com" target="_blank">ajileshparolla@gmail.com</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"><span style="font-size:13px;line-height:19.7999992370605px">Dear all,</span><div style="font-size:13px;line-height:19.7999992370605px">I want to use this script  (<a href="https://www.ncl.ucar.edu/Applications/Scripts/binning_1.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/binning_1.ncl</a> ) to bin and sum MODIS Level 2 data. While using the script I got an error on this line:</div><pre style="color:rgb(0,0,0);line-height:normal;word-wrap:break-word;white-space:pre-wrap">bin_sum(GBIN,GKNT,lon,lat\ <span style="font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif">,ndtooned(lon2d), ndtooned(lat2d),ndtooned(x) )</span></pre><div style="font-size:13px;line-height:19.7999992370605px">and error says:</div><div style="font-size:13px;line-height:19.7999992370605px"> fatal:bin_sum: z must be the same size as zlat and zlon. </div><div style="font-size:13px;line-height:19.7999992370605px">Lat2d and Lon2d sizes are 406*270 and Variable size is 20*406*270. I know this difference in size is the problem how to solve this? any help please</div><div style="font-size:13px;line-height:19.7999992370605px">Thanks in advance.</div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>