<div dir="ltr"><div class="gmail_default" style="font-size:small">This error message comes from calling one of the gsn_csm_xxx_map plotting routines, and passing in data that has no lat/lon coordinate information provided, either via coordinate arrays, or via the special lat2d/lon2d attributes.<br><br>In the code you provided, I don&#39;t see any calls to gsn_csm_xxxx_map, so I&#39;m not sure how you got that message. Did you include the full script?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error message is pretty much telling you what the problem is, and the solution may be simply that you need to add a &quot;units&quot; attribute to your lat/lon coordinate arrays. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">After these two lines:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">xSumLon&amp;lat = x4d(0,0,:,0)</div><div class="gmail_default">xSumLon&amp;lon = x4d(0,0,0,:)</div><div class="gmail_default"><br></div><div class="gmail_default">Add these two lines:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">xSumLon&amp;lat@unit = &quot;degrees_north&quot;</div><div class="gmail_default">xSumLon&amp;lon@units = &quot;degrees_east&quot;</div><div class="gmail_default"><br></div><div class="gmail_default">If you continue to have problems, please do a &quot;replay all&quot; to this message and include the new error.  It would also help if you include the full script, or at least the script up to the point where the error occurs.</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 14, 2017 at 7:05 PM, dale zuri <span dir="ltr">&lt;<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@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"><div><div>Hi,<br></div>Please help me to fix this bug? Here is part of my code and the error I get<br>x4d  = reshape(precppicktimeAMJJAS,(/<wbr>183,4,26,76/))<br>print(x4d(:,:,0,0))<br>;printVarSummary(<wbr>precppicktimeAMJJAS)  ;print out structure/basic info of the data<br>printVarSummary(x4d)  ;print out structure/basic info of the data<br><br>xSumLon = dim_sum_n(x4d,1)<br>printVarSummary(xSumLon)  ;print out structure/basic info of the data<br>xSumLon!0=&quot;time&quot; ;added by feng<br>xSumLon!1=&quot;lat&quot; ;added by feng<br>xSumLon!2=&quot;lon&quot; ;added by feng<br>xSumLon&amp;lat = x4d(0,0,:,0)<br>xSumLon&amp;lon = x4d(0,0,0,:)<br>xd=xSumLon<br>;;;;;;;;;Areal average;;;;;;;;;;;;;;;;;;;;;;<br>printVarSummary(xSumLon)<br>zAvgLon = dim_avg_n_Wrap(xSumLon,(0))<br>printVarSummary(zAvgLon)<br>printMinMax(zAvgLon,0)<br>print(zAvgLon)<br>(0)    check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn&#39;t contain one at all.<br>(0)    A valid latitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(0)        &#39;degrees_north&#39; &#39;degrees-north&#39; &#39;degree_north&#39; &#39;degrees north&#39; &#39;degrees_N&#39; &#39;Degrees_north&#39; &#39;degree_N&#39; &#39;degreeN&#39; &#39;degreesN&#39; &#39;deg north&#39;<br>(0)    check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn&#39;t contain one at all.<br>(0)    A valid longitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(0)        &#39;degrees_east&#39; &#39;degrees-east&#39; &#39;degree_east&#39; &#39;degrees east&#39; &#39;degrees_E&#39; &#39;Degrees_east&#39; &#39;degree_E&#39; &#39;degreeE&#39; &#39;degreesE&#39; &#39;deg east&#39;<br><br></div>Thank you,<br><br><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>