code: def atmos_worker(srcs, window, ij, args):
      
      src = srcs[0]
      rgb = src.read(window=window)
      rgb = to_math_type(rgb)
  
      atmos = simple_atmo(rgb, args["atmo"], args["contrast"], args["bias"])
  
      # should be scaled 0 to 1, scale to outtype
      return scale_dtype(atmos, args["out_dtype"])
docs: A simple atmospheric correction user function.