<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ah, I see -- the problem is that your time axis isn't linear. The time increment is not constant -- it looks like your delta-T's (in hours) are 3, 3, 9, 9, 3, 3, 9, 9… I hate to say this, but GrADS won't handle that data file properly. The requirement of a linear time axis for gridded data is non-negotiable.&nbsp;<div>--Jennifer<br><div><br><div><div>On May 28, 2014, at 6:28 PM, Stefano Materia wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hi Jennifer, sorry for my delayed reply.<br><br>Why do you believe I need two axes? I only have one month (January), and I<br>need to plot my 124 values (four per day at 8, 11, 14, 23). I really think<br>I only need the axis for diurnal cycle at those specific times, but I'm<br>not able to build it :)<br><br>This is how the ncdump output looks like.<br><br>ncdump -h tday_jan_daymean_1981-2010.nc<br><br>netcdf tday_jan_daymean_1981-2010 {<br>dimensions:<br><span class="Apple-tab-span" style="white-space:pre">        </span>longitude = 464 ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>latitude = 201 ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>time = UNLIMITED ; // (124 currently)<br>variables:<br><span class="Apple-tab-span" style="white-space:pre">        </span>float longitude(longitude) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>longitude:standard_name = "longitude" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>longitude:long_name = "Longitude values" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>longitude:units = "degrees_E" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>longitude:axis = "X" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>float latitude(latitude) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>latitude:standard_name = "latitude" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>latitude:long_name = "Latitude values" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>latitude:units = "degrees_N" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>latitude:axis = "Y" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>double time(time) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>time:standard_name = "time" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>time:long_name = "Time in days" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>time:units = "days since 1980-01-01 08:00:00" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>time:calendar = "standard" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>short tn(time, latitude, longitude) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:standard_name = "air_temperature" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:long_name = "minimum temperature" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:units = "Celsius" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:add_offset = 0.f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:scale_factor = 0.01f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:_FillValue = -9999s ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>tn:missing_value = -9999s ;<br><br>///<br><br>and here is the output of the cdo command showinfo:<br><br>cdo sinfo tday_jan_daymean_1981-2010.nc<br> &nbsp;&nbsp;File format: netCDF<br> &nbsp;&nbsp;&nbsp;-1 : Institut Source &nbsp;&nbsp;Ttype &nbsp;&nbsp;&nbsp;Levels Num &nbsp;Gridsize Num Dtype :<br>Parameter ID<br> &nbsp;&nbsp;&nbsp;&nbsp;1 : unknown &nbsp;unknown &nbsp;instant &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;&nbsp;93264 &nbsp;&nbsp;1 &nbsp;I16 &nbsp;: -1<br> &nbsp;&nbsp;Grid coordinates :<br> &nbsp;&nbsp;&nbsp;&nbsp;1 : lonlat &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; size &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: dim = 93264 &nbsp;nx = 464 &nbsp;ny = 201<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;longitude : first = -40.375 &nbsp;last = 75.375 &nbsp;inc =<br>0.25 &nbsp;degrees_E<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;latitude &nbsp;: first = 25.375 &nbsp;last = 75.375 &nbsp;inc =<br>0.25 &nbsp;degrees_N<br> &nbsp;&nbsp;Vertical coordinates :<br> &nbsp;&nbsp;&nbsp;&nbsp;1 : surface &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0<br> &nbsp;&nbsp;Time coordinate : &nbsp;124 steps<br> &nbsp;&nbsp;&nbsp;&nbsp;RefTime = &nbsp;1980-01-01 08:00:00 &nbsp;Units = days &nbsp;Calendar = standard<br> &nbsp;YYYY-MM-DD hh:mm:ss &nbsp;YYYY-MM-DD hh:mm:ss &nbsp;YYYY-MM-DD hh:mm:ss <br>YYYY-MM-DD hh:mm:ss<br> &nbsp;1980-01-01 08:00:00 &nbsp;1980-01-01 11:00:00 &nbsp;1980-01-01 14:00:00 <br>1980-01-01 23:00:00<br> &nbsp;1980-01-02 08:00:00 &nbsp;1980-01-02 11:00:00 &nbsp;1980-01-02 14:00:00 <br>1980-01-02 23:00:00<br> &nbsp;1980-01-03 08:00:00 &nbsp;1980-01-03 11:00:00 &nbsp;1980-01-03 14:00:00 <br>1980-01-03 23:00:00<br> &nbsp;..................................................................................<br><br>///<br><br>Thanks very much for your help.<br><br>Stefano<br><br><br><blockquote type="cite">It sounds like what you really need are two axes -- a time axis with a<br></blockquote><blockquote type="cite">monthly increment, and another axis for the diurnal cycle at hours 8, 11,<br></blockquote><blockquote type="cite">14, and 23 (E with a size of 4 would be useful for that). You can't plot<br></blockquote><blockquote type="cite">data at 12hourly and monthly increments in the same dimension. You will<br></blockquote><blockquote type="cite">probably need a full descriptor to get it right. What does the ncdump<br></blockquote><blockquote type="cite">output look like?<br></blockquote><blockquote type="cite">--Jennifer<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On May 20, 2014, at 1:32 PM, Stefano Materia wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Dear all,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am facing a very annoying problem which I am not able to get around.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have netcdf data for the month of January, in which four temperatures<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">are registered every day: at 8:00am, 11:00am, 2:00pm, 11:00pm.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Basically,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have 124 values per month (31*4) specified at those exact times of the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">day, and this is how I want to graph them.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;RefTime = &nbsp;1980-01-01 08:00:00 &nbsp;Units = days &nbsp;Calendar = standard<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> YYYY-MM-DD hh:mm:ss &nbsp;YYYY-MM-DD hh:mm:ss &nbsp;YYYY-MM-DD hh:mm:ss<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">YYYY-MM-DD<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">hh:mm:ss<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> 1980-01-01 08:00:00 &nbsp;1980-01-01 11:00:00 &nbsp;1980-01-01 14:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1980-01-01<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">23:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> 1980-01-02 08:00:00 &nbsp;1980-01-02 11:00:00 &nbsp;1980-01-02 14:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1980-01-02<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">23:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> 1980-01-03 08:00:00 &nbsp;1980-01-03 11:00:00 &nbsp;1980-01-03 14:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1980-01-03<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">23:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> 1980-01-04 08:00:00 &nbsp;1980-01-04 11:00:00 &nbsp;1980-01-04 14:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1980-01-04<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">23:00:00<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> ...<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">When I try to plot this in Grads though, the time axis becomes<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">disarranged: Grads splits the time steps every three hours<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; q file<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">File 1 :<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> Descriptor: tday_jan_daymean_1981-2010.nc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> Binary: tday_jan_daymean_1981-2010.nc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> Type = Gridded<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> Xsize = 464 &nbsp;Ysize = 201 &nbsp;Zsize = 1 &nbsp;Tsize = 124 &nbsp;Esize = 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> Number of Variables = 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;tn &nbsp;0 &nbsp;t,y,x &nbsp;temperature<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:8 1980:1:1:8<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 2<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:11 1980:1:1:11<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 3<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:14 1980:1:1:14<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 4<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:17 1980:1:1:17<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 5<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:20 1980:1:1:20<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; set t 6<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Time values set: 1980:1:1:20 1980:1:1:23<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This is not right, because I need my points to be centered at the time<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">temperature are registered. Attached, a snapshot of the wrong plot<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">coming<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">out (for simplicity, I plotted up to the 16th timestep, which should be<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Jan 4, but it's not).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I do not even find a way to specify this into the TDEF of a ctl file.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Is anyone able to help me?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks a lot!<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Stefano Materia, PhD<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Centro Euro-Mediterraneo sui Cambiamenti Climatici<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Viale Aldo Moro, 44 - 40127 Bologna<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Tel: +39 051 3782611<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Fax: +39 051 3782655<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">&lt;GradsPlot.png&gt;_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">gradsusr mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Jennifer M. Adams<br></blockquote><blockquote type="cite">Center for Ocean-Land-Atmosphere Studies (COLA)<br></blockquote><blockquote type="cite">111 Research Hall, Mail Stop 2B3<br></blockquote><blockquote type="cite">George Mason University<br></blockquote><blockquote type="cite">4400 University Drive<br></blockquote><blockquote type="cite">Fairfax, VA 22030<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">gradsusr mailing list<br></blockquote><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote><blockquote type="cite"><br></blockquote><br><br>-- <br>Stefano Materia, PhD<br>Centro Euro-Mediterraneo sui Cambiamenti Climatici<br>Viale Aldo Moro, 44 - 40127 Bologna<br>Tel: +39 051 3782611<br>Fax: +39 051 3782655<br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030&nbsp;<br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>