UCBerkeleySETI / blimpy

Breakthrough Listen I/O Methods for Python

Home Page:https://blimpy.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rawhdr command line utility and a callable function

texadactyl opened this issue · comments

rawhdr FILEPATH - command line utility to print all of the guppi header fields.

blimpy.rawhdr.get_obsnchan(FILEPATH) - callable function to retrieve the number of observation (coarse) channels.

FWIW, I put this bash function definition in my ~/.bash_aliases file:

function rawhd()
{
  /usr/bin/fold ${1:?usage: rawhd RAW_DATASET [PATTERN]} | sed '/^END /q' | grep "$2" | sed 's/ *$//'
}