co2/01.test.read.ncl
changeset 1 4be95183fbcd
equal deleted inserted replaced
-1:000000000000 0:54955e2cbb42
       
     1 ;************************************************
       
     2 ;    Read ascii, Write nc                         
       
     3 ;************************************************
       
     4 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
       
     5 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
       
     6 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"   
       
     7 ;************************************************
       
     8 begin
       
     9 
       
    10   b = "zot005_45D2_seas.co2"                    
       
    11    ncol = 4
       
    12    data = readAsciiTable(b, ncol, "float", (/10,17/))
       
    13    print (data)
       
    14 
       
    15    ncol = 5
       
    16    data2 = readAsciiTable(b, ncol, "float", 16)
       
    17    print (data2)
       
    18   
       
    19 end