gsn_csm_xy() timeseries plot....can not coerce?

From: A.J. Eiserloh <arthur.eiserloh_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 09 2013 - 10:54:42 MST

Hi, I am trying to make a timeseries plot with gsn_csm_xy() but I keep
getting the error:

fatal:Argument type mismatch on argument (1) of gsn_csm_xy can not coerce

I am not sure why? I thought you could do it if your time variable was a

Here is my code,

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"


 site =
(/"cco","ccy","crn","drn","ffm","klm","lcd","lgt","log","mck","mhl", \
 ns = dimsizes(site)

;do s=0,ns-1
 do s=0,0

 filename= "./"+site(s)+"/"+site(s)+".txt"
 lines = asciiread(filename,-1,"string")
 delim = ","
 yyjjj = tointeger(str_get_field(lines,1,delim))
 time = str_get_field(lines,2,delim)
 iwv = tofloat(str_get_field(lines,3,delim))

 jjj@units="days since 2011-12-31"


 date=NN+"/"+DD+" "+HH+":"+MM

 iwv@_FillValue = -9.99

  wks = gsn_open_wks("x11","cco_iwv")
  res = True


  plot = gsn_csm_xy(wks,date,iwv,res)


end do

Arthur J. Eiserloh, Jr.
San Jose State University
Graduate Student
Dept. of Meteorology and Climate Science

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Dec 9 10:54:54 2013

This archive was generated by hypermail 2.1.8 : Fri Dec 13 2013 - 11:39:30 MST