docs: def get_scene_splits(nlines_swath, nlines_scan, n_cpus):
      """Calculate the line numbers where the swath will be split in smaller
      granules for parallel processing"""
  
      nscans = nlines_swath // nlines_scan
      if nscans < n_cpus:
          nscans_subscene = 1
      else:
          nscans_subscene = nscans // n_cpus
      nlines_subscene = nscans_subscene * nlines_scan
  
      return range(nlines_subscene, nlines_swath, nlines_subscene)