Hi, everyone:
I try to use ncl function "dim_standardize"
My ncl file is following:
______________________________________________
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/shea_util.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
tsin = fbindirread ("Nino34_Had.grd", 0 , (/1620/),"float")
; var_ts = stddev(tsin)
; avg_ts = avg(tsin)
; print(var_ts)
; print(avg_ts)
; ts=tsin/var_ts
ts = dim_standardize(tsin)
print(ts)
sdof = specx_anal(ts,0,17,0.1)
splt = specx_ci(sdof,0.1,0.95)
.......
______________________________
but it cann't work, the error message is following:
fatal:syntax error: function dim_standardize expects 2 arguments, got 1
fatal:Syntax Error in block, block not executed
By the way, I try to use the following method to standardize my data,
but there are a lots data whicj is larger than 1 after I standardize.
tsin = fbindirread ("Nino34_Had.grd", 0 , (/1620/),"float")
var_ts = stddev(tsin)
avg_ts = avg(tsin)
print(var_ts)
print(avg_ts)
ts=tsin/var_ts
Could anyone help me about this simple problem?
Thanks a lot!
Li Tao
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Sun Apr 17 2005 - 20:36:33 MDT