problem reading table

From: Mateus da Silva Teixeira <mtex2k3_at_nyahnyahspammersnyahnyah>
Date: Thu, 15 Mar 2007 13:37:53 -0300

Dear NCL users,

I'm trying to read a table in which there is a column with dates as
follow 19990801000000, but using both readAsciiTable and asciiread
functions I have the same values for entire column, 19990801547264.00

I tried to read it as float and double types, but result same values.

Am I missing something?

Please, see below the script and results:

The Data:
     83780 -23.62000 -46.65000 803 19990801000000 11.5 9.2
12.4 -999.9
     83780 -23.62000 -46.65000 803 19990801060000 11.2 9.0
-999.9 -999.9
     83780 -23.62000 -46.65000 803 19990801090000 11.8 8.8
-999.9 -999.9
     83780 -23.62000 -46.65000 803 19990801120000 12.7 9.7
-999.9 11.2
     83780 -23.62000 -46.65000 803 19990801150000 15.2 10.6
-999.9 -999.9
     83780 -23.62000 -46.65000 803 19990801180000 18.6 12.1
-999.9 -999.9
     83780 -23.62000 -46.65000 803 19990801210000 15.0 11.8
-999.9 -999.9
     83781 -23.50000 -46.61999 792 19990801000000 11.0 7.9
19.2 -999.9
     83781 -23.50000 -46.61999 792 19990801120000 12.4 9.1
10.0 -999.9

The Script:
    arqDados = "estacoes_08_09_1999.txt"
    ncols = numAsciiCol(arqDados)
    dados = readAsciiTable(arqDados,ncols,"float",1)
    dados@_FillValue = -999.9

    write_matrix(dados(0:10,0:4),"5F20.2",False)

The Result:
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83780.00 -23.62
-46.65 803.00 19990801547264.00
            83781.00 -23.50
-46.62 792.00 19990801547264.00
            83781.00 -23.50
-46.62 792.00 19990801547264.00
            83781.00 -23.50
-46.62 792.00 19990801547264.00
            83721.00 -23.00
-47.13 661.00 19990801547264.00

Thanks
Mateus

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 15 2007 - 10:37:53 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 16 2007 - 08:51:26 MDT