<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>
'reinit' <br>'sdfopen <a href="http://prueba.nc">prueba.nc</a>' <br>'set lat 41' <br>'set lon 359' <br>'set lev 1' <br>to = 1 <br>* Write the variable to a file <br>* 'set gxout vector' <br>
* 'set fwrite z: \ dummy.dat' <br>while (to <5) <br>'set t' to <br>tmp ='' <br>tmp = subwrd (rerult, 4) <br>'d u', tmp = tmp%''subwrd (result, 4) <br>rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', 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>