Commit 073f9e7f authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Reduce: more bins for the crab, find freq from filterbank

parent 51e3c685
...@@ -4,14 +4,22 @@ set -e ...@@ -4,14 +4,22 @@ set -e
rm -f htmlout.html rm -f htmlout.html
for fil in 2018-01-28-12\:44*.fil for fil in 2018-01-28-13\:06*.fil
do do
echo $fil
headername=${fil/fil/txt} headername=${fil/fil/txt}
header $fil > ${headername} header $fil > ${headername}
psrname=${fil:21:7} psrname=${fil:21:7}
obsdate=${fil:0:10} obsdate=${fil:0:10}
obstime=${fil:11:5} obstime=${fil:11:5}
arname=$(dspsr -E parfiles/${psrname}.par -L10 -A $fil 2>&1 | tail -n 1 | sed -e "s/[^']*'\(.*\)'[^']*/\1/g") obsfreq=$( cat ${headername} | grep Freq | awk '{print $7-21.4}' )
crabflag=""
if [ ${psrname} = "0531+21" ]; then
crabflag="-b64"
fi
dspsrcmd="dspsr -E parfiles/${psrname}.par -L 10 ${crabflag} -A $fil"
echo $dspsrcmd
arname=$( $dspsrcmd 2>&1 | tail -n 1 | sed -e "s/[^']*'\(.*\)'[^']*/\1/g" )
zapname=${arname/.ar/.zap} zapname=${arname/.ar/.zap}
if [ ! -f ${zapname} ]; then if [ ! -f ${zapname} ]; then
psrsh -e med median_zap.psh $arname 2>&1 > /dev/null psrsh -e med median_zap.psh $arname 2>&1 > /dev/null
...@@ -39,7 +47,7 @@ do ...@@ -39,7 +47,7 @@ do
<li><a href="${npyname//:/%3A}">Numpy array</a> ($( du -h ${npyname} | awk '{print $1}' ))</li> <li><a href="${npyname//:/%3A}">Numpy array</a> ($( du -h ${npyname} | awk '{print $1}' ))</li>
</ul> </ul>
</td> </td>
<td>420 MHz</td> <td>${obsfreq} MHz</td>
<td><a href="${profilepngname//:/%3A}"><img src="${profilepngname//:/%3A}" width="94" height="100" alt="Profile of B${psrname}"></a></td> <td><a href="${profilepngname//:/%3A}"><img src="${profilepngname//:/%3A}" width="94" height="100" alt="Profile of B${psrname}"></a></td>
<td><a href="${pngname//:/%3A}"><img src="${pngname//:/%3A}" width="125" height="100" alt="Spectrum of B${psrname}"></a></td> <td><a href="${pngname//:/%3A}"><img src="${pngname//:/%3A}" width="125" height="100" alt="Spectrum of B${psrname}"></a></td>
<td></td> <td></td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment