Removed a .copy() from prep_envi_hdr function. It was a boolean evaluation and was in error to have it there.
Merge branch 'master' of https://github.com/sixy6e/my_code