Is it a mistake in "contributed.ncl"

From: louis Vonder <appopson_at_nyahnyahspammersnyahnyah>
Date: Mon, 10 Nov 2008 09:34:03 +0000 (GMT)

Dear all,I try to use the ncl function "wgt_runave_Wrap"  (as in MJO Clivar examples 3) and i got the following error:
fatal:Assignment type mismatch, right hand side can't be coerced to type of left hand side
fatal:Execute: Error occurred at or near line 3878 in file $HOME/NCL_Scripts/contributed.ncl
I went in the NCL function  "contributed.ncl" to check where the error come from. I looked into this block of the contributed.ncl script (starting at line 4924):; ******************************************************************
; Dennis Shea

; wrapper for NCL function wgt_runave

undef ("wgt_runave_Wrap")
function wgt_runave_Wrap( x:numeric, wgt[*]:numeric, kopt[1]:integer)
local wRunAve
begin
  wRunAve = x
  wRunAve = wgt_runave (x, wgt, kopt)  
  wRunAve_at_wgt_runave_op_ncl = "wgt_runave"

  return(wRunAve)
end

After commenting this line  " wRunAve = x" every thing work !So I want to know if my manipulation is ok?Thanks

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 10 2008 - 02:34:03 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 10 2008 - 10:18:09 MST