<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Amit,<div>I see the problem. If you want to correctly control the tickmarks and their labels, the range of coordinate variables of sdemo (time and lat) need to match the range of the inputs to tmXBValues (and tmYLValues). </div><div>Your time varies between [9159840..9334080].</div><div><br></div><div>Thus the following should work:</div><div><div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBMode = "Explicit"</div><div style=""><span style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBValues = </span>sdemo&time(0::5) ; label every 5th time</div><div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBLabels = ispan(1,115,5)</div><div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBMinorValues = sdemo&time ; minor tickmarks at every time</div></div><div style="color:rgb(0,0,0);font-size:13.3333px"><br></div><div style="color:rgb(0,0,0);font-size:13.3333px">The above takes into account that your times might not be equally spaced. If your times are not equally spaced, and you want the times to be equally spaced from 1-115, you could do the following:</div><div style="color:rgb(0,0,0);font-size:13.3333px">delete(sdemo&time)</div><div style="color:rgb(0,0,0);font-size:13.3333px">sdemo&time = ispan(1,115,1)</div><div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBMode = "Explicit"<br></div><div style="color:rgb(0,0,0);font-size:13.3333px">res@tmXBValues = <span style="color:rgb(34,34,34);font-size:small">sdemo&time(0::5) ; label every 5th time</span></div><div style="color:rgb(0,0,0);font-size:13.3333px"><div>res@tmXBLabels = ispan(1,115,5)</div><div>res@tmXBMinorValues = ispan(1,115,1)</div><div><br></div><div>Hopefully that solves the issue. If not, let ncl-talk know.</div><div>Adam</div></div><div style="color:rgb(0,0,0);font-size:13.3333px"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 29, 2018 at 10:28 PM Amit Kumar <<a href="mailto:amitkumar.777@hotmail.com">amitkumar.777@hotmail.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 id="m_-8246413211616303834divtagdefaultwrapper" style="font-size:10pt;color:#2672ec;font-family:Arial,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Adam,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">After using these explicit values, no tickmark is getting printed on the plot.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm attaching my current resource list, by using this I'm getting tickmarks on plot, but all are major tickmarks. No minor tickmark is getting ploted.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">#***************************************************************************************************************************************#<br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>var = a->OLR_DLY<br>
dimz = dimsizes(var)<br>
print(dimz)<br>
lat = a->lat<br>
lon = a->lon<br>
time = a->time<br>
<br>
lon100E = ind(lon.eq.100.) ; subscript at 90E<br>
latS = -20.<br>
latN = 40.<br>
shov = var(lon|lon100E:lon100E,{lat|latS:latN},time|:)<br>
dims = dimsizes(shov) ; shov=3D array=(1,31,127)<br>
print(dims)<br>
sdemo = onedtond(ndtooned(shov), (/dims(1),dims(2)/) )<br>
sdemo!0 = "lat"<br>
sdemo!1 = "time"<br>
sdemo&lat = lat({lat|latS:latN})<br>
sdemo&time= time<br>
<br>
sdemo = smth9 (sdemo,0.5, 0.25, False) ; 2D smoother<br>
<br>
gtPat = 17 ; stiple<br>
ltPat = 3 ; hatch<br>
<br>
</div>
;*************************<br>
<p></p>
<div>; plotting parameters<br>
;*************************<br>
wks = gsn_open_wks ("png", "Monsoon_2017_lat_time_100_13" ) ; send graphics to PNG file<br>
res = True ; plot mods desired<br>
res@gsnDraw = False ; don't draw yet<br>
res@gsnFrame = False ; don't advance frame yet<br>
res@gsnMaximize = True ; maximize plot in frame<br>
<br>
res@tiMainString = "Daily OLR variation at 100E" ; title<br>
<br>
res@vpXF = 0.12 ; default is 0.2 change aspect<br>
res@vpYF = 0.8 ; default is 0.8 ration<br>
res@vpHeightF = 0.4 ; default is 0.6<br>
res@vpWidthF = 0.8 ; default is 0.6<br>
<br>
res@cnLevelSelectionMode = "ManualLevels" ; manual levels<br>
res@cnMinLevelValF = 150. ; min level<br>
res@cnMaxLevelValF = 330. ; max level<br>
res@cnLevelSpacingF = 10 ; contour spacing<br>
<br>
res@cnFillOn = True ; color on<br>
res@lbLabelStride = 4 ; every other label<br>
res@lbOrientation = "Horizontal" ; vertical label bar<br>
res@pmLabelBarOrthogonalPosF = -0.04 ; move label bar closer to axis<br>
res@cnLinesOn = False ; turn off contour lines<br>
res@cnFillPalette = "GMT_wysiwyg" ; set color map<br>
<br>
res@tmYROn = False ; Turn off right tickmarks.<br>
res@tmXTOn = False ; Turn off top tickmarks.<br>
<br>
res@tmXBMode = "Explicit"<br>
res@tmXBValues = var&time<br>
res@tmXBLabels = ispan(0,115,1)<br>
res@tmXBLabelFontHeightF = 0.01<br>
res@tmXBMinorValues = ispan(0,115,1)<br>
res@tmXBLabelStride = 10<br>
<br>
<br>
;res@tmXBMinorOn = True<br>
;res@tmXBMinorLengthF = 0.1<br>
;res@tmXBLabels = "" + res@tmXBValues<br>
;res@tmXBMinorValues = ispan(1,115,1)<br>
;res@tmXBLabels =(/"1","10","20","30","40","50","60","70","80","90","100","110","116"/)<br>
;res@trXMinF = 0 ; Set minimum X-axis value.<br>
;res@trXMaxF = 116 ; Set maximum X-axis value.<br>
<br>
;res@tmXBMode = "Explicit"<br>
;res@tmXBValues = (/1,10,20,30,40,50,60,70,80,90,100,110/)<br>
;res@tmXBLabels = res@tmXBValues<br>
;res@tmXBLabelFontHeightF = 0.01<br>
;res@tmXBMinorValues = ispan(1,114,1)<br>
<br>
plot = gsn_csm_lat_time(wks, sdemo, res )<br>
<br>
</div>
<p style="margin-top:0;margin-bottom:0">Regards</p>
<p style="margin-top:0;margin-bottom:0">Amit<br>
</p>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%" disabled>
<div id="m_-8246413211616303834divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
<b>Sent:</b> Thursday, August 30, 2018 2:22 AM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> Ncl-talk; Rick Brownrigg<br>
<b>Subject:</b> Re: [ncl-talk] Issue with Latitude-Time Plot</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Hi Amit,
<div>Can you send your complete resource list that you are using? </div>
<div>Slight correction to what I sent earlier:<br>
</div>
<div>
<div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBMode = "Explicit"</div>
<div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBValues = <span style="font-size:small;color:rgb(34,34,34)">(/1,10,20,30,40,50,60,70,80,90,100,110/)</span></div>
<div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBLabels = <span style="font-size:13.3333px">res@tmXBValues</span></div>
<div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBLabelFontHeightF = 0.01</div>
<div style="color:rgb(0,0,0);font-size:13.3333px"> res@tmXBMinorValues = ispan(1,114,1)</div>
</div>
<div><br>
</div>
<div>Your data runs through 114 on the x-axis. If you want to set the tickmarks like this:</div>
<div>res@tmXBValues = (/1,10,20,30,40,50,60,70,80,90,100,110,120/)<br>
</div>
<div>and draw the 120 label, you will also need to set res@trXMaxF = 120</div>
<div>Adam</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="m_-8246413211616303834x_gmail_quote">
<div dir="ltr">On Tue, Aug 28, 2018 at 10:23 PM Amit Kumar <<a href="mailto:amitkumar.777@hotmail.com" id="m_-8246413211616303834LPlnk867117" class="m_-8246413211616303834OWAAutoLink" disabled target="_blank">amitkumar.777@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="m_-8246413211616303834x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-8246413211616303834x_m_-2939934934891110872divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:#2672ec;font-family:Arial,Helvetica,sans-serif">
<p style="margin-top:0;margin-bottom:0">Hi Adam,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Still the tickmarks are of same height (Plot attached).
<br>
</p>
<p style="margin-top:0;margin-bottom:0">Also when in explicit mode <span>I'm giving
<span>res@tmXBValues = (/1,10,20,30,40,50,60,70,80,90,100,110,120/)</span>, then also it is giving me error that x axis data out of range, going to default.
</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>However, when I'm plotting for only 30 days, I'm getting the desired plot (attached), that too without using any tickmark resources i.e. res@tm as you can see in the script attached in 1st message.</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Regards</p>
<p style="margin-top:0;margin-bottom:0">Amit<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-8246413211616303834x_m_-2939934934891110872divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Adam Phillips <<a href="mailto:asphilli@ucar.edu" id="m_-8246413211616303834LPlnk101285" class="m_-8246413211616303834OWAAutoLink" disabled target="_blank">asphilli@ucar.edu</a>><br>
<b>Sent:</b> Tuesday, August 28, 2018 10:02 PM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> Rick Brownrigg; Ncl-talk<br>
<b>Subject:</b> Re: [ncl-talk] Issue with Latitude-Time Plot</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>Hi Amit,</div>
<div>Try this:</div>
<div> res@tmXBMode = "Explicit"</div>
<div> res@tmXBValues = var&time</div>
<div> res@tmXBLabels = ispan(0,115,5)</div>
<div> res@tmXBLabelFontHeightF = 0.01</div>
<div> res@tmXBMinorValues = ispan(0,115,1)</div>
<div>Adam</div>
</div>
</div>
<br>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_gmail_quote">
<div dir="ltr">On Tue, Aug 28, 2018 at 8:26 AM Amit Kumar <<a href="mailto:amitkumar.777@hotmail.com" id="m_-8246413211616303834LPlnk652517" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">amitkumar.777@hotmail.com</a>>
wrote:<br>
</div>
<blockquote class="m_-8246413211616303834x_m_-2939934934891110872x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Dear All,<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
When I'm following as mentioned in example 2, then no labels are getting printed on x axis.<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Regards<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Amit<br>
<br>
<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Get <a href="https://aka.ms/ghei36" id="m_-8246413211616303834LPlnk116604" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">
Outlook for Android</a></div>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" id="m_-8246413211616303834LPlnk303638" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">brownrig@ucar.edu</a>><br>
<b>Sent:</b> Tuesday, August 28, 2018 6:23:43 PM<br>
<b>To:</b> Amit Kumar<br>
<b>Subject:</b> Re: [ncl-talk] Issue with Latitude-Time Plot</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>You might look at "<strong>tmXBMinorValues</strong> " at <br>
</div>
<div><br>
</div>
<div><a href="http://ncl.ucar.edu/Document/Graphics/Resources/tm.shtml" id="m_-8246413211616303834LPlnk291893" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">http://ncl.ucar.edu/Document/Graphics/Resources/tm.shtml</a></div>
<div><br>
</div>
<div>and example #2 at</div>
<div><br>
</div>
<div><a href="http://ncl.ucar.edu/Applications/tickmarks.shtml" id="m_-8246413211616303834LPlnk857450" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">http://ncl.ucar.edu/Applications/tickmarks.shtml</a></div>
<div><br>
</div>
<div>for dealing with minor tickmarks when using tmXBMode = "Explicit"<br>
</div>
</div>
</div>
</div>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_gmail_extra"><br>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_gmail_quote">On Tue, Aug 28, 2018 at 12:37 AM, Amit Kumar
<span dir="ltr"><<a href="mailto:amitkumar.777@hotmail.com" id="m_-8246413211616303834LPlnk81363" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">amitkumar.777@hotmail.com</a>></span> wrote:<br>
<blockquote class="m_-8246413211616303834x_m_-2939934934891110872x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:#2672ec;font-family:Arial,Helvetica,sans-serif">
<p style="margin-top:0;margin-bottom:0">Hi All,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I've made following changes as suggested by Adam in the script,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> res@tmXBMode = "Explicit"<br>
res@tmXBValues = var&time<br>
res@tmXBLabels = ispan(0,115,1)<br>
res@tmXBLabelFontHeightF = 0.01<br>
res@tmXBLabelStride = 10<br>
<br>
</div>
Now as it can be seen from the image that all the labels are major labels, is there a way to define all other tickmarks except for which label is mentioned as minor tickmarks.
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Regards</p>
<p style="margin-top:0;margin-bottom:0">Amit<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Adam Phillips <<a href="mailto:asphilli@ucar.edu" id="m_-8246413211616303834LPlnk20172" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">asphilli@ucar.edu</a>><br>
<b>Sent:</b> Monday, August 27, 2018 9:51 PM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> Rick Brownrigg; Ncl-talk<br>
<b>Subject:</b> Re: [ncl-talk] Issue with Latitude-Time Plot</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Hi Amit,
<div>You can override the behavior of the bottom x-axis tick mark labels by setting:</div>
<div>res@tmXBMode = "Explicit"</div>
<div>res@tmXBValues = OLR_DAY&time</div>
<div>res@tmXBLabels = ispan(1,115,1)</div>
<div><br>
</div>
<div>See tickmarks example #2 here (bottom panel coding):</div>
<div><a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2" id="m_-8246413211616303834LPlnk629111" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2</a>
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPBorder_GT_15354379083420.7230135833292057" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPContainer_15354379083260.6511779614714113" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133TextCell_15354379083410.8997603880630299" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPRemovePreviewContainer_15354379083410.4001661616261367">
</div>
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPTitle_15354379083410.18561725657267691" style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_-8246413211616303834LPlnk542973" href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" style="text-decoration:none" disabled target="_blank">Tick marks - University
Corporation for Atmospheric Research</a></div>
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPMetadata_15354379083420.812864693862183" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.ncl.ucar.edu" id="m_-8246413211616303834LPlnk932658" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">www.ncl.ucar.edu</a></div>
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133LPDescription_15354379083420.932297427622316" style="display:block;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
NCL graphics examples page. Describes various tick mark resources and ways to manage the tick marks.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
<div><br>
</div>
<div>If you have further questions please post them to ncl-talk.</div>
<div>Adam</div>
</div>
</div>
<br>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_gmail_quote">
<div dir="ltr">On Mon, Aug 27, 2018 at 9:51 AM Amit Kumar <<a href="mailto:amitkumar.777@hotmail.com" id="m_-8246413211616303834LPlnk442439" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">amitkumar.777@hotmail.com</a>>
wrote:<br>
</div>
<blockquote class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Dear Rick, <br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Actually these 115 time stamps are for each day. I have concatenated to these individual days into one using cdo. I want to plot time at x axis which will vary from 1 to 115 indicating each day, so that the plot can be ploted as latitude vs time and variation
of olr can be seen over latitude and time . It is on the same lines as the example for sst anamoly in latitude vs time section in ncl examples.<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Regards<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Amit<br>
<br>
<br>
<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Get <a href="https://aka.ms/ghei36" id="m_-8246413211616303834LPlnk105314" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">
Outlook for Android</a></div>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_m_8463741168528930665m_6351736424769406360divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" id="m_-8246413211616303834LPlnk161788" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">brownrig@ucar.edu</a>><br>
<b>Sent:</b> Monday, August 27, 2018 8:47:24 PM<br>
<b>To:</b> Amit Kumar<br>
<b>Subject:</b> Re: [ncl-talk] Issue with Latitude-Time Plot</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>Hi Amit,</div>
<div><br>
</div>
<div>Offhand, given the time variable's coordinate range:</div>
<div><br>
</div>
<div>Variable: time<br>
Type: double<br>
Total Size: 115 values<br>
920 bytes<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [ 115 <time | unlimited> ]<br>
Chunking Info: [ 524288 <time> ]<br>
Coordinates:<br>
time: [9159840..9334080]<br>
</div>
<div><br>
</div>
<div>I'd the plot looks about what I'd expect. In what way do you think the time values are incorrect?</div>
<div><br>
</div>
<div>Rick<br>
</div>
<div><br>
</div>
</div>
</div>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_gmail_extra">
<br>
<div class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_gmail_quote">
On Mon, Aug 27, 2018 at 6:02 AM, Amit Kumar <span dir="ltr"><<a href="mailto:amitkumar.777@hotmail.com" id="m_-8246413211616303834LPlnk410519" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">amitkumar.777@hotmail.com</a>></span>
wrote:<br>
<blockquote class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_m_8463741168528930665m_6351736424769406360m_3906427214880366860divtagdefaultwrapper" dir="ltr" style="font-size:10pt;color:#2672ec;font-family:Arial,Helvetica,sans-serif">
<p style="margin-top:0;margin-bottom:0">Dear All,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm trying to plot Latitude vs Time Plot. It is working fine when I've 30 time instances, but for greater then that (i.e. 115 time steps) the plot is sowing different values in x-axis (time).</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm not able to workout why this is happening? I'm attaching the output and my ncl script.
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">==================================================================================================</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> var = a->OLR_DLY<br>
dims = dimsizes(var)<br>
print(dims)<br>
lat = a->lat<br>
lon = a->lon<br>
time = a->time<br>
<br>
lon100E = ind(lon.eq.100.) ; subscript at 90E<br>
latS = -20.<br>
latN = 40.<br>
shov = var(lon|lon100E:lon100E,{lat|latS:latN},time|:)<br>
dims = dimsizes(shov) ; shov=3D array=(1,31,127)<br>
sdemo = onedtond(ndtooned(shov), (/dims(1),dims(2)/) )<br>
sdemo!0 = "lat"<br>
sdemo!1 = "time"<br>
sdemo&lat = lat({lat|latS:latN})<br>
sdemo&time= time<br>
<br>
sdemo = smth9 (sdemo,0.5, 0.25, False) ; 2D smoother<br>
<br>
gtPat = 17 ; stiple<br>
ltPat = 3 ; hatch<br>
;*************************<br>
; plotting parameters<br>
;*************************<br>
wks = gsn_open_wks ("png", "Monsoon_2017_lat_time_100_1" ) ; send graphics to PNG file<br>
res = True ; plot mods desired<br>
res@gsnDraw = False ; don't draw yet<br>
res@gsnFrame = False ; don't advance frame yet<br>
<br>
res@tiMainString = "Daily OLR variation at 100E" ; title<br>
<br>
res@vpXF = 0.12 ; default is 0.2 change aspect<br>
res@vpYF = 0.8 ; default is 0.8 ration<br>
res@vpHeightF = 0.4 ; default is 0.6<br>
res@vpWidthF = 0.8 ; default is 0.6<br>
<br>
res@cnLevelSelectionMode = "ManualLevels" ; manual levels<br>
res@cnMinLevelValF = 150. ; min level<br>
res@cnMaxLevelValF = 330. ; max level<br>
res@cnLevelSpacingF = 10 ; contour spacing<br>
<br>
res@cnFillOn = True ; color on<br>
res@lbLabelStride = 4 ; every other label<br>
res@lbOrientation = "Horizontal" ; vertical label bar<br>
res@pmLabelBarOrthogonalPosF = -0.04 ; move label bar closer to axis<br>
res@cnLinesOn = False ; turn off contour lines<br>
res@cnFillPalette = "GMT_wysiwyg" ; set color map<br>
<br>
<br>
plot = gsn_csm_lat_time(wks, sdemo, res )<br>
;opt = True<br>
;opt@gsnShadeFillType = "pattern"<br>
;opt@gsnShadeLow = ltPat<br>
;opt@gsnShadeHigh = gtPat<br>
;plot = gsn_contour_shade(plot, -0.69, 0.25, opt)<br>
;plot = ZeroLineContour (plot)<br>
draw (plot) ; draw the contour object<br>
frame (wks) ; advance frame<br>
end</div>
<div>==================================================================================================</div>
<div>%%%%%%%%%%%%%%%%%%%</div>
<div>################################</div>
<div><br>
</div>
<div>
<div>dimensions:<br>
lon = 1400<br>
lat = 1400<br>
time = 115 // unlimited<br>
<br>
chunk dimensions:<br>
lon = 1400<br>
<br>
variables:<br>
Variable: lon<br>
Type: double<br>
Total Size: 1400 values<br>
11200 bytes<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [ 1400 <lon> ]<br>
Coordinates:<br>
lon: [40..109.95]<br>
Number of Attributes: 4<br>
standard_name : longitude<br>
long_name : longitude<br>
units : degrees_east<br>
axis : X<br>
<br>
Variable: lat<br>
Type: double<br>
Total Size: 1400 values<br>
11200 bytes<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [ 1400 <lat> ]<br>
Coordinates:<br>
lat: [-20..49.95]<br>
Number of Attributes: 4<br>
standard_name : latitude<br>
long_name : latitude<br>
units : degrees_north<br>
axis : Y<br>
<br>
Variable: time<br>
Type: double<br>
Total Size: 115 values<br>
920 bytes<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [ 115 <time | unlimited> ]<br>
Chunking Info: [ 524288 <time> ]<br>
Coordinates:<br>
time: [9159840..9334080]<br>
Number of Attributes: 4<br>
standard_name : time<br>
units : minutes since 2000-1-1 00:00:00<br>
calendar : standard<br>
axis : T<br>
<br>
Variable: OLR_DLY<br>
Type: float<br>
Total Size: 225400000 values<br>
901600000 bytes<br>
Number of Dimensions: 3<br>
Dimensions and sizes: [ 115 <time | unlimited> x 1400 <lat> x 1400 <lon> ]<br>
Chunking Info: [ 1 <time> x 1 <lat> x 1400 <lon> ]<br>
Coordinates:<br>
time: [9159840..9334080]<br>
lat: [-20..49.95]<br>
lon: [40..109.95]<br>
Number of Attributes: 5<br>
standard_name : Outgoing Longwave Radiation<br>
long_name : Out Longwave Radiation(Daily)<br>
units : W.m-2<br>
_FillValue : -999<br>
missing_value : -999<br>
<br>
<br>
</div>
########################################<br>
</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div><br>
</div>
<div>Regards</div>
<span class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_m_8463741168528930665m_6351736424769406360HOEnZb"><font color="#888888">
<div>Amit<br>
</div>
<br>
<p></p>
</font></span></div>
</div>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" id="m_-8246413211616303834LPlnk982590" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk845690" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" id="m_-8246413211616303834LPlnk61556" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk197614" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><span class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
<span class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638HOEnZb"><font color="#888888"></font></span></div>
<span class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638HOEnZb"><font color="#888888"><br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133x_m_8463741168528930665gmail_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/" id="m_-8246413211616303834LPlnk967281" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk304872" class="m_-8246413211616303834x_m_-2939934934891110872x_m_-2206790266544090638m_955471742018848133OWAAutoLink m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank"></a></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" id="m_-8246413211616303834LPlnk192210" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk588674" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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_-8246413211616303834x_m_-2939934934891110872x_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/" id="m_-8246413211616303834LPlnk46680" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk829287" class="m_-8246413211616303834x_m_-2939934934891110872OWAAutoLink m_-8246413211616303834OWAAutoLink" disabled target="_blank"></a></font></span></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="m_-8246413211616303834x_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/" id="m_-8246413211616303834LPlnk908055" class="m_-8246413211616303834OWAAutoLink" disabled 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" id="m_-8246413211616303834LPlnk280983" class="m_-8246413211616303834OWAAutoLink" disabled target="_blank"></a></font></span></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>