soil_carbon/01.test.read.ncl
author Forrest Hoffman <forrest@climatemodeling.org>
Mon, 26 Jan 2009 22:08:20 -0500
changeset 0 0c6405ab2ff4
permissions -rw-r--r--
Initial commit of C-LAMP Diagnostics from Jeff Lee
     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