added generate_smr based on richard's nadc pynadc/scripts/sdmf_calibSDMF