How to Read .csv file?

From: Debasish PaiMazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Tue, 14 Mar 2006 12:51:21 -0900

Hi all,

I am now working on comma separated values i.e. .csv files. The file format
is given below,

 

1, 15.6, 12.7, 6.8, 11.6, 4.2, 6, 33.1, 31.5, 6.3, 13.8, 28.2, 20.5, 14.8,
15.7

2, 19.4, 25.3, 12.3, 10.9, 5.4, 6, 71.7, 52.6, 9.6, 18.5, 62.3, 74.6, 33.3,
30.7

3, 21.7, 36.2, 18.2, 14.1, 10.4, 11.1, 105.3, 64.7, 13.1, 20.2, 66.5, 52.9,
38.7, 36.1

4, 103.2, 78.8, 88.8, 112.4, 46.7, 42.8, 73.1, 110.1, 84.1, 161.5, 131.7,
172.3, 99.7, 100.5

5, 120.6, 211.7, 354.3, 212.4, 152.9, 221.6, 36.6, 31.5, 71.2, 229, 201.8,
263, 175.6, 175.4

.
.

.
.

.
.

.
.

3355,
.

 

The files contain the data within 15 columns. The first column is the
grid-box number, followed by the

12 monthly values of variables (January to December) as well as 2 further
columns. The latter contain

2 different approximations of the annual average of the variables.

 

I have to read this .cvs file in NCL and write each column in different
netcdf files (like January.nc,

February.nc, etc). Kindly help me to do this.

 

Thanks

Debasish

 

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 14 2006 - 14:51:21 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 29 2006 - 11:52:48 MST