<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't see any calls to gsn_csm_xxxx_map, so I'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 "units" 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&lat = x4d(0,0,:,0)</div><div class="gmail_default">xSumLon&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&lat@unit = "degrees_north"</div><div class="gmail_default">xSumLon&lon@units = "degrees_east"</div><div class="gmail_default"><br></div><div class="gmail_default">If you continue to have problems, please do a "replay all" 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"><<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@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"><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="time" ;added by feng<br>xSumLon!1="lat" ;added by feng<br>xSumLon!2="lon" ;added by feng<br>xSumLon&lat = x4d(0,0,:,0)<br>xSumLon&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't contain one at all.<br>(0) A valid latitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'<br>(0) check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn't contain one at all.<br>(0) A valid longitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'<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>