[ncl-talk] read_colormap_file suggestion

Rick Brownrigg brownrig at ucar.edu
Wed Sep 16 13:09:21 MDT 2015


Hi Alan,

That's a good suggestion, and I'll make sure it gets into 6.3.1.

FWIW, I don't know of any formal spec for these file; the current version
of read_colormap_file() was written to accommodate all the variations we
had at the time.

Thanks for the suggestion!
Rick


On Wed, Sep 16, 2015 at 12:49 PM, Alan Brammer <abrammer at albany.edu> wrote:

> line 199 $NCARG_ROOT/lib/ncarg/nclscripts/utilities.ncl  (v6.3.0)
>
>     tokens = str_split(lines(i), " ")
>
> This only allows for space separated rgb files.  I can't find any true
> specifications on rgb file format but I have csv rgb files that work with
> the other NCL functions but not read_colormap_file().
>
> If the above line is edited to the below it allows both space and
> comma delimiters.
>
>     tokens = str_split(lines(i), " ,")
>
> Side note, there's no documentation that str_split accepts multiple
> delimiters.
>
> Thanks,
> Alan.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150916/d5c87e57/attachment-0001.html 


More information about the ncl-talk mailing list