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

model_generation

Functions

conv_deg(dec)

Module Contents

orca.utils.calibratormodel.conv_deg(dec)[source]
class orca.utils.calibratormodel.model_generation(vis=None, filename='calibrator_source_list.txt', pol='I,Q,U,V', separate_pol=True, model=True)[source]
property vis[source]
min_beam_val = 0.01[source]
separate_pol = True[source]
property pol[source]
property calfilepath[source]
outpath[source]
polarisations[source]
num_pol[source]
property filename[source]
output_freq = None[source]
includesun = False[source]
solar_flux = 16000[source]
solar_alpha = 2.2[source]
modelcl = None[source]
verbose = True[source]
overwrite = True[source]
predict = True[source]
model = True[source]
point_source_model_needed = True[source]
primary_beam_model = '/lustre/msurajit/beam_model_nivedita/OVRO-LWA_soil_pt.h5'[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

write_source_file(current_pol_index, source_name, muller_matrix, source_num)[source]
static primary_beam_value(current_pol_index, muller_matrix)[source]

returns elements from the first column of Muller Matrix

ctrl_freq()[source]
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

get_risen_source_list()[source]
point_source_model(included_sources=None)[source]
reset_image(imagename)[source]
generate_model_from_component_list(imagename)[source]
correct_for_restoring_beam(image)[source]
check_negative_in_model()[source]
do_prediction()[source]
gen_dummy_image(imagename)[source]
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: