pdl> p $a
[
[0 0 4 0 3]
[2 0 2 2 0]
[1 3 0 3 1]
[4 2 2 4 1]
]
pdl> p $lut
[
[ 0 0 0]
[ 0 0 20]
[ 0 0 40]
[ 0 0 60]
[ 0 0 80]
]
pdl> wpic $a, 'foo.tif', {LUT => $lut}
PDL::index: invalid index 255 (valid range 0..4) at
/usr/local/lib/perl5/site_perl/5.12.1/darwin-2level/PDL/ImageRGB.pm
line 147.
>From the wpic docs
pdl> help wpic
"..LUT This is a palette image and the value of this key should be a pdl
containg an RGB lookup table (3,x), e.g.
LUT => $lut,.."
I assuming the above means a [3, x] piddle where every row is a 3
element piddle with rgb values.
An associated question -- a n00b such as me comes across documentation
that is not clear... partly that is because I am n00b, and partly
because the documentation is not clear.
If I think up of a potentially better/clearer way to express what the
docs say, along with useful usage example, how should I help update
the docs?
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl