Skip to content

Commit

Permalink
fix report S/N with N=0
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 23, 2024
1 parent 2ca5bc9 commit 65e528d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/csh/edge_gbt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,14 @@ nemo_stamp tabint
echo -n "Estimate of signal/noise in spectrum: "
peak=$(tabstat $run.spec 2 qac=t | txtpar - p0=QAC,1,6)
rms=$(tabtrend $run.spec 2 | tabstat - qac=t robust=t | txtpar - p0=QAC,1,4)
echo "$peak $rms $(nemoinp $peak/$rms)"
if [ $rms = 0 ]; then
echo "$peak 0 999999"
else
echo "$peak $rms $(nemoinp $peak/$rms)"
fi


# export for other programs, in decent units
# export to FITS, in decent units
# this way the input spatial scale is in arcsec and km/s
# SKIP for production
# ccdfits $run.31 $run.fits radecvel=t scale=1/3600.0,1/3600.0,1.0 crval=$crval restfreq=$restfreq
Expand Down

0 comments on commit 65e528d

Please sign in to comment.