EranOfek / MAAT

37 stars 13 forks source link

bug fix in FITS write #4

Closed vancky closed 5 years ago

vancky commented 5 years ago

It seems the DataType not supported by matlab. In matlab version 2017b, the fits.createImg support {'uint8','int16','int32','int64','single','double'}.

vancky commented 5 years ago

For the latest commit, users have to guarantee the data type in Sim and biasSim are the same. If for easy ways, it is better to force both Sim and biasSim into double. But i do not thinks this is a good way, users may only do the debias, but the data type has changed.