[ncl-talk] ispan for floating steps

Carl Schreck cjschrec at ncsu.edu
Tue Oct 13 06:54:51 MDT 2015


This is a feature I'd wanted too, so I wrote a simple little function to do
it (attached). cspan (for Carl's span, because I couldn't think of anything
more descriptive).

   Carl

On Fri, Oct 9, 2015 at 9:58 AM, Dennis Shea <shea at ucar.edu> wrote:

> 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
> >
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>



-- 

<http://www.cicsnc.org/>
<http://www.researcherid.com/rid/B-8711-2011>
* Cyclone <http://www.cyclonecenter.org/>*Center.org
<http://www.cyclonecenter.org/>  *Carl J. Schreck III, PhD*
*Research Associate*
Cooperative Institute for Climate and Satellites NC (CICS-NC)
<http://www.cicsnc.org/> /
North Carolina Institute for Climate Studies (NCICS)
<http://www.cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA National Centers for Environmental Information (NCEI)
<http://ncei.noaa.gov/>
151 Patton Ave, Asheville, NC 28801
e: cjschrec at ncsu.edu
o: +1 828 257 3140
Publications
<http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
monitor.cicsnc.org/mjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151013/e5301f07/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cspan.ncl
Type: application/octet-stream
Size: 722 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151013/e5301f07/attachment.obj 


More information about the ncl-talk mailing list