Handy filter programs

aug,2002

Notes:
 AinAout is ascii input,output
 BinBout is binary input,output.
 BinAout is binary input,ascii output
Intro:

Pointing related:
bToJ - convert from B1950 to J2000 coordinates. AinAout
srcTimes - compute the LST rise, transit and set times for a set of sources. AinAout

AO telescope data:
cordmp:  scan a correlator datafile and output a summary of each scan in the file. BinAout.
dmphdrs:  scan an ao datafile (correlator or ri) making an ascii dump of all the headers. BinAout.
selectrcv:  create a subset of an ao datafile containing a particular rcvr (or all but 1 rcvr). BinBout
splitscan: read an ao datafile and output each scan to a separate file (or a subset of scans). BinBout


Intro:   (top)

  These are standalone programs that read an input file and generate some output. Most of them run as filters so they read from standard input and write to standard output. They can be run in various ways. I'll use bToJ as an example. It is a filter that converts from B1950  to J2000 coordinates taking ascii input.
  • Enter input from the the terminal, output goes to the terminal.

  •  bToJ
    xxxsrcname  202020 101010   .. user enters the b1950 coords
    xxxsrcname  202243.9408  101950.2285 .. program outputs the J2000 coordinates.
    ctrl-D to exit
  • Place input in a file one line at a time, write output to another file

  • bToJ < inputfile > outputfile
  • Convert all of the B coordinates in flux.cat to J2000

  • grep "^B" /share/obs4/usr/x101/cat/flux.cat | bToJ > outputfile
    The only problem with this is that the first col of the output file still has the B names..
        The filters that process binary data can only be run using the second step: input from file, output to file since you can't generate binary data from the keyboard.
        Some of these routines can be downloaded to other sites.
     home_~phil