[ncl-talk] ispan for floating steps

Jared Lee jaredlee at ucar.edu
Fri Oct 9 07:54:39 MDT 2015


Hi Ahmad,

The ispan function requires integer start, end, and stride values.

http://ncl.ucar.edu/Document/Functions/Built-in/ispan.shtml

What you need to use is the fspan function, for making evenly-spaced arrays
of floating point values.

http://ncl.ucar.edu/Document/Functions/Built-in/fspan.shtml

Jared


On Fri, Oct 9, 2015 at 6:55 AM, Ahmad Farsyud <a.farsyud at gmail.com> wrote:

> Hallo,
>
> Is there any solution to execute the following command:
>
>
> *ncl 0> x= ispan (1e-7,4e-5,1e-7)*fatal:ispan: arguments must be of an
> integral type, can't continue
> fatal:["Execute.c":8573]:Execute: Error occurred at or near line 0
>
> Thanks
> Ahmad
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
===============================
Jared A. Lee, Ph.D.
Project Scientist I
Research Applications Laboratory
National Center for Atmospheric Research
Boulder, Colorado, USA

Email: jaredlee at ucar.edu (w)
Phone: 303.497.8485 (w)
Web: https://staff.ucar.edu/users/jaredlee
===============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151009/d2ed1c0e/attachment.html 


More information about the ncl-talk mailing list