dump out all know IFO names and named search epochs.  These are \
defined in fu_utils module."\
                  )
parser.add_option("-a","--available-backgrounds",action="store_true",\
                  default=False,\
                  help="Specify this flag to query the default \
location of background pickles to see which are available on \
this system."             )
parser.add_option("-v","--verbose",action="store_true",\
                  default=False,\
                  help="Turns on verbose status updates to stdout."\
                  )
######################################################################
(opts, args) = parser.parse_args()
#Create a DQ querying object
dqService = followupDQV()
if opts.show_ifo_epoch:
    for myIfo in getKnownIfos():
        validEpochs = getKnownIfoEpochs(myIfo)
        sys.stdout.write("%s has valid epochs %s\n" % (myIfo, validEpochs))
    sys.exit(0)
if opts.available_backgrounds:
    sys.stdout.write("These are all possible combinations of ifo and \
epoch. Be Warned! Some combinations may be nonsense.\n")
    #Determine all background combinations
    allIfos = getKnownIfos()
    #Ifo singles
    sys.stdout.write("Singles\n")
    for j in allIfos:
        for myEpoch in getKnownIfoEpochs(j):
            mySegment = getRunTimesAsLIGOSegment(myEpoch, j)
estimateBackground = opts.estimate_background

#If ifo args seem wrong
if sum([len(x) != 2 for x in ifos]):
    sys.stderr.write(
        "The args passed to --ifo-list are incorrectly formatted! %s\n" %
        opts.ifo_list)
    sys.exit(1)

if len(opts.window.split(',')) == 1:
    frontWindow = backWindow = opts.window
if len(opts.window.split(',')) == 2:
    frontWindow, backWindow = opts.window.split(',')
    if len(backWindow) == 0:
        backWindow = frontWindow
x = followupDQV(server, blinded=opts.blind)
x.fetchInformationDualWindow(triggerTime,
                             frontWindow,
                             backWindow,
                             ifoList=ifos)
if estimateBackground:
    cancelBackgroundEstimation = False
    if backgroundLocation == "automatic":
        backgroundLocation = x.figure_out_pickle("automatic")
        x.resetPicklePointer(backgroundLocation)
        #Is automatically determined pickle present?
        if not os.path.isfile(x.getPicklePointer()):
            cancelBackgroundEstimation = True
    elif backgroundLocation != "":
        x.resetPicklePointer(backgroundLocation)
        #Check background file exists!
ifos=opts.ifo_list.upper().split(",")
backgroundLocation=str(opts.background_location).strip()
estimateBackground=opts.estimate_background

#If ifo args seem wrong
if sum([len(x) != 2 for x in ifos]):
    sys.stderr.write("The args passed to --ifo-list are incorrectly formatted! %s\n"%opts.ifo_list)
    sys.exit(1)
    
if len(opts.window.split(',')) == 1:
    frontWindow=backWindow=opts.window
if len(opts.window.split(',')) == 2:
    frontWindow,backWindow=opts.window.split(',')
    if len(backWindow) == 0:
        backWindow=frontWindow
x=followupDQV(server,blinded=opts.blind)
x.fetchInformationDualWindow(triggerTime,frontWindow,backWindow,ifoList=ifos)
if estimateBackground:
    cancelBackgroundEstimation=False
    if backgroundLocation == "automatic":
        backgroundLocation=x.figure_out_pickle("automatic")
        x.resetPicklePointer(backgroundLocation)
        #Is automatically determined pickle present?
        if not os.path.isfile(x.getPicklePointer()):
            cancelBackgroundEstimation=True
    elif backgroundLocation != "":
        x.resetPicklePointer(backgroundLocation)
        #Check background file exists!
        if not os.path.isfile(x.getPicklePointer()):
            cancelBackgroundEstimation=True
    if not cancelBackgroundEstimation:
dump out all know IFO names and named search epochs.  These are \
defined in fu_utils module."\
                  )
parser.add_option("-a","--available-backgrounds",action="store_true",\
                  default=False,\
                  help="Specify this flag to query the default \
location of background pickles to see which are available on \
this system.")
parser.add_option("-v","--verbose",action="store_true",\
                  default=False,\
                  help="Turns on verbose status updates to stdout."\
                  )
######################################################################
(opts,args) = parser.parse_args()
#Create a DQ querying object
dqService=followupDQV()
if opts.show_ifo_epoch:
    for myIfo in getKnownIfos():
        validEpochs=getKnownIfoEpochs(myIfo)
        sys.stdout.write("%s has valid epochs %s\n"%(myIfo,validEpochs))
    sys.exit(0)
if opts.available_backgrounds:
    sys.stdout.write("These are all possible combinations of ifo and \
epoch. Be Warned! Some combinations may be nonsense.\n")
    #Determine all background combinations
    allIfos=getKnownIfos()
    #Ifo singles
    sys.stdout.write("Singles\n")
    for j in allIfos:
        for myEpoch in getKnownIfoEpochs(j):
            mySegment=getRunTimesAsLIGOSegment(myEpoch,j)