<div dir="ltr">Hi,<div><br></div><div>I'm looking at the example here: <a href="http://www.ncl.ucar.edu/Applications/Scripts/radar_2.ncl">http://www.ncl.ucar.edu/Applications/Scripts/radar_2.ncl</a> but encountering the error: </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">fatal:conform: the dimensions sizes of the second argument do not match those indicated by the third argument</font></div></blockquote><div><br></div><div><div>Here is the code up to that point:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font face="monospace, monospace">begin</font></div></div><div><div><font face="monospace, monospace"><br></font></div></div><div><div><font face="monospace, monospace"> fils = systemfunc ("csh -c 'cd " + diri + " ; ls *.nc'")</font></div></div><div><div><font face="monospace, monospace"> do j = 0,dimsizes(fils)-1,1</font></div></div><div><div><font face="monospace, monospace"> fili = fils(j) ;+".nc"</font></div></div><div><div><font face="monospace, monospace"> rf = addfile(diri+fili,"r")</font></div></div><div><div><font face="monospace, monospace">; print(getfilevarnames(rf))</font></div></div><div><div><font face="monospace, monospace"> rd = rf->REF ;short2flt(rf->REF) </font></div></div><div><div><font face="monospace, monospace"> dsizes = dimsizes(rd)</font></div></div><div><div><font face="monospace, monospace"> angles = rf->azimuth</font></div></div><div><div><font face="monospace, monospace"> angles(0:63) = angles(0:63)-360 ; fix to make angles monotonic</font></div></div><div><div><font face="monospace, monospace"> DEGTORAD = 0.017453292519943</font></div></div><div><div><font face="monospace, monospace"> xcenter = 0.0</font></div></div><div><div><font face="monospace, monospace"> ycenter = 0.0</font></div></div><div><div><font face="monospace, monospace"> radius = 960 * 0.25 ; this is radius in kilometers</font></div></div><div><div><font face="monospace, monospace"><br></font></div></div><div><div><font face="monospace, monospace">; Create 2D coordinate arrays.</font></div></div><div><div><font face="monospace, monospace">;</font></div></div><div><div><font face="monospace, monospace"> printVarSummary(rd(0))</font></div></div><div><div><font face="monospace, monospace"> printVarSummary(angles)</font></div></div><div><div><font face="monospace, monospace"><br></font></div></div><div><div><font face="monospace, monospace"> inc = radius / (dsizes(0) - 1)</font></div></div><div><div><font face="monospace, monospace"> x = inc * ispan(0,dsizes(0)-1,1)</font></div></div><div><div><font face="monospace, monospace"> angles2d = conform(rd,angles,0)</font></div></div><div><div><font face="monospace, monospace"> x2d = conform(rd,x,1)</font></div></div><div><div><font face="monospace, monospace"> xarr = xcenter + x2d * cos(DEGTORAD * angles2d)</font></div></div><div><div><font face="monospace, monospace"> yarr = ycenter + x2d * sin(DEGTORAD * angles2d)</font></div></div></blockquote><div><div><br></div><div>It seems that there's a mismatch between rd(0) and angles? rd is one-dimensional with 6701760 points, and angles is also one-dimensional, with 5400 points.</div><div><br></div><div>Thanks,<br></div><div>Ryan<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font color="#000000"><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8px"><div><font color="#000000"><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</div></div></div>