Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace current selfcal gain plotter with cubical gain plotter #1605

Open
Athanaseus opened this issue Oct 29, 2024 · 2 comments · Fixed by #1607
Open

Replace current selfcal gain plotter with cubical gain plotter #1605

Athanaseus opened this issue Oct 29, 2024 · 2 comments · Fixed by #1607

Comments

@Athanaseus
Copy link
Collaborator

Athanaseus commented Oct 29, 2024

Running the cubical gain plotter:

plot-gain-solutions -o de_solutions_bp_D1_ap -B --dir 1 --nrow 6 --ncol 10 --diag ap g_phase-dE-field_0-ddid_None.parmdb

import stimela

INPUT = 'input'
OUTPUT = 'output'
MSDIR = 'msdir'

TABLE = 'g_phase-dE-field_0-ddid_None.parmdb'

stimela.register_globals()

recipe = stimela.Recipe('Plot Gain Solutions', ms_dir=MSDIR, JOB_TYPE="singularity")

recipe.add('cab/cubical_pgs', 'plot_gains',
        {
            "files" :   "%s:output" % TABLE,
            "output-name" :  TABLE.rsplit('.', 1)[0],
            "dir" :   1,
            "bandpass" :   true,
            "diag"  :   "ap",
            "nrow" :   6,
            "ncol" :   10,
        },
            input=INPUT,
            output=OUTPUT,
            label='plot_gains:: Cubical')

recipe.run()

187625052-04cdce34-5b51-4407-b84e-cf00e970aa1d

@SpheMakh
Copy link
Collaborator

@Athanaseus could you please post an updated set of gain plots (after the fix)

@Athanaseus
Copy link
Collaborator Author

Setting enabling gain_plot will produce the following plots:

selfcal:
  enable: true
  img_npix: 1800
  img_cell: 2
  cal_timeslots_chunk: 240
  cal_cubical:
    gain_plot:
      enable: true

This example is from the Jenkins tests:

  1. mypipelinerun-g-phase-gains-1-1532022061_subset-circinus_p3-corr-G

mypipelinerun-g-phase-gains-1-1532022061_subset-circinus_p3-corr-G

  1. mypipelinerun-g-phase-gains-1-1532022061_subset-circinus_p3-corr-B

mypipelinerun-g-phase-gains-1-1532022061_subset-circinus_p3-corr-B

  1. mypipelinerun-g-amp-phase-diag-gains-2-1532022061_subset-circinus_p3-corr-G

mypipelinerun-g-amp-phase-diag-gains-2-1532022061_subset-circinus_p3-corr-G

  1. mypipelinerun-g-amp-phase-diag-gains-2-1532022061_subset-circinus_p3-corr-B

mypipelinerun-g-amp-phase-diag-gains-2-1532022061_subset-circinus_p3-corr-B

NB: The plots feature antenna amplitude and phase in a single plot with twin y-axes respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants