code: def _ircounts2radiance(counts, scale, offset):
          
          rad = (counts - offset) / scale
          return rad.clip(min=0)
docs: Convert IR counts to radiance
  
          Reference: [IR].
  
          Args:
              counts: Raw detector counts
              scale: Scale [mW-1 m2 cm sr]
              offset: Offset [1]
  
          Returns:
              Radiance [mW m-2 cm-1 sr-1]