
import os, sys
import glob
import numpy as np

from astropy.time import Time

gpstime = 1228973085.39
skymap = "../data/G323239/bayestar.fits" 
cls = [0.9]

for cl in cls:
    outputDir = "../output/G323239/%.3f_ZTF"%cl
    system_command = "python gwemopt_run --telescope ZTF --doSchedule --doSkymap --doPlots --skymap %s --gpstime %d -o %s --doTiles --doSingleExposure --filters g --exposuretimes 30.0 --powerlaw_cl %.3f"%(skymap,gpstime,outputDir,cl)
    print(system_command)
    print(stop)

    system_command = "python gwemopt_run --telescope GWAC --doSchedule --doSkymap --doPlots --skymap %s --gpstime %d -o %s --doTiles --doSingleExposure --filters g --exposuretimes 30.0 --powerlaw_cl %.3f"%(skymap,gpstime,outputDir,cl)
    #system_command = "python gwemopt_run --telescope Gattini --doSchedule --doSkymap --doPlots --skymap %s --gpstime %d -o %s --doTiles --doSingleExposure --filters g --exposuretimes 30.0 --powerlaw_cl %.3f"%(skymap,gpstime,outputDir,cl)
    #system_command = "python gwemopt_run --telescope DECam --doSchedule --doSkymap --doPlots --skymap %s --gpstime %d -o %s --doTiles --doSingleExposure --filters g --exposuretimes 30.0 --powerlaw_cl %.3f"%(skymap,gpstime,outputDir,cl)
    print(system_command)
    #os.system(system_command)

