orca.utils.calibratormodel
Calibrator sky model generation for OVRO-LWA.
This module generates sky models for calibration sources with primary beam corrections. Supports both full-sky models and specific source selection (e.g., Cygnus A only for delay calibration).
- Classes:
model_generation: Main class for generating CASA component lists.
The generated component lists can be applied to measurement sets using CASA’s ft task for model-based calibration.
Classes
Functions
|
Module Contents
- class orca.utils.calibratormodel.model_generation(vis=None, filename='calibrator_source_list.txt', pol='I,Q,U,V', separate_pol=True, model=True)[source]
-
- gen_model_file()[source]
- Parameters:
filename – output txt file that contains clean components for all visible strong calibration sources in wsclean format
visibility – input visibility
- Returns:
N/A
- static primary_beam_value(current_pol_index, muller_matrix)[source]
returns elements from the first column of Muller Matrix
- predict_flux(flux_hi, sp, muller_matrix, ref_freq)[source]
Given a flux at reference frequency in MHz and a sp_index, return the flux other frequenct
- Parameters:
flux_hi – flux at the reference frequency
sp – spectral index
ref_freq – reference frequency in MHz
output_freq – output frequency in MHz
- Returns:
flux caliculated at the output frequency
- gen_model_cl(included_sources=None)[source]
Generate source models for bright sources as CASA clean components
- Parameters:
msfile – input visibility
ref_freq – reference frequency of the preset flux values of bright sources
output_freq – output frequency to be written into the CASA component list
includesun – if True, add a precribed solar flux to the source list
- Returns: