co2/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
forrest@0
     1
;************************************************
forrest@0
     2
;    Read ascii, Write nc                         
forrest@0
     3
;************************************************
forrest@0
     4
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
forrest@0
     5
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
forrest@0
     6
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"   
forrest@0
     7
;************************************************
forrest@0
     8
begin
forrest@0
     9
forrest@0
    10
  b = "zot005_45D2_seas.co2"                    
forrest@0
    11
   ncol = 4
forrest@0
    12
   data = readAsciiTable(b, ncol, "float", (/10,17/))
forrest@0
    13
   print (data)
forrest@0
    14
forrest@0
    15
   ncol = 5
forrest@0
    16
   data2 = readAsciiTable(b, ncol, "float", 16)
forrest@0
    17
   print (data2)
forrest@0
    18
  
forrest@0
    19
end