<div dir="ltr"><div><div><div><div><div><div><div>Assuming that the source TRMM array (P) is 'global' (eg: 60S-60N, all longitudes); <br>P(lat,lon) an<br><br></div> lonL = 100.0<br></div> lonR = 120.0<br></div> latS = -20.0<br></div> latN = 10.0<br><br>[1]<br></div>If the array being passed to the plot function is not cyclic in longitude then you use<br><br></div><div> ; pass subset of global array <br> res@gsnAddCyclic = False</div> plot = gsn_csm_contour_map(wks, P({latS:latN},{lonL:lonR}), res)<br><br>[2]<br></div>In the following, the full array 'P', which is cyclic in longitude, is being passed to the plot function so res@gsnAddCyclic=True (default) is needed. The following 4 plot resources says to select the specified region from the full grid and plot just that.<br><div><pre> res@mpMinLatF = latS ; range to zoom in on
res@mpMaxLatF = latN
res@mpMinLonF = lonL
res@mpMaxLonF = lonR</pre><pre> res@gsnAddCyclic = True ; default <br> plot = gsn_csm_contour_map(wks, P , res)<br><br></pre><pre>Good Luck<br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 30, 2015 at 10:16 PM, Saurabh Singh <span dir="ltr"><<a href="mailto:saurabhsingh123op@gmail.com" target="_blank">saurabhsingh123op@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"><img src="cid:ii_iitsmjb80_151f671d796d34d8" height="288" width="544"><br><br clear="all"><div>Dear Sir</div><div><br></div><div><br></div><div>I am trying to plot two TRMM plots for my study domain. In the left option i add the option res@gsnAddCyclic =True while right one with res@gsnAddCyclic =False. I did all this experimenting because i got a warning as follows :</div><div><br></div><div><div><b>(0) gsn_add_cyclic: Warning: The range of your longitude data is not 360.</b></div><div><b>(0) You may want to set the gsnAddCyclic resource to False to avoid a</b></div><div><b>(0) warning message from the spline function.</b></div><div><b>warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</b></div><div><b>warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</b></div></div><div><br></div><div>Now, i am confuses which plot to adopt for my analysis. Please, guide me through this, is there anty option in ncl_fildump whic h can tell me about the logic to be set for gsnAddCyclic.</div><div><u><br></u></div><div><u><font color="#0000ff"><b>Wish you guys a very happy new year, and thanks a lot for making our life so easy for our works on NetCdf data. I really adore you guys.</b></font></u></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span>
</span></font><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:Webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:Arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div></div>
</font></span></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>