<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Adam,<div class=""><br class=""></div><div class="">Thanks a lot for explaining that, it worked!</div><div class=""><br class=""></div><div class="">Just one more thing. The spacing between numbers on the x axis is now so large that I only get a “100W” in the middle of my plot (which spans from 95 to 105 degrees West). Is there a way to adjust the spacing between numbers and tick marks to, say, 1 degree intervals? I know how to do it on the y axis (<font face="Courier" class="">res@cnLevelSpacingF</font>), but I don’t see how to change it to work for the x axis, too.</div><div class=""><br class=""></div><div class="">Thank you again for your help!</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class="Apple-interchange-newline"><br class=""></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><b class="">Toni Klemm, Ph.D.<br class=""></b>Postdoctoral Research Associate</font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Department of Ecosystem Science and Management</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">College of Agriculture and Life Sciences</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Texas A&M University, College Station, TX</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class="">Contributor to the <a href="http://www.eccforum.org" class="">Early Career Climate Forum</a><br class=""><a href="http://www.toni-klemm.de" class="">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" class="">@toniklemm</a></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></font></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Aug 31, 2018, at 4:28 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi Toni,<div class="">Thanks for sending a clean script and the data file as that made diagnosing the issue easier. When you call the gsn_csm_hov plotting function and pass in your data array (in your script named data_00), NCL will look at the coordinate variables attached to the 2 dimensions for information on how to display the data. If NCL does not find any coordinate variables, it will label the corresponding axis starting at 0. Looking at your data_00 array:</div><div class=""><div class="">Variable: data_00</div><div class="">Type: float</div><div class="">Total Size: 6800 bytes</div><div class=""> 1700 values</div><div class="">Number of Dimensions: 2</div><div class="">Dimensions and sizes:<span style="white-space: pre;" class=""> </span>[year | 85] x [lon_zones | 20]</div><div class="">Coordinates: </div><div class=""> year: [2015..2099]</div><div class="">Number Of Attributes: 3</div><div class=""> units :<span style="white-space: pre;" class=""> </span>%</div><div class=""> long_name :<span style="white-space: pre;" class=""> </span>Grassland percentage of total area in latitude zone 1</div><div class=""> _FillValue :<span style="white-space: pre;" class=""> </span>9.96921e+36</div></div><div class=""><br class=""></div><div class="">The 1st dimension is shown as have a coordinate variable (named year), but the 2nd dimension does not. (Note that the second dimension is named lon_zones though.) To solve the problem you need to attach the lon_zones array from the input .nc file as a coordinate variable to your data_00 array:</div><div class="">data_00&lon_zones = MC2_f->lon_zones<br class=""></div><div class=""><br class=""></div><div class="">If you have further questions let ncl-talk know.</div><div class="">Adam</div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class="">On Fri, Aug 31, 2018 at 3:15 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" class="">toni-klemm@tamu.edu</a>> wrote:<br class=""></div><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 style="word-wrap: break-word; line-break: after-white-space;" class="">Hello all,<div class=""><br class=""></div><div class="">I'm trying to plot a time series of data in the form of a Hovmueller plot. However, I have trouble adjusting the x axis such that it shows the range of longitudes correctly. Instead of the longitude range, -105 to -95 degrees East in 0.5 degrees increments, it shows a range from 0 to 18 on the x axis of the plot. Longitudes are included in the netCDF file as variable “lon_zones”. I tried to adjust the x axis range manually using <font face="Courier" class="">res@trXMinF</font> and <font face="Courier" class="">res@trXMaxF</font>, but I got this error message: </div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(43, 102, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">warning:ContourPlotSetValues: X coordinates out of data range: defaulting</span></div></div><div class=""><br class=""></div><div class="">I used example 5 here (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_time-5Flon.shtml&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=zJwsSMX3x66lHFdgGOdI10naJX7N1ScPJ0Shentz8p0&e=" target="_blank" class="">https://www.ncl.ucar.edu/Applications/time_lon.shtml</a>) as a template, but I didn’t find an explanation for how the x axis shows longitudes there.</div><div class=""><br class=""></div><div class="">Any help would be much appreciated!<div class=""><div class=""><div dir="auto" style="word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; line-break: after-white-space;" class=""><div class=""><font face="Calibri" class=""><br class=""></font></div><div class=""><div class="">I attached the netCDF file, the plot, and my script. </div><div class=""><br class=""></div></div><div class=""><font face="Calibri" class="">Thank you,</font></div><div class=""><font face="Calibri" class="">Toni</font></div><div class=""><font face="Calibri" class=""><br class=""></font></div></div></div></div></div></div></div></div></div><div class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;" class=""><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class="m_6451855782886598996Apple-interchange-newline"><br class=""></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><b class="">Toni Klemm, Ph.D.<br class=""></b>Postdoctoral Research Associate</font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Department of Ecosystem Science and Management</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">College of Agriculture and Life Sciences</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Texas A&M University, College Station, TX</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class="">Contributor to the <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=gppt_EbRFvdSA4qLiIQEHsei5NxmDtIsC71YGUDfO1k&e=" target="_blank" class="">Early Career Climate Forum</a><br class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=ESCx1g0uuNZA7maAaz9rjOLwzbRGQ7etUXx2FgDocPo&e=" target="_blank" class="">www.toni-klemm.de</a> | <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=gxXGitckavGUpEA7f8H7ItGPzw5DsZ9CXLsdCWoa7cY&e=" target="_blank" class="">@toniklemm</a></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class=""></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class=""></font></div></div></div></div></div></div></div></div><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div id="m_6451855782886598996AppleMailSignature" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""></div></div></div></div></div><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div id="m_6451855782886598996AppleMailSignature" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""></div><br class="m_6451855782886598996Apple-interchange-newline"></div></div></div></div><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class=""></div><br class="m_6451855782886598996Apple-interchange-newline"><br class="m_6451855782886598996Apple-interchange-newline"></div><br class=""></div>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=z0KVxWJGAxDGnpKuj6kbEMjrjt_rO_V3JT3AIs3OR7E&e=" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""></blockquote></div><br clear="all" style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><span style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature" style="caret-color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips<span class="Apple-converted-space"> </span><br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist, <span class="Apple-converted-space"> </span></font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cgd.ucar.edu_staff_asphilli_&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=VgThLzVijhWf-FblNez_y0LmBqtY9dHaMbJ3o1gCOkU&s=DmU_yPWQcHL_D5CCJScnx6lbFU3MBkxpBJfU-MtXVk4&e=" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a> <span class="Apple-converted-space"> </span></font></span><span class=""><font color="#888888" class="">303-497-1726<span class="Apple-converted-space"> </span></font></span></div></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>