ovro-eovsa / ovro-lwa-solar

Calibration, imaging, and analysis of solar data taken by the Owens Valley Long Wavelength Array (OVRO-LWA)
MIT License
5 stars 6 forks source link

Polcal updates #58

Closed surajit4444mondal closed 7 months ago

surajit4444mondal commented 8 months ago

Polcalib.py implements practically all functions needed for polarisation calibration. Quartical_codes.py can be ignored for now, although we may need these in future.. Small changes have been made in other codes, to make them run smoothly. In image_ms, a new input has been added, named do_polcal. If set to True, it calls polcalib.do_polarisation_calibration . Everything happens there. The code needs one human intervention, to confirm in do_polarisation calibration if the source is unpolarised. I am still working on the case when source is unpolarised, but I have not yet found a source where there is quiet sun and polarised source. I believe that this is still useful, as I hope we can apply the corrections obtained to nearby times as well, where there can be polarised sources.

There are multiple functions, which are not used in this version, but are there as I am still working on this. I hope that you can give the code a try and provide your feedback on it. I have docstrings in most functions and will try to finish adding to all of them soon.

NOTE: Can only be run in CALIM servers, as primary beam files are available there.