NAME

fr2bp - convert fullrays to bpipe format rays


DESCRIPTION

fr2bp converts fullray format rays to bpipe format rays. To preserve compatibility with the bp2fr converter and the drat module within OSAC, fr2bp ensures that if the surface number as read from the parameter file is 0, the surface normal data field and the graze angle data field are not added to the bpipe.

If the surface number from the parameter file is greater than 0, these two data fields are added to the bpipe output stream, and a surface number header field is created with a value of 1. Since only a single grazing angle field is written out, the value of surf_num is used to determine which of the two grazing angle fields in the fullray ray is written. A surf_num of 1 causes the first field to be output; values larger than 1 cause the second to be output.


PARAMETERS

input file
The fullray input stream.

output file
The output bpipe output stream.

surf_num int
The surface number

debug list
A list of debug flags. None are presently defined.

help boolean
Print a help message and exit.

version boolean
Print the version and exit.


COPYRIGHT & LICENSE

Copyright 2006 Smithsonian Astrophysical Observatory

This software is released under the GNU General Public License. You may find a copy at

          http://www.fsf.org/copyleft/gpl.html


VERSION

This documents version 1.0.2 of fr2bp.


AUTHORS

Diab Jerius <djerius@cfa.harvard.edu>

Dave Grumm