<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>1. In your example, please notice that the month loop has a stride of 3. Therefore it is making plots for only four months: January, April, July, and October.</div><div><br></div><div>If you want all 12 months, remove the stride. Then make sure the array "plot" is dimensioned 12. I think you can interchangeably use either a 1-D or 2-D plot array (i.e. 3*4), your choice.</div><div><br></div><div>The secondary index "i" is used to write the four plots into positions 0, 1, 2, 3 in the "plot" graphics array. If you are making 12 plots, you do not really need to use a secondary index.</div><div><br></div><div>Panel plotting uses a graphics array containing multiple plots. Please study basic examples and documentation for making panel plots.</div><div><br></div><div>2. That data file has full coordinates. Therefore you can use either conventional or coordinate subscripting, or mixed, your choice.</div><div><br></div>I suggest using one of the date functions with coordinate subscripting, to index the time subset that you want. Something like this:<br><br> time_units = f->air&time@units<br> time1 = cd_inv_calendar (year1, 1, 1, 0, 0, 0, time_units, 0)<br> time2 = cd_inv_calendar (year2, 12, 31, 23, 0, 0, time_units, 0)</div><div dir="ltr"> air_subset = f->air({time1:time2},:,:)<br><div><br></div><div>Use printVarSummary to ensure that the subset has the dimension sizes that you expect. Then you can proceed to compute the climatology.</div><div><br></div><div><br></div><div>On Fri, Oct 25, 2019 at 10:14 AM zoe jacobs via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><font face="arial, sans-serif">Hi all,</font><div><font face="arial, sans-serif">regarding climo_3.ncl (<a href="https://www.ncl.ucar.edu/Applications/Scripts/climo_3.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/climo_3.ncl</a>) ,</font></div><div><font face="arial, sans-serif">I have 2 questions:</font></div><div><font face="arial, sans-serif">1. I need to plot all months on one panel (say 3*4), and cannot understand the logic behind the below loop, which used in the climo_3.ncl script :</font></div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif" style="background-color:rgb(241,194,50)">i = -1 ; Climatologies
do nmo=0,11,3 ; loop over the months
i = i+1
res@gsnCenterString = months(nmo)+":"+time(0)/100 +"-"+ time(ntim-1)/100
plot(i) = gsn_csm_contour_map(wks,prcClm(nmo,:,:), res) ; create plot
end do</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif" style="background-color:rgb(241,194,50)">How does it work??/</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">2. I would like to show climotology temperature from 1987- 2015. Data which I am using is<span style="background-color:rgb(180,167,214)"> <a href="http://air.mon.mean.nc" target="_blank">air.mon.mean.nc</a> </span><span style="background-color:rgb(255,255,255)"> ( </span><a href="https://www.esrl.noaa.gov/psd/data/gridded/data.ghcncams.html" target="_blank">https://www.esrl.noaa.gov/psd/data/gridded/data.ghcncams.html</a>) <span style="background-color:rgb(255,255,255)"> and it is </span>using conventional subscripts. I am not familiar with conventional subscripts. So how can I convert coordinate subscripting to conventional subscripts?!!</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Please kindly advice me .</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Many thanks in advance,</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Best regards,</font></pre></div></div></blockquote></div></div></div></div>