<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
Hi all,</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
I'm currently developing charts using ecmwf free data but I'm having an issue with the time steps. The first image is fine but the rest of the time steps use the same data as the first one. The charts are not running in sequence. Can anybody advise where my
issues are. I've attached parts of my control file and script to assist. </p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
</p>
<div>
<div>dset ^ecmwf_grib.grib2</div>
<div>index ^ecmwf_grib.grib2.idx</div>
<div>undef 9.999E+20</div>
<div>title ecmwf_grib.grib2</div>
<div>* produced by g2ctl v0.0.8.8</div>
<div>* command line options: -verf ecmwf_grib.grib2</div>
<div>* griddef=1:0:(720 x 361):grid_template=0:winds(N/S): lat-lon grid:(720 x 361) units 1e-06 input WE:NS output WE:SN res 48 lat 90.000000 to -90.000000 by 0.500000 lon 0.000000 to 359.500000 by 0.500000 #points=259920:winds(N/S)</div>
<div><br>
</div>
<div>dtype grib2</div>
<div>ydef 361 linear -90.000000 0.5</div>
<div>xdef 720 linear 0.000000 0.500000</div>
<div>tdef 11 linear 00Z25mar2016 1dy</div>
<div>zdef 1 linear 1 1</div>
<div>vars 2</div>
<div>HGT500mb 0,100,50000 0,3,5 ** 500 mb Geopotential Height [gpm]</div>
<div>PRESmsl 0,101 0,3,0 ** mean sea level Pressure [Pa]</div>
<div>ENDVARS</div>
<div><br>
</div>
</div>
<div></div>
<div><br>
</div>
----------------------------------------------------------------------------------------------------------------------------------------------------------------
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;">
</p>
<div>'reinit'</div>
<div>'open gfs_grib.ctl'</div>
<div><br>
</div>
<div>* Get info from the descriptor file</div>
<div>'q ctlinfo'</div>
<div>_ctl = result</div>
<div>_undef = getctl(undef)</div>
<div>_tdef = getctl(tdef)</div>
<div>_zdef = getctl(zdef)</div>
<div><br>
</div>
<div>maps = 25</div>
<div><br>
</div>
<div>* Get the Time axis info</div>
<div>tsize = subwrd(_tdef,2) </div>
<div>_t1 = 1 ;* 2nd half of timeseries</div>
<div>_t2 = 45</div>
<div>tsize = _t2 - _t1 + 1</div>
<div>'set t '_t1' '_t2</div>
<div>'q dims'</div>
<div>times = sublin(result,5)</div>
<div>_time1 = subwrd(times,6) </div>
<div>_time2 = subwrd(times,8)</div>
<div>_tdim = _time1' '_time2</div>
<div><br>
</div>
<div>tincr = subwrd(_tdef,5)</div>
<div>_tdef = 'tdef 'tsize' linear '_time1' 'tincr</div>
<div><br>
</div>
<div>huh = subwrd(_tdef,4)</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Stuart.</div>
<p></p>
<br>
<p></p>
</div>
</body>
</html>