[ncl-talk] Hovmueller plot, x axis range adjustment

Toni Klemm toni-klemm at tamu.edu
Fri Aug 31 15:15:13 MDT 2018


Hello all,

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 res at trXMinF and res at trXMaxF, but I got this error message: 

warning:ContourPlotSetValues: X coordinates out of data range: defaulting

I used example 5 here (https://www.ncl.ucar.edu/Applications/time_lon.shtml <https://www.ncl.ucar.edu/Applications/time_lon.shtml>) as a template, but I didn’t find an explanation for how the x axis shows longitudes there.

Any help would be much appreciated!

I attached the netCDF file, the plot, and my script. 

Thank you,
Toni



Toni Klemm, Ph.D.
Postdoctoral Research Associate
Department of Ecosystem Science and Management
College of Agriculture and Life Sciences
Texas A&M University, College Station, TX
Contributor to the Early Career Climate Forum <http://www.eccforum.org/>
www.toni-klemm.de <http://www.toni-klemm.de/> | @toniklemm <http://twitter.com/toniklemm>






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcp_45_fs_CCSM4_VTYPE_3_grouped_lat_zone_1_2015-2099_time_series.nc
Type: application/octet-stream
Size: 1312356 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0005.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HOV_script.rtf
Type: text/rtf
Size: 2853 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0006.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcp_45_fs_CCSM4_VTYPE_percentage_G_HOV_TEST_zone_1.png
Type: image/png
Size: 78836 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0001.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180831/35ad696c/attachment-0007.html>


More information about the ncl-talk mailing list