docs: def get_bandname_from_wavelength(sensor, wavelength, rsr, epsilon=0.1, multiple_bands=False):
      """Get the bandname from h5 rsr provided the approximate wavelength."""
      # channel_list = [channel for channel in rsr.rsr if abs(
      # rsr.rsr[channel]['det-1']['central_wavelength'] - wavelength) < epsilon]
  
      chdist_min = 2.0
      chfound = []
      for channel in rsr:
          chdist = abs(
              rsr[channel]['det-1']['central_wavelength'] - wavelength)
          if chdist < chdist_min and chdist < epsilon:
              chfound.append(BANDNAMES.get(sensor, BANDNAMES['generic']).get(channel, channel))
  
      if len(chfound) == 1:
          return chfound[0]
      elif len(chfound) > 1:
          bstrlist = ['band={}'.format(b) for b in chfound]
          if not multiple_bands:
              raise AttributeError("More than one band found with that wavelength! {}".format(str(bstrlist)))
          else:
              LOG.debug("More than one band found with requested wavelength: %s", str(bstrlist))
          return chfound
      else:
          return None