[spatial.raster.typemap] simplified function
[spatial.raster.typemap] simplified function

this function was very messy with lots of errors being caught, which
caused weird errors in gdal.Band.ReadAsArray

johntruckenbrodt/pyroSAR,johntruckenbrodt/pyroSAR