Hi Ferreters I'm trying to read an ascii file (tyty.dat) containing temperature and time, and to define a time axis from the variable read. tyty.dat : 16.4306 10/08/2009 05:22:59 16.5106 10/08/2009 05:23:59 16.4976 10/08/2009 05:24:59 16.3889 10/08/2009 05:25:59 16.3681 10/08/2009 05:26:59 ... ! Read file File /Var="TEMP,julday,hhmmss" /Form=Delim /Delim="\b" /Type="NU,EURODATE,TI" tyty.dat ! Define a time axis from variables julday and hhmmss Let day_frac = hhmmss/24 Let tstep = julday + day_frac Define Axis /T /T0=01-JAN-1900 /Unit=days t_axis_02 = tstep *** NOTE: Axis has repeated values -- micro-adjusting ... List TEMP[GT=t_axis_02@ASN] 10-AUG-2009 05:20:39 / 1: 16.43 10-AUG-2009 05:26:15 / 2: 16.51 10-AUG-2009 05:26:15 / 3: 16.50 10-AUG-2009 05:26:15 / 4: 16.39 10-AUG-2009 05:26:16 / 5: 16.37 ... The problem is that the precision is not enough to calculate the julian day properly. Is there a trick to do this right ? Thank you for your suggestions. Bruno Levier Bruno LEVIER /MERCATOR Ocean/ Parc Technologique du Canal 8-10 rue Hermes 31520 Ramonville Saint Agne FRANCE Tel: +33 5 61 39 38 51 Fax: +33 5 61 39 38 99 http://www.mercator-ocean.fr _____________________________________________________________________ Découvrez le nouveau site web de Mercator Océan : www.mercator-ocean.fr Welcome on the new Mercator Ocean website: www.mercator-ocean.fr |