<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Just an FYI. The NetCDF file for radar_2.ncl looks like this for "angles" and "dbz":</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">Variable: angles</font></div><div class="gmail_default"><font face="monospace, monospace">Type: float</font></div><div class="gmail_default"><font face="monospace, monospace">Total Size: 17372 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> 4343 values</font></div><div class="gmail_default"><font face="monospace, monospace">Number of Dimensions: 1</font></div><div class="gmail_default"><font face="monospace, monospace">Dimensions and sizes: [time | 4343]</font></div><div class="gmail_default"><font face="monospace, monospace">Coordinates: </font></div><div class="gmail_default"><font face="monospace, monospace"> time: [ 0.. 434]</font></div><div class="gmail_default"><font face="monospace, monospace">Number Of Attributes: 2</font></div><div class="gmail_default"><font face="monospace, monospace"> standard_name : beam_azimuth_angle</font></div><div class="gmail_default"><font face="monospace, monospace"> units : degrees</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">Variable: dbz</font></div><div class="gmail_default"><font face="monospace, monospace">Type: float</font></div><div class="gmail_default"><font face="monospace, monospace">Total Size: 17302512 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> 4325628 values</font></div><div class="gmail_default"><font face="monospace, monospace">Number of Dimensions: 2</font></div><div class="gmail_default"><font face="monospace, monospace">Dimensions and sizes: [time | 4343] x [range | 996]</font></div><div class="gmail_default"><font face="monospace, monospace">Coordinates: </font></div><div class="gmail_default"><font face="monospace, monospace"> time: [ 0.. 434]</font></div><div class="gmail_default"><font face="monospace, monospace"> range: [150..149400]</font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">Number Of Attributes: 10</font></div><div class="gmail_default"><font face="monospace, monospace"> long_name : Computed Horizontal Co-polar Reflectivity</font></div><div class="gmail_default"><font face="monospace, monospace"> standard_name : equivalent_reflectivity_factor</font></div><div class="gmail_default"><font face="monospace, monospace"> units : dBZ</font></div><div class="gmail_default"><font face="monospace, monospace"> threshold_field_name : </font></div><div class="gmail_default"><font face="monospace, monospace"> threshold_value : 0</font></div><div class="gmail_default"><font face="monospace, monospace"> sampling_ratio : 1</font></div><div class="gmail_default"><font face="monospace, monospace"> grid_mapping : grid_mapping</font></div><div class="gmail_default"><font face="monospace, monospace"> coordinates : time range</font></div><div class="gmail_default"><font face="monospace, monospace"> _FillValue : -32768</font><br></div><div class="gmail_default"><br></div><div class="gmail_default">You can see that the size of angles is the same as the leftmost dimension of dbz. </div><div class="gmail_default"><br></div><div class="gmail_default">I'm not sure what "REF" and "angles" are referring to on your file. They don't appear to be related to each other, since their dimension sizes are not multiples of each other.</div><div class="gmail_default"><br></div><div class="gmail_default">Is it possible you need to use a different variable on the file?</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 1:27 PM, Ryan Connelly <span dir="ltr"><<a href="mailto:rconne01@gmail.com" target="_blank">rconne01@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Barry,<div><br></div><div>No idea about the format, though it's possible since DBZ is not a variable in the netCDF (it's REF now). I use radx to convert the Level II files from their native format to CfRadial netCDF's, nothing involving the WCT.</div><div><br></div><div>Thanks,</div><div>Ryan</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 19, 2017 at 10:45 PM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ryan:<div><br></div><div>Is it possible that the format of the radar data has changed?</div><div><br></div><div>I had to write several Fortran programs to read the radar data from different years (as processed by the NOAA Weather and Climate Tool). I write out the data and then map it objectively using a wrf output program as the gridded background.</div><div><br></div><div>I can send you these programs if you like.</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3990357520035737687h5">On Wed, Apr 19, 2017 at 11:28 PM, Ryan Connelly <span dir="ltr"><<a href="mailto:rconne01@gmail.com" target="_blank">rconne01@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3990357520035737687h5"><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" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/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<span class="m_-3990357520035737687m_-510622988091867027HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-3990357520035737687m_-510622988091867027m_378728144165687069gmail_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>
</font></span></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-3990357520035737687m_-510622988091867027gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-3990357520035737687gmail_signature" data-smartmail="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.8000001907349px"><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.8000001907349px"><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><br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>