diff -r 000000000000 -r 0c6405ab2ff4 co2/01.test.read.ncl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/co2/01.test.read.ncl Mon Jan 26 22:08:20 2009 -0500 @@ -0,0 +1,19 @@ +;************************************************ +; Read ascii, Write nc +;************************************************ +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" +;************************************************ +begin + + b = "zot005_45D2_seas.co2" + ncol = 4 + data = readAsciiTable(b, ncol, "float", (/10,17/)) + print (data) + + ncol = 5 + data2 = readAsciiTable(b, ncol, "float", 16) + print (data2) + +end