precompute_beam_cache
One-time pre-computation script for beam rotation caches.
Run this script once before the main pipeline to precompute psi-roll
rotations for each beam file. The resulting .npz files allow the
runtime pipeline to skip one (or both) of the Rodrigues rotations per
sample.
Usage:
python precompute_beam_cache.py [--n_psi 720] [--output_dir /path/to/cache/]
[--no_offsets] [--config config.yaml]
Command-line arguments:
Flag |
Default |
Description |
|---|---|---|
|
|
Number of psi bins. 720 gives 0.5° resolution. Increase for beams wider than ~5°. |
|
|
Where to write |
|
(flag) |
Skip flat-sky angular-offset pre-computation. Use for beams wider than ~5° where the flat-sky approximation is invalid. |
|
|
Path to the config file to read beam settings from. |