Skip to content

Commit

Permalink
Minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLoh committed Jun 4, 2024
1 parent 6ce31d2 commit 73f6cce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/obs/src_in_lobes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ Besides the time/frequeny/pointing parameters, the :attr:`~nenupy.schedule.conta
)
Once the simulation is done, meaning the array factors for the selected Mini-Array rotations, `Multi-Order Coverage objects <https://cds-astro.github.io/mocpy/>`_ (MOCs) can be computed.
The :meth:`~nenupy.schedule.contamination.BeamLobes.compute_moc` method takes as argument the ``maximum_ratio`` as the threshold above which a sky region, `HEALPix <https://healpix.jpl.nasa.gov/>`_ tesselated, should be included in the 'grating lobe MOC'.
For instance, a value of ``0.5`` would mean that every HEALPix cell whose value is greater than :math:`{\rm max}(\mathcal{F}_{\rm MA})/2` is considered as being part of the grating lobe region, where :math:`\mathcal{F}_{\rm MA}` is the Mini-Array array factor.
The :meth:`~nenupy.schedule.contamination.BeamLobes.compute_moc` method takes as argument the ``relative_threshold`` as the threshold above which a sky region, `HEALPix <https://healpix.jpl.nasa.gov/>`_ tesselated, should be included in the 'grating lobe MOC'.

.. code-block:: python
grating_lobes.compute_moc(maximum_ratio=0.4)
grating_lobes.compute_moc(relative_threshold=0.4)
The next step consists in cross-matching the computed MOC (over times and frequencies) with a list of bright sources.
Expand Down
2 changes: 1 addition & 1 deletion nenupy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright 2023, nenupy"
__credits__ = ["Alan Loh"]
__license__ = "MIT"
__version__ = "2.7.1"
__version__ = "2.7.2"
__maintainer__ = "Alan Loh"
__email__ = "[email protected]"

Expand Down
5 changes: 3 additions & 2 deletions nenupy/io/io_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,9 @@ def _plot_dynamic_spectrum(self, data, ax, fig, **kwargs):
ax.set_xlim(xlim)
ax.set_ylim(ylim)

cbar = plt.colorbar(im, pad=0.03)#format='%.1e')
cbar.set_label(kwargs.get("colorbar_label", "dB" if kwargs.get("decibel", True) else "Amp"))
if kwargs.get("set_colorbar", True):
cbar = plt.colorbar(im, pad=0.03)#format='%.1e')
cbar.set_label(kwargs.get("colorbar_label", "dB" if kwargs.get("decibel", True) else "Amp"))
# cax = inset_axes(
# ax,
# width='3%',
Expand Down

0 comments on commit 73f6cce

Please sign in to comment.