code: def generate_kcorrection_listing_database(
          log,
          restFrameFilter,
          pathToOutputDirectory,
          pathToSpectralDatabase,
          temporalResolution=4.0,
          redshiftResolution=0.1,
          redshiftLower=0.0,
          redshiftUpper=1.0):
      
      ################ > IMPORTS ################
  
      ## STANDARD LIB ##
      import re
      import os
      import shutil
      ## THIRD PARTY ##
      import pysynphot as syn
      import yaml
      ## LOCAL APPLICATION ##
  
      mul = 10000
      div = 10000.
  
      fileName = pathToOutputDirectory + "/transient_light_curves.yaml"
      stream = file(fileName, 'r')
      generatedLCs = yaml.load(stream)
  
      # REMOVE OLD DATABASE
      try:
          shutil.rmtree(pathToOutputDirectory + "/k_corrections")
      except:
          pass
  
      models = generatedLCs.keys()
      for model in models:
  
          for redshift in range(int(redshiftLower * mul), int(redshiftUpper * mul), int(redshiftResolution * mul)):
              redshift = redshift / div
  
              generate_single_kcorrection_listing(
                  log,
                  pathToOutputDirectory=pathToOutputDirectory,
                  pathToSpectralDatabase=pathToSpectralDatabase,
                  model=model,
                  redshift=redshift,
                  restFrameFilter=restFrameFilter,
                  temporalResolution=temporalResolution)
      return
docs: *Generate the Kg* k-corrections for a range of redshifts given a list of spectra*
  
      **Key Arguments:**
          - ``log`` -- logger
          - ``restFrameFilter`` -- the filter to generate the K-corrections against
          - ``pathToOutputDirectory`` -- path to the output directory (provided by the user)
          - ``pathToSpectralDatabase`` -- path to the directory containing the spectral database
          - ``temporalResolution`` -- temporal resolution at which to calculate the k-correcions
          - ``redshiftResolution`` -- resolution of the k-correction database (at what redshift points do you want the k-corrections calculated)
          - ``redshiftLower`` -- lower redshift in range of k-corrections to be calculated
          - ``redshiftUpper`` -- upper redshift in range of k-corrections to be calculated
  
      **Return:**
          - None