fr2bpipe - convert fullrays to bpipe format rays
- input file
-
the fullrays
- output file
-
the destination of the bpipe rays
- surf_num int
-
the surface number
- debug list
-
A list of debug flags. None are presently defined.
- version boolean
-
Print the version and exit.
fr2bpipe converts fullray format rays to bpipe format rays. To preserve compatibility with the bpipe2fr converter and the
drat module within OSAC, fr2bpipe 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, and a surface number header field in
the bpipe is created into which a surface number of 1 is written. 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.
For backwards compatiblility, if the surf_num field is not found in the parameter file, it defaults to 1.
Dave Grumm (dmg@cfa.harvard.edu)
Diab Jerius (djerius@cfa.harvard.edu)