<div dir="ltr"><div>I speculate the following:<br><br></div>your code has<br><div><div><font face="monospace, monospace"> mpres@mpRightCornerLonF = -69 ; <=== integer<br></font></div><div><font face="monospace, monospace"> mpres@mpLeftCornerLonF = -75 ; "<br><br>===<br><br></font></div><div><font face="monospace, monospace">The error message states:<br></font><br><font face="monospace, monospace">fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 3351 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl</font><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br>3350 if ( opts@mpRightCornerLonF .lt. 0.0 ) then<br>3351 opts@mpRightCornerLonF = opts@mpRightCornerLonF + 360.0<br>3352 end if</font><font face="monospace, monospace"><font face="monospace, monospace"><br></font></font><div><br></div></div><div><font face="monospace, monospace">line number 3351 results in a *float* because of the 360.<br><br></font></div><div><font face="monospace, monospace">SO ...... You are trying to put a float into an integer variable.<br><br></font></div><div><font face="monospace, monospace">NCL is a *strongly typed language*. It will not allow placing a float into an integer variable .... Hence, the error message!!!<br><br>---<br></font></div><div><font face="monospace, monospace">I think a solution is:<br><br></font><br>your code has<br><div><font face="monospace, monospace"> mpres@mpRightCornerLonF = -69. ; <=== float<br></font></div><font face="monospace, monospace"> mpres@mpLeftCornerLonF = -75. ; "<br></font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 31, 2016 at 5:10 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">Hi Mary,<div><br></div><div>Rick just asked the same thing. It's 6.3.0.</div><div><br></div><div>Thanks,</div><div>Ryan<div><div class="h5"><span></span><br><br>On Monday, October 31, 2016, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">What version of NCL are you running?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ncl -V</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It doesn't really make sense that it's failing on the wrf_map_overlays line, because I don't think there's an attribute assignment happening there. But, if I know what version of NCL you have, then I can look at WRFUserARW.ncl for that version to see what's happening on the particular line numbers it's complaining about.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 31, 2016 at 1:37 PM, Ryan Connelly <span dir="ltr"><<a>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,<div><br></div><div>I'm trying to plot a zoomed in fixed region, rather than the entire WRF domain by default. I keep encountering this error:</div><div><br></div><div><div><font face="monospace, monospace">fatal:["NclAtt.c":262]:Attribu<wbr>te assignment type mismatch.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 3351 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/wrf/WRFUserARW.ncl</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 4550 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/wrf/WRFUserARW.ncl</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 4619 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/wrf/WRFUserARW.ncl</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 4702 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/wrf/WRFUserARW.ncl</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 111 in file wrf_dbz_discrete_area.ncl</font></div></div><div><br></div><div><br></div><div>Line 111 is the plot = wrf_map_overlays line. Here's the relevant snippets from my code:</div><div><br></div><div><div><font face="monospace, monospace"> pltres = True</font></div><div><font face="monospace, monospace"> mpres = True</font></div><div><font face="monospace, monospace"> </font></div><div><font face="monospace, monospace">; Plotting options for limited area consistent across domains</font></div><div><font face="monospace, monospace"> mpres@mpLimitMode = "Corners"</font></div><div><font face="monospace, monospace"> mpres@mpRightCornerLatF = 42.02</font></div><div><font face="monospace, monospace"> mpres@mpRightCornerLonF = -69</font></div><div><font face="monospace, monospace"> mpres@mpLeftCornerLatF = 45.88</font></div><div><font face="monospace, monospace"> mpres@mpLeftCornerLonF = -75</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[...]</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">; First get the variables we will need</font></div><div><font face="monospace, monospace">; Both dbz and mdbz will be calculated using constant intercept parameters</font></div><div><font face="monospace, monospace">; (as in early Reisner-2), with values of 8x10^6, 2x10^7, and 4x10^6 m^-4,</font></div><div><font face="monospace, monospace">; for rain, snow, and graupel, respectively.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> mdbz = wrf_user_getvar(a,"mdbz",it)</font></div><div><font face="monospace, monospace"> dbz = wrf_user_getvar(a,"REFL_10CM",<wbr>it)</font></div><div><font face="monospace, monospace"> z = wrf_user_getvar(a,"z",it)</font></div><div><font face="monospace, monospace"> lat2d = wrf_user_getvar(a,"XLAT",it)</font></div><div><font face="monospace, monospace"> lon2d = wrf_user_getvar(a,"XLONG",it)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> radar_Z = 10.^(dbz/10.)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> height = 2000. ; 2 km</font></div><div><font face="monospace, monospace"> radar_Z_plane = wrf_user_intrp3d(radar_Z,z,"h"<wbr>,height,0.,False)</font></div><div><font face="monospace, monospace"> dbz_plane = 10.*log10(radar_Z_plane)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> opts = res</font></div><div><font face="monospace, monospace"> opts@sfXArray = lon2d</font></div><div><font face="monospace, monospace"> opts@sfYArray = lat2d</font></div><div><font face="monospace, monospace"> opts@cnFillOn = True</font></div><div><font face="monospace, monospace"> opts@ContourParameters = (/ 10., 50., 2./)</font></div><div><font face="monospace, monospace"> contour = wrf_contour(a,wks,dbz_plane(:,<wbr>:),opts)</font></div><div><font face="monospace, monospace"> pltres@LatLonOverlay = True</font></div><div><font face="monospace, monospace"> plot = wrf_map_overlays(a,wks,(/conto<wbr>ur/),pltres,mpres)</font></div></div><div><br></div><div><br></div><div>Thanks,</div><div>Ryan</div><span><font color="#888888"><div><br></div>-- <br><div><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 style="font-size:x-small">rconne01@gmail.com</a><br></div><div><font size="1"><a>ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a>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></div>
</blockquote></div></div></div><div class="HOEnZb"><div class="h5"><br><br>-- <br><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><br>
</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>