avoid reading the first band array twice
Merge branch 'issue4' into develop
solve conflict