<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Jalal,<div>That you for sending a clean easy-to-read script. It looks like your mean_prc array is dimensioned lon x lat. gsn_csm_contour_map expects the data to be arranged as lat x lon. Change this:</div><div>plot = gsn_csm_contour_map(wks, mean_prc,res)<br></div><div>to this:</div><div>plot = gsn_csm_contour_map(wks, mean_prc(lat|:,lon|:),res)<br></div><div><br></div><div>Also you might want to check that when you used coordinate subscripting that you are subscripting the correct dimensions:</div><div> prc = f->pre(:,{-5:30},{40:100}) ; (line 5)<br></div><div><br></div><div>Hope that helps. If you have further questions please let ncl-talk know.</div><div>Adam</div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 10, 2018 at 8:03 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi sir,</div><div>Please find the results that you mentioned. The clean script is attached herewith.</div><div><br></div><div>Variable: prc</div><div>Type: double</div><div>Total Size: 316780800 bytes</div><div> 39597600 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[time | 7071] x [longitude | 140] x [latitude | 40]</div><div>Coordinates: </div><div> time: [ 730..6939]</div><div> longitude: [-4.875..29.875]</div><div> latitude: [40.125..49.875]</div><div>Number Of Attributes: 4</div><div> long_name :<span style="white-space:pre-wrap"> </span>precipitation</div><div> units :<span style="white-space:pre-wrap"> </span>mm</div><div> _FillValue :<span style="white-space:pre-wrap"> </span>-nan</div><div> missing_value :<span style="white-space:pre-wrap"> </span>-nan</div><div><br></div><div>Variable: latitude (coordinate)</div><div>Type: double</div><div>Total Size: 320 bytes</div><div> 40 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[latitude | 40]</div><div>Coordinates: </div><div>Number Of Attributes: 4</div><div> standard_name :<span style="white-space:pre-wrap"> </span>latitude</div><div> long_name :<span style="white-space:pre-wrap"> </span>latitude</div><div> units :<span style="white-space:pre-wrap"> </span>degrees_north</div><div> axis :<span style="white-space:pre-wrap"> </span>Y</div><div><br></div><div>Variable: longitude (coordinate)</div><div>Type: double</div><div>Total Size: 1120 bytes</div><div> 140 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[longitude | 140]</div><div>Coordinates: </div><div>Number Of Attributes: 4</div><div> standard_name :<span style="white-space:pre-wrap"> </span>longitude</div><div> long_name :<span style="white-space:pre-wrap"> </span>longitude</div><div> units :<span style="white-space:pre-wrap"> </span>degrees_east</div><div> axis :<span style="white-space:pre-wrap"> </span>X</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 11, 2018 at 1:23 AM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jalal,<div>Can you run this part of your script and send the results to ncl-talk? Also, please include a clean, complete script so we can see how you are creating the plot. </div><div><div>f = addfile("<a href="http://non_cy.nc/" target="_blank">non_cy.nc</a>", "r")</div><div> prc = f->pre(:,{-5:30},{40:100})</div><div> prc@long_name = "precipitation"</div><div> prc@units = "mm"</div><div> prc&longitude@units = "degrees_east"</div><div> prc&latitude@units = "degrees_north"</div><div> printVarSummary(prc)</div></div><div> printVarSummary(prc&latitude)</div><div> printVarSummary(prc&longitude)</div><div><br></div><div>As always please respond to ncl-talk.</div><div>Adam</div><div><br></div><div> </div><br class="m_-7858979554544881308m_4289256164169686462gmail-Apple-interchange-newline"><div> </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018 at 10:11 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div>I am getting the following errors:</div><div>(0)<span style="white-space:pre-wrap"> </span>check_for_y_lat_coord: Warning: Data either does not contain</div><div>(0)<span style="white-space:pre-wrap"> </span>a valid latitude coordinate array or doesn't contain one at all.</div><div>(0)<span style="white-space:pre-wrap"> </span>A valid latitude coordinate array should have a 'units'</div><div>(0)<span style="white-space:pre-wrap"> </span>attribute equal to one of the following values: </div><div>(0)<span style="white-space:pre-wrap"> </span> 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'</div><div>(0)<span style="white-space:pre-wrap"> </span>check_for_lon_coord: Warning: Data either does not contain</div><div>(0)<span style="white-space:pre-wrap"> </span>a valid longitude coordinate array or doesn't contain one at all.</div><div>(0)<span style="white-space:pre-wrap"> </span>A valid longitude coordinate array should have a 'units'</div><div>(0)<span style="white-space:pre-wrap"> </span>attribute equal to one of the following values: </div><div>(0)<span style="white-space:pre-wrap"> </span> 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'</div><div><br></div><div>I tried to fix these problems by:</div><div><div>f = addfile("<a href="http://non_cy.nc" target="_blank">non_cy.nc</a>", "r")</div><div> prc = f->pre(:,{-5:30},{40:100})</div><div> prc@long_name = "precipitation"</div><div> prc@units = "mm"</div><div> prc&longitude@units = "degrees_east"</div><div> prc&latitude@units = "degrees_north"</div><div> ;printVarSummary(prc)</div><div> </div><div> mean_prc = dim_avg_n_Wrap(prc,0)</div><div> mean_prc@long_name = "precipitation"</div><div> mean_prc@units = "mm"</div><div> mean_prc&longitude@units = "degrees_east"</div><div> mean_prc&latitude@units = "degrees_north"</div><div> </div></div><div>However, I am getting those errors again. How can I solve these problems? Please find the script herewith. I used TRMM daily rainfall data.</div><div><br></div><div>Best Regards</div><div>Jalal</div>-- <br><div dir="ltr" class="m_-7858979554544881308m_4289256164169686462m_-3158424583002961196gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-7858979554544881308m_4289256164169686462gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-7858979554544881308gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>