<div id="result_box" dir="ltr">Hello everyone, <br>  <br>I have a netcdf file from which I can obtain any of the variables with the following script (for example to get u wind component): <br>  <br>* takes the values of the component or in a column <br>
&#39;reinit&#39; <br>&#39;sdfopen <a href="http://prueba.nc">prueba.nc</a>&#39; <br>&#39;set lat 41&#39; <br>&#39;set lon 359&#39; <br>&#39;set lev 1&#39; <br>to = 1 <br>* Write the variable to a file <br>* &#39;set gxout vector&#39; <br>
* &#39;set fwrite z: \ dummy.dat&#39; <br>while (to &lt;5) <br>&#39;set t&#39; to <br>tmp =&#39;&#39; <br>tmp = subwrd (rerult, 4) <br>&#39;d u&#39;, tmp = tmp%&#39;&#39;subwrd (result, 4) <br>rrc = write ( &#39;c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt&#39;, tmp) <br>
to = to + 1 <br>endwhile <br><br>but my question is, can I get the date which belongs each variable value? That is, if I have values for the velocity component u: 2.3, 3.4, 5.6, 3.9, can I get a. txt what next? <br>  <br>
Date                         U (m / s) <br>2009/12/06 00:00          2.3 <br>2009/12/06 06:00          3.4 <br>2009/12/06 18:00          5.6 <br>2009/12/07 00:00          3.9</div>
<div><br clear="all">Thank you very much. Best regards.</div>
<div><br>Javier Peņa</div>