Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Add self first draft of self cal code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Willem committed Apr 13, 2021
1 parent 3395f0f commit 2ab4e4a
Show file tree
Hide file tree
Showing 7 changed files with 824 additions and 148 deletions.
9 changes: 6 additions & 3 deletions cngi/image/implot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
this module will be included in the api
"""

def implot(xda, axis=['l','m'], chans=None, pols=None, overplot=False, drawplot=True, tsize=250):
def implot(xda, axis=['l','m'], chans=None, pols=None, overplot=False, drawplot=True, tsize=250, title=None):
"""
Plot a preview of Image xarray DataArray contents
Expand Down Expand Up @@ -99,7 +99,10 @@ def implot(xda, axis=['l','m'], chans=None, pols=None, overplot=False, drawplot=
collapse = [ii for ii in range(txda.ndim) if txda.dims[ii] not in (txda[axis[0]].dims + txda[axis[1]].dims)]
if len(collapse) > 0: txda = txda.max(axis=collapse)
txda.plot.pcolormesh(ax=axes, x=axis[0], y=axis[1])

plt.title(txda.name)

if title is None:
plt.title(txda.name)
else:
plt.title(title)
if drawplot:
plt.show()
2 changes: 1 addition & 1 deletion ngcasa/calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Calibration subpackage modules
"""
from .solve_calibration import solve_calibration
from .self_cal import self_cal
from .apply_calibration import apply_calibration

0 comments on commit 2ab4e4a

Please sign in to comment.