code: def log_datafind_command(observatory, frameType, startTime, endTime,
                           outputDir, **dfKwargs):
      
      # FIXME: This does not accurately reproduce the call as assuming the
      # kwargs will be the same is wrong, so some things need to be converted
      # "properly" to the command line equivalent.
      gw_command = ['gw_data_find', '--observatory', observatory,
                    '--type', frameType,
                    '--gps-start-time', str(startTime),
                    '--gps-end-time', str(endTime)]
  
      for name, value in dfKwargs.items():
          if name == 'match':
              gw_command.append("--match")
              gw_command.append(str(value))
          elif name == 'urltype':
              gw_command.append("--url-type")
              gw_command.append(str(value))
          elif name == 'on_gaps':
              pass
          else:
              errMsg = "Unknown datafind kwarg given: %s. " %(name)
              errMsg+= "This argument is stripped in the logged .sh command."
              logging.warn(errMsg)
  
      fileName = "%s-%s-%d-%d.sh" \
                 %(observatory, frameType, startTime, endTime-startTime)
      filePath = os.path.join(outputDir, fileName)
      fP = open(filePath, 'w')
      fP.write(' '.join(gw_command))
      fP.close()
docs: This command will print an equivalent gw_data_find command to disk that
      can be used to debug why the internal datafind module is not working.