Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102203977
bayes2topcat.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 18, 05:54
Size
397 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 20, 05:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24303627
Attached To
R1448 Lenstool-HPC
bayes2topcat.sh
View Options
#!/bin/bash
# Convert the bayes.dat header into a ASCII header readable by TOPCAT
#
if
(
[
$1
-a -e
$1
]
)
then
bayes
=
$1
else
bayes
=
bayes.dat
fi
root
=
${
bayes
%%.dat
}
head
=
$(
grep
"^#"
$bayes
| tr -s
' '
'_'
| tr
'\n'
' '
| tr
'#'
' '
| sed
's/^\s//'
)
echo
"#$head"
> head
grep -v
"^#"
$bayes
> body
cat head body >
$root
.top
rm head body
echo
"Starting topcat..."
topcat -f ascii
$root
.top
Event Timeline
Log In to Comment