= LIGO SummaryPage = * Access from CDS network * https://gwdet.icrr.u-tokyo.ac.jp/~controls/summary/today/ * http://k1sum0/~controls/summary/today * [[KAGRA/Subgroups/PEM/SummaryPage/RemoteAccess|Access from Remote site]] == How to update == === How to test your updated ini files. === * Login to k1sum0. * Check on the test directory or your personal directory that your ini file is working well or not before applying your update. {{{ k1sum0> cd /home/controls/public_html/test-summary ### Edit configuration file }}} * [[http://gwwiki.icrr.u-tokyo.ac.jp/JGWwiki/KAGRA/Subgroups/PEM/SummaryPage/How_to_write_configuration_file|Minimum manual to edit ini file]] * Activate conda environment {{{ k1sum0> conda activate ligo-summary-3.7 (ligo-summary-3.7) k1sum0> }}} * Set the name of configuration file to run_test.sh script {{{ ### Modify the following line of run_test.sh INIFILE='k1global.ini,your_ini_file.ini' }}} * Execute the script {{{ (ligo-summary-3.7) k1sum0> ./run_test.sh }}} * When your ini file is working well, you can see the message "All done. Thank you." on the console, and see the result on [[http://k1sum0/~controls/test-summary/summary1/]] === How to add a new ini file or apply your update. === * Check your ini file is working well! * Before you upload ini file, please contact to DetChar group. * Put your ini file in `${HOME}/etc/summary/configurations/k1/` {{{ k1sum0> cd /home/controls/public_html/test-summary k1sum0> cp -i k1foo.ini /home/controls/etc/summary/configurations/k1/ }}} === How to include Omicron trigger === * [[http://gwwiki.icrr.u-tokyo.ac.jp/JGWwiki/KAGRA/Subgroups/DET/Omicron|Omicron]] is running on {{{k1sum1}}} by crontab regularly. * Edit the configuration for Omicron on {{{k1sum1:/users/DET/tools/Omicron/Parameter/}}}. * As a example to include Omicron trigger for summary page, see the ini file of {{{k1detchar.ini}}} * Note that example of channel name in ini-file is `K1:CAL_CS_PROC_IMC_FREQUENCY_DQ`. But, actual channel name recorded in frame file is `K1:CAL-CS_PROC_IMC_FREQUENCY_DQ`. * This is LIGO's conventional way * Yuzurihara modified the gwsumm code on {{{k1sum0}}} to replace ligoDV and Pastavi, because ligoDV is not working for KAGRA data of full frame. {{{ --- /home/controls/bin/miniconda2/envs/ligo-summary-3.7/lib/python3.7/site-packages/gwsumm/html/html5.py_bak 2021-06-19 04:55:43.850636519 +0900 +++ /home/controls/bin/miniconda2/envs/ligo-summary-3.7/lib/python3.7/site-packages/gwsumm/html/html5.py 2021-06-19 07:11:10.715461960 +0900 @@ -152,23 +152,22 @@ def comments_box(name, identifier=None, def ldvw_qscan(channel, time, fmin=10, fmax='inf', qmin=4, qmax=100): - """Generate a Q-scan through LIGO DataViewer Web (LDVW) + """Generate a Q-scan through Pastavi """ channel = str(channel) if isinstance(time, (tuple, list)): label = 'Launch omega scans' title = 'Batch-process omega scans of the loudest triggers via LDVW' times = '&'.join('wdq_gps=' + str(t) for t in time) - query = ('Wdq?submitAct=go&wdq_ifo=%s&wdq_cmap=viridis&%s&' - 'wdq_prog=py-Omega&goBtn=goBtn') % (channel[:2], times) + query = ('?channel=%s') % (channel[:2]) else: - label = 'Q-scan' - title = 'Q-scan {0} at {1} via LDVW'.format(channel, time) - query = ('view?act=doplot&chanName={0}&doQxfrm=yes&strtTime={1}&' - '&qxfrm_pltfrq={2} {3}&qxfrm_srchqrng={4} {5}&' - 'qxfrm_plttimes=0.5 2 8').format( - channel, time, fmin, fmax, qmin, qmax) - uri = 'https://ldvw.ligo.caltech.edu/ldvw/{0}'.format(query) + label = 'Pastavi' + title = 'Q-Transform {0} at {1} via Pastavi'.format(channel, time) + gps_beg=(str)(int(float(time)-5)) + gps_end=(str)(int(float(time)+5)) + query = ('?channel={0}&gps_beg={1}&gps_end={2}&TimeSeries=checked&Spectrogram=checked&' + 'WhitenedSpectrogram=checked&Q-Transform=checked&fftlength_Spectrogram=0.05').format(channel, gps_beg, gps_end) + uri = 'http://172.16.34.76/past_data_viewer/index_sngl_channel.html{0}'.format(query) return markup.oneliner.a( label, href=uri, target='_blank', rel='external', class_='btn btn-outline-secondary btn-sm', title=title) }}} == Q&A == *'''All pages are not updated in automatically.''' * Please contact TY. *'''A part of the tabs are not updated in automatically.''' * Please fix your ini files. * The error {{{gw_summary: error: unrecognized arguments: k1vis-guardian.ini,/home/controls/etc/summary/configurations/defaults.ini}}} occurred in the test. * In `run_test.sh`, there is unexpected space between the ini files, such as {{{INIFILE='k1global.ini,k1vis.ini, k1vis-guardian.ini'}}} * Ther error {{{ValueError: no Fr{Adc,Proc,Sim}Data structures with the name K1:VIS-ETMX_MN_DAMP_L_IN1_DQ}}}. * The channel is included in full frame and minutes trend frame, but ./run.sh fail. * The channel needs to be included in science frame in default. If you didn't specify the '''frametype''', gwsumm will read the science frame in default. * In other words, when you want to read science frame, you don't need to write '''frametype'''. * Note that * frametype = K1_C will read the full frame * frametype = K1_R will read the science frame * frametype = K1_M will read the minutes trend frame * frametype = K1_T will read the second frame * Can I use the '''and''' in the definition of state? * The answer is in '''l1lsc.ini''' {{{ [state-Arms] name = Arms locked key = Arms definition = %(IFO)s:DMT-XARM_LOCK:1&%(IFO)s:DMT-YARM_LOCK:1 }}} * But, this doesn't work.(2021/06/10 yuzurihara) * How can I set the limitation on color bar (z-axis)? * Use `1-clim`. == Working logs == [[KAGRA/Subgroups/PEM/SummaryPage/k1sum0|k1sum0 installation]] [[KAGRA/Subgroups/PEM/SummaryPage/memo_20181015_yuzu|Work log (yuzurihara) 20181015-16]] [[KAGRA/Subgroups/PEM/SummaryPage/memo_20181017_yuzu|Work log (yuzurihara) 20181017]] [[KAGRA/Subgroups/PEM/SummaryPage/How_to_write_configuration_file|How to write configuration file(20181017)]] [[KAGRA/Subgroups/PEM/SummaryPage/memo_20190827|Work log from Alex (20190827)]] [[KAGRA/Subgroups/PEM/SummaryPage/memo_20190828|Work log from Alex (20190828)]] [[KAGRA/Subgroups/PEM/SummaryPage/memo_20241106|Work log to install on Detchar cluster (yuzurihara) (20141106)]] == Links == === Summary Pages === [[https://wiki.ligo.org/DetChar/SummaryPages|Outline of the SummaryPage]] (required LIGO DCC account) [[https://ldas-jobs.ligo.caltech.edu/~duncan.macleod/gwsumm/latest/|Documentation of the SummaryPage]] (required LIGO DCC account) === Conda === [[https://docs.conda.io/projects/conda/en/latest/_downloads/1f5ecf5a87b1c1a8aaf5a7ab8a7a0ff7/conda-cheatsheet.pdf]] [[https://www.freecodecamp.org/news/why-you-need-python-environments-and-how-to-manage-them-with-conda-85f155f4353c/]] [[attachment:Conda_tutorial_Soni.pdf|Sidd's Tutorial]]