Reports until 14:38, Wednesday 07 February 2024
H1 CAL
dana.jones@LIGO.ORG - posted 14:38, Wednesday 07 February 2024 - last comment - 14:49, Wednesday 07 February 2024(75759)
Script to get sensing function measurement gps times

Dana, Louis

Attached are two scripts that can be used to inquire when a sensing function measurement corresponding to a given report visibly appears in each of the five channels listed at the bottom of this post. The script get_measurement_gps_times.py takes as input the report ID and the channel you are interested in, and it outputs an ndscope command that shows plots for all five channels, including the channel that was requested, for the time span corresponding to the desired measurement. If you would rather look at the data for all reports in one place, this can be found at /ligo/home/dana.jones/Documents/sensing_func_meas_times/measurement_gps_times.csv (I could not attach the file here unfortunately). The channel names are shortened within the csv file for simplicity, and the lower and upper bounds for each channel represent the total time span over which the measurement appears to last.

The report IDs that have already been included in the script stop at October 27th. If you would like to add additional report IDs not already in line 13 of get_measurement_gps_times.py, you must first regenerate the measurement_gps_times.csv file, whose data the py script relies on. To do so, add the desired report IDs to line 93 in output_measurement_gps_times.py (and in line 13 of get_measurement_gps_times.py) and then run the script in a terminal. Note: pydarm is required to run this script. If using a Hanford control room machine you can simply run:

source /ligo/groups/cal/local/bin/activate

python output_measurement_gps_times.py

The output file measurement_gps_times.csv should be generated. Once you have done this, or if you do not wish to add any additional report IDs, simply copy the already generated csv file that can be found at /ligo/home/dana.jones/Documents/sensing_func_meas_times/measurement_gps_times.csv into your home directory and run the script get_measurement_gps_times.py followed by two arguments: the desired report ID and the channel you wish to target (as a number 1 - 5). Here is an example command:

python get_measurement_gps_times.py 20230913T183650Z 2

This should return something like the following:

###################################################################### 
Report ID = 20230913T183650Z, channel name = H1:SUS-ETMX_L2_CAL_EXCMON
Measurement start time = 1378665360 s, end time = 1378666740 s
###################################################################### 
ndscope H1:SUS-ETMX_L3_CAL_EXCMON , H1:CAL-PCALY_SWEPT_SINE_EXCMON . H1:SUS-ETMX_L2_CAL_EXCMON , H1:LSC-DARM1_EXCMON . H1:SUS-ETMX_L1_CAL_EXCMON -t 1378665360 -t 1378666740 --trend min

The line that starts with "ndscope" can be pasted into a terminal window and, when executed from a Hanford control room machine, will pull up an ndscope window showing the desired measurement during the requested time frame for all five channels. Note: the channel numbers correspond to the following channels (also listed inside get_measurement_gps_times.py):

1 - H1:SUS-ETMX_L3_CAL_EXCMON
2 - H1:SUS-ETMX_L2_CAL_EXCMON
3 - H1:SUS-ETMX_L1_CAL_EXCMON
4 - H1:CAL-PCALY_SWEPT_SINE_EXCMON
5 - H1:LSC-DARM1_EXCMON
 
Non-image files attached to this report
Comments related to this report
dana.jones@LIGO.ORG - 14:49, Wednesday 07 February 2024 (75765)

Here is the .csv file changed to a .txt extension so I could attach it. Change back to .csv before using.

Non-image files attached to this comment