corrected indexing for multiple band gdal files