Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FineTooth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansel Neunzert
FineTooth
Commits
042e6a36
Commit
042e6a36
authored
Nov 23, 2016
by
Ansel Neunzert
Browse files
Options
Downloads
Patches
Plain Diff
re-adding autoCombFind script
parent
62b0d210
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autoCombFindLHO.sh
+56
-0
56 additions, 0 deletions
autoCombFindLHO.sh
with
56 additions
and
0 deletions
autoCombFindLHO.sh
0 → 100755
+
56
−
0
View file @
042e6a36
#!/bin/bash
#source /home/aneunzert/test/bin/activate
TEMP_DIR
=
~/public_html/latest/
CONSEC
=
4
echo
"Removing old file from temp directory..."
rm
$TEMP_DIR
/
*
echo
"Finding latest spectrum file and copying to temp directory..."
RECENTSPECT
=
$(
ls
-tr
~/public_html/comb_plots/combCheck
*
_cumulsince_2016-09-18/
*
|
grep
dat_ |
tail
-n1
)
echo
$RECENTSPECT
echo
$RECENTSPECT
>
$TEMP_DIR
/foundcombs.txt
cp
$RECENTSPECT
$TEMP_DIR
RECENTSPECT
=
$(
ls
-t
$TEMP_DIR
/
*
|
head
-n1
)
echo
"Running comb finding algorithm..."
COMBSTATS
=
$(
python findComb.py
--threshold
0.5
--inputfile
=
$RECENTSPECT
--knowncombfile
=
"preER10combnotes.txt"
--fmin
0
--fmax
100
--spacingmin
0.3
--spacingmax
20
--scalerange
30
--nmostcommoncombs
1000
--ntoppeaks
1000
--consecutive
$CONSEC
--checkrange
1
--printmaxstat
True
--printmax
10 |
tail
-n2
)
echo
$COMBSTATS
TAGCOMBS
=
$(
echo
"
$COMBSTATS
"
|
tail
-n1
)
MAXSTAT
=
$(
echo
"
$COMBSTATS
"
|
head
-n1
)
echo
$TAGCOMBS
>>
$TEMP_DIR
/foundcombs.txt
echo
$MAXSTAT
>>
$TEMP_DIR
/foundcombs.txt
MAXSTAT
=
${
MAXSTAT
%.*
}
if
[
$MAXSTAT
-gt
100
]
then
ALERTMSG
=
"<span style='background-color:red!important;' id='alert'>High</span>"
elif
[
$MAXSTAT
-gt
10
]
then
ALERTMSG
=
"<span style='background-color:orange;!important;' id='alert'>Moderate</span>"
else
ALERTMSG
=
"<span style='background-color:limegreen;!important;' id='alert'>Low</span>"
fi
SUMMARY
=
"<h2> Unidentified comb alerts </h2>
<p>Probability of unidentified comb(s) in the latest cumulative spectrum:
${
ALERTMSG
}
<br>Plot showing the top comb candidates (max 10): <span><a href='https://ldas-jobs.ligo-wa.caltech.edu/~aneunzert/latest/H1:LSC-DARM_OUT_DQ.html' target='_blank'>here</a></span>"
echo
"
$SUMMARY
"
>
$TEMP_DIR
/summary.txt
echo
"Plotting..."
<<<<<<
< HEAD:autoCombFindLHO.sh
python chplot.py
--truefcutoff
=
True
--fmin
0
--fmax
200
--consecutive
3
--checkrange
1
--overwrite
=
True
--scalerange
=
0
$TAGCOMBS
--inputfolder
$TEMP_DIR
--knowncombfile
=
"preER10combnotes.txt"
=======
python chplot.py
--truefcutoff
=
True
--fmin
0
--fmax
100
--consecutive
$CONSEC
--checkrange
1
--overwrite
=
True
--scalerange
=
0
$TAGCOMBS
--inputfolder
$TEMP_DIR
--knowncombfile
=
"preER10combnotes.txt"
>>>>>>>
659cbf2df0a80a2c8bf081d7c704ef964300b239:autoCombFind.sh
HTMLFILE
=
$(
ls
$TEMP_DIR
/
*
.html
)
echo
"Plot successfully generated at
$HTMLFILE
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment