<div dir="ltr">Dear Users,<br>I have a dataset 

(.DAT format with a .ctl file). I would like to write it in netcdf format. My dataset have multiple variables with various level. Following are the details in my .ctl file:<br><br>xdef  100 linear 55   0.2<br>ydef  200 linear 60   0.2<br>zdef   11 levels 1000 925 900 850 700 500 300 200 150 100 50<br>tdef  120 linear 00Z15May2012     1hr<br>VARS   5<br>U             11 0  x-wind component (m s-1)<br>V             11 0  y-wind component (m s-1)<br>W             11  0  z-wind component (m s-1)<br>Q2             1  0  QV at 2 M (kg kg-1)<br>T2             1  0  TEMP at 2 M (K)<div><br></div><div>My grads script to write my data in netcdf format is:<br><br>'open data.ctl'<br>'set time 00z15May2012 23z20May2012'<br>'set gxout fwrite'<br>'define newvars=vars'<br>'set sdfwrite <a href="http://data.nc">data.nc</a>'<br>'sdfwrite newvars<br>'quit'</div><div><br></div><div>This script is not working.</div><div>Any help please??</div><div><br></div><div>Thank you in advance.<br>Kind Regards,<br>Mano</div></div>