I wrote the scripts for cdsutils.
1. fft
usage: fft.py [-h] [-c N_CYCL] [-a N_AVG] freq channel [channel ...]
Measures the frequency content of one or more NDS channels at the specified frequecy.
The measurement results are magnitude, phase, real part imaginary part, and the standard deviation of the real and imaginary parts.
positional arguments:
freq measurement frequency
channel list of measurement channel
optional arguments:
-h, --help show this help message and exit
-c N_CYCL define number of cycles. Default is 10
-a N_AVG define number of average. Default is 100
2. tf
usage: tf.py [-h] [-c N_CYCL] [-a N_AVG] [--dB] freq input output
Measures the transfer funtion of one NDS channels pair at the specified frequecy.
The measurement results are the coherence, magnitude, phase, real part, imaginary part, and the standard deviation of the real and imaginary parts.
positional arguments:
freq measurement frequency
input list of measurement input channel
output list of measurement output channel
optional arguments:
-h, --help show this help message and exit
-c N_CYCL define number of cycles. Default is 10
-a N_AVG define number of average. Default is 100
--dB print the amplitude in dB
3.offsets
usage: offset.py [-h] [-t SECONDS] filterbank [filterbank ...]
Zero the offset of one or more filterbank. Take average of OUT16 channel, and put (-1 * average / gain) into offset. After change offsets, it will turn on the offset.
example usage) offset -d 25 C1:LSC-AS55_Q C1:LSC-AS55_I
positional arguments:
filterbank list of filterbank to zero offset
optional arguments:
-h, --help show this help message and exit
-t SECONDS define the averaging time. default value is 10
I put these scripts in /opt/rtcds/cdsutils/trunk/lib/cdsutils.
I couldn't put them into cds library, but I will left tomorrow to Japan...
So please help me Jamie or Joe !!
By the way,
I modified the LSCoffset script (script)/LSC/LSCoffsets.py.
usage: LSCoffsets.py [-h] [-d SECONDS] [--PDlist]
Zero the offsets of LSC PDs. During taking average, we will close the PSL and green shutter. After zeroing, it will turn on the offsets switch.
example usgae) LSCoffset2.py -d 20
optional arguments:
-h, --help show this help message and exit
-d SECONDS define the averaging time. default value is 10
--PDlist print PD list for LSC and exit
i made new directory 'offset_backup' for old offset script. I move all old offset script into there.
But unfortunately that cannot use right now, because cds offsets script is not available yet... |