ascii

From: cnl88 <cnl88_at_nyahnyahspammersnyahnyah>
Date: Sun Oct 09 2011 - 08:30:27 MDT

;************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "/usr/local/ncl/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
load "/usr/local/ncl/lib/ncarg/nclscripts/csm/contributed.ncl"
;************************************************
begin
I=12428
K=6
z= asciiread("./20110411.txt",(/12428,6/),"float")
  p = z(:,1) ;alt
  t = z(:,2);nox
 
  l = z(:,3) ; so2
velocity =z(:,4) ;o3
   time = z(:,0)

 CO = z(:,5)
 
   p = new ( (/I,K/), typeof(CO) )
    p(:,0) = z(:,0)
   p(:,1) = z(:,1)
   p(:,2) = z(:,2)
   p(:,3) = z(:,3)
p(:,4) = z(:,4)
p(:,5) = z(:,5)

  fmtx = "6f10.6"
  opt = True
  
 opt@fout = fon
  write_matrix (p,fmtx, opt)

end

I have two questions.One is the error!the other is that how can i read the data which include float and string! hope for your help!

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

____1.png
Received on Sun Oct 9 08:30:40 2011

This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT