[ncl-talk] read_colormap_file suggestion

Alan Brammer abrammer at albany.edu
Wed Sep 16 12:49:37 MDT 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150916/af53fab6/attachment.html 


More information about the ncl-talk mailing list