Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93030721
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
Mon, Nov 25, 16:41
Size
397 B
Mime Type
text/x-shellscript
Expires
Wed, Nov 27, 16:41 (2 d)
Engine
blob
Format
Raw Data
Handle
22553898
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