error using ftsetp to set parameters for ftcurv

From: Jonathan Vigh <vigh_at_nyahnyahspammersnyahnyah>
Date: Fri, 07 Aug 2009 18:58:53 +0000

Greetings all,
   I'm trying to use ftcurv to calculate an interpolatory polynomial.
I'm setting a few parameters beforehand using ftsetp:

        ftsetp("sig",5.) ; tension factor: values near zero give a
cubic spline, large values (e.g.50) result in a near-polynomial line
        ftsetp("sl1",1.) ; specify the slope of the curve at the
first point
        ftsetp("sln",-1.) ; specify the slope of the curve at the last
point
        ftsetp("sf1",0) ; the value of sf1 controls whether to use
the values for sl1 and sln, or compute those values internally.
Specifically, sf1
; = 0 if sl1 and sln are user-specified.
; = 1 if sl1 is user-specified, but sln is internally calculated.
; = 2 if sln is user-specified, but sl1 is internally calculated.
; = 3 if sl1 and sln are internally calculated - By default the
slopes at the end points are computed internally.

        interpolated_curve = ftcurv(xi,fi,xo) ; xi, fi, and xo have
been defined in my script

But when I run the script, I get an error:
> fatal:ftsetp: unrecognized parameter name

The error points to the line:
        ftsetp("sln",-1.) ; specify the slope of the curve at the last
point

I think the parameter name "sln" is valid - according to this page:
http://www.ncarg.ucar.edu//ngmath/fitgrid/parameters.html

so I'm not sure what is going on. Does anyone have any ideas?

Thanks,
    Jonathan

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 07 2009 - 12:58:53 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 10 2009 - 07:47:38 MDT