rasterio icon indicating copy to clipboard operation
rasterio copied to clipboard

usage of bands function in rio calc

Open perrygeo opened this issue 9 years ago • 0 comments

Noticed as I was going through test coverage, we never actually test the rio calc bands function. It's not in the docstring or the documentation. I can't get it to work directly:

$ rio calc "(bands 0)" tests/data/shade.tif /tmp/out.tif
...
AttributeError: 'list' object has no attribute 'shape'

So I'm unclear about the purpose of bands - is it just an internal function? Why is it exposed to the CLI? And how is it meant to be used versus take and read?

perrygeo avatar Jun 13 '16 12:06 perrygeo