Hi all,
I have an ascii file in the form,
000031.795000031.795000031.795000031.795000031.795000031.795000031.795000031
.795000031.795000031.795000031.795000031.795000031.795000031.795000031.79500
0031.795000031.795000031.795000031.795000031.795000031.795000031.795000031.7
95000031.795000031.568000031.568000031.568000031.568000031.568000031.5680000
31.568000031.568000031.568000031.568000031.568000031.568000031.568000031.568
000031.568000031.568000031.568000031.568000031.568000031.568000031.568000031
.568000031.568000031.568000031.568000031.568000031.568000031.568000031.56800
0031.568000031.568000031.568000031.568000031.568000031.568000031.568000031.5
68000031.568000031.568000031.568000031.568000031.568000031.568000031.5680000
31.568000031.568000031.568000031.568000024.636000024.636000024.636000024.636
0000.............
Description of the file : This is a 2.5 degree Square latitude/longitude
grid, and is usually used for display purposes. The grid is 144 x 72
(longitude x latitude) and has a total of 10368 boxes. 0 degrees latitude, 0
degrees longitude is a box corner. Longitude varies first, and begins at
-180 degrees and proceeds eastward to +180 degrees. Latitude begins at -90
degrees and proceeds northward to +90 degrees. Data is written 80 characters
per record. Each record contains values for 8 grid boxes, each with a field
width of 10 characters. The precision is 3 decimal places.
So I have total 144X72=10368 numbers of values in the file.
I try to read the file using the examples from
http://www.ncl.ucar.edu/Document/Functions/Built-in/asciiread.shtml . But I
can read the first value correctly and in case of other values I did not get
the integer part and I got only decimal part.
Someone please tell me how will I read the file and convert the file in
netcdf format correctly.
Any help will be appreciated
Thanks
Debasish
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 14 2007 - 17:30:57 MDT
This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 09:15:24 MDT