docs: def convert2hdf5(platform_name):
      """Retrieve original RSR data and convert to internal hdf5 format"""
  
      import h5py
  
      ahi = AhiRSR(platform_name)
      filename = os.path.join(ahi.output_dir,
                              "rsr_ahi_{platform}.h5".format(platform=platform_name))
  
      with h5py.File(filename, "w") as h5f:
          h5f.attrs['description'] = 'Relative Spectral Responses for AHI'
          h5f.attrs['platform_name'] = platform_name
          h5f.attrs['sensor'] = 'ahi'
          h5f.attrs['band_names'] = AHI_BAND_NAMES.values()
  
          for chname in AHI_BAND_NAMES.values():
  
              grp = h5f.create_group(chname)
              wvl = ahi.rsr[chname][
                  'wavelength'][~np.isnan(ahi.rsr[chname]['wavelength'])]
              rsp = ahi.rsr[chname][
                  'response'][~np.isnan(ahi.rsr[chname]['wavelength'])]
              grp.attrs['central_wavelength'] = get_central_wave(wvl, rsp)
              arr = ahi.rsr[chname]['wavelength']
              dset = grp.create_dataset('wavelength', arr.shape, dtype='f')
              dset.attrs['unit'] = 'm'
              dset.attrs['scale'] = 1e-06
              dset[...] = arr
              arr = ahi.rsr[chname]['response']
              dset = grp.create_dataset('response', arr.shape, dtype='f')
              dset[...] = arr