The code to save the file is working fine with sample data but when i am trying with hyperian (.hdr) data i am getting error  TypeError: load() got an unexpected keyword argument 'scale'