[ncl-talk] ispan for floating steps

Dennis Shea shea at ucar.edu
Fri Oct 9 07:58:55 MDT 2015


Please see 'fspan'

xlow = 1e-7
xhi   = 4e-05
xinc = 1e-7
nn   = toint((xhi-xlow)/xinc)+1

x = fspan(xlow, xhi, nn)

====
*you* can create your own function

function myspan(xlow, xhi, xinc)

that will return  the values

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
>


More information about the ncl-talk mailing list