<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1513332257820_3826"><span>Hi!</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1513332257820_3832"><span id="yui_3_16_0_ym19_1_1513332257820_3844">I am trying to make a time-latitude plot of rainfall using NCL. From a NetCDF that covers the region comprise between 0-20N and 10W-10E, I averaged over the longitudes and so my data became 2D (time,lat). As my original data are from GPCP where coordinates are n.5,(n+1).5 ... while me I want my data on n, n+1 ... I interpolated grids using linint1_n_Wrap function. But the problem is when I use the gsn_csm_lat_time function to plot I first got this error:</span></div><div id="yui_3_16_0_ym19_1_1513332257820_6145" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">1-<br></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6082" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">(0)     check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.<br id="yui_3_16_0_ym19_1_1513332257820_6104">(0)     A valid latitude coordinate array should have a 'units' attribute equal <br id="yui_3_16_0_ym19_1_1513332257820_6105">to one of the following values: <br id="yui_3_16_0_ym19_1_1513332257820_6106">(0)         'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'<br id="yui_3_16_0_ym19_1_1513332257820_6108">warning:cnFillPalette is not a valid resource in time_lat1996_contour at this time<br id="yui_3_16_0_ym19_1_1513332257820_6109">(0)     get_lat_values: Warning: Your latitude values do not fall between -90 and 90 inclusive.<br id="yui_3_16_0_ym19_1_1513332257820_6111">(0)     You will not get 'nice' latitude labels.<br id="yui_3_16_0_ym19_1_1513332257820_6112"></span></div><div id="yui_3_16_0_ym19_1_1513332257820_5966" dir="ltr"><br><span id="yui_3_16_0_ym19_1_1513332257820_3844"></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6174" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">Then after reading answers to similar problems in NCL-TALK I modified my code to include sfXArray and sfYArray and also to have exactly the same MetaData as in the original file for the latitude coordinate. Then the error changed a bit and become:</span></div><div id="yui_3_16_0_ym19_1_1513332257820_6249" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">2-<br></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6032" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">(0)     get_lat_values: Warning: Your latitude values do not fall between -90 and 90 inclusive.<br id="yui_3_16_0_ym19_1_1513332257820_6023">(0)     You will not get 'nice' latitude labels.</span></div><div id="yui_3_16_0_ym19_1_1513332257820_6316" dir="ltr"><br><span id="yui_3_16_0_ym19_1_1513332257820_3844"></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6315" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844">In addition to that, the plot doesn't fit completely with the window (see attached).</span></div><div id="yui_3_16_0_ym19_1_1513332257820_6348" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1513332257820_10098" dir="ltr">Attached below: my code, the plot I got and the data I used.</div><div id="yui_3_16_0_ym19_1_1513332257820_10097" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1513332257820_10114" dir="ltr">Your help is well appreciated.<br><span id="yui_3_16_0_ym19_1_1513332257820_3844"></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6349" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844"><br></span></div><div id="yui_3_16_0_ym19_1_1513332257820_6314" dir="ltr"><span id="yui_3_16_0_ym19_1_1513332257820_3844"></span></div><div id="yui_3_16_0_ym19_1_1513332257820_3744"> </div><div id="yui_3_16_0_ym19_1_1513332257820_3745" class="signature">-----------------------------<br>GUIGMA</div></div></body></html>