100.4 - tools.py update with a version that is working locally, it avoids creation of Inf valuesand has the correct number of bands
100.4 - tools.py update with a version that is working locally, it avoids creation of Inf valuesand has the correct number of bands