python demod_ratio_timeseries.py --ifo$(IFO)1 --gps-end-time$(PLOT_END)--gps-start-time$(PLOT_START)--denominator-frame-cache$(IFO)1_hoft_DCS_frames.cache --numerator-frame-cache$(IFO)1_hoft_DCS_frames.cache --denominator-channel-name'DCS-CALIB_STRAIN'--numerator-channel-name'DCS-CALIB_STRAIN_CLEAN'--frequencies'35.9,36.7,331.9,1083.7;60,120,180'--magnitude-ranges'0.0,0.1;0.0,1.0'--phase-ranges'-180.0,180.0;-180.0,180.0'--plot-titles'$(IFO)1 Calibration Line Subtraction;$(IFO)1 Power Mains Line Subtraction'
parser.add_option("--config-file",metavar="name",help="Configurations file used to produce GDS/DCS calibrated frames, needed to get pcal line frequencies and correction factors")
parser.add_option("--pcal-channel-name",metavar="name",default="CAL-PCALY_TX_PD_OUT_DQ",help="Name of the pcal channel you wish to use")
parser.add_option("--calibrated-channel-list",metavar="list",default=None,help="Comma-separated list of calibrated channels to compare to pcal")
parser.add_option("--calcs-channel-list",metavar="list",default=None,help="Comma-separated list of calibrated channels in the raw frames to compare to pcal")
parser.add_option("--calibrated-channel-list",metavar="list",type=str,default=None,help="Comma-separated list of calibrated channels to compare to pcal")
parser.add_option("--calcs-channel-list",metavar="list",type=str,default=None,help="Comma-separated list of calibrated channels in the raw frames to compare to pcal")
parser.add_option("--magnitude-ranges",metavar="list",type=str,default="0.97,1.03;0.95,1.05;0.8,1.2",help="Ranges for magnitude plots. Semicolons separate ranges for different plots, and commas separate min and max values.")
parser.add_option("--phase-ranges",metavar="list",type=str,default="-1.0,1.0;-3.0,3.0;-10.0,10.0",help="Ranges for phase plots, in degrees. Semicolons separate ranges for different plots, and commas separate min and max values.")
raiseValueError("Cannot find filters file %s in home directory %s or in /ligo/svncommon/CalSVN/aligocalibration/trunk/Runs/*/GDSFilters",(filters_name,os.environ['HOME']))
print"\nLoading calibration filters from %s\n"%filters_paths[0]
print"Loading calibration filters from %s\n"%filters_paths[0]
raiseValueError("Number of magnitude ranges given is not equal to number of pcal line frequencies (%d != %d)."%(len(options.magnitude_ranges.split(';')),len(frequencies)))
raiseValueError("Number of phase ranges given is not equal to number of pcal line frequencies (%d != %d)."%(len(options.phase_ranges.split(';')),len(frequencies)))