working with multiple csv file.

From: sangeeta maharjan <sangeetamaharjan_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 06 2013 - 22:32:58 MDT

Dear NCL Users,
I was able to read a csv file containing hourly air remperature data
of a day using following code.



         field1 = (str_get_field(data(1:24),1,","))
         field2 = (str_get_field(data(1:24),2,","))
         field3 = stringtofloat(str_get_field(data(1:24),3,","))
         field4 = stringtofloat(str_get_field(data(1:24),4,","))
         field5 = stringtofloat(str_get_field(data(1:24),5,","))

         print ("Date="+field1+" time="+field2+" Min="+field3 +"
Max="+field4+" Avg="+field5)


But, I need to calculate the monthly average on air temperature for
which I have to read multiple csv files. I wrote couple of codes which
are as follows but it didn't work.

        files=systemfunc("ls "+dir+"Air*")

        f = addfiles (files, "r")

        ListSetType (f, "cat")


Can you please help me to work with multiple csv file ?. For your kind
reference, I have attached one of my csv file herewith.

Thanks & Regards,
Sangeeta Maharjan.

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Tue Aug 6 22:33:10 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 07 2013 - 13:59:00 MDT