Python Get Dimension Of Numpy Array To Raster