Skip to content

Commit

Permalink
Tutorial update to briefly highlight MS cal support
Browse files Browse the repository at this point in the history
  • Loading branch information
kartographer committed Apr 17, 2024
1 parent 01543cd commit 5779003
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/uvcal_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,21 @@ b) CalFITS to CalH5
>>> cal.write_calh5(os.path.join('.', 'tutorial_cal.calh5'), clobber=True)
c) MSCal to CalH5
*******************
.. code-block:: python
>>> import os
>>> from pyuvdata import UVCal
>>> from pyuvdata.data import DATA_PATH
>>> filename = os.path.join(DATA_PATH, 'sma.ms.amp.gcal')
>>> # Here we use the ``from_file`` class method, can also use the ``read`` method.
>>> # Can optionally specify the ``file_type`` to either method
>>> cal = UVCal.from_file(filename, use_future_array_shapes=True)
>>> cal.write_calh5(os.path.join('.', 'tutorial_cal.ms'), clobber=True)
UVCal: Initializing from a UVData object
----------------------------------------
The :meth:`pyuvdata.UVCal.initialize_from_uvdata` method allows you to initialize a UVCal
Expand Down

0 comments on commit 5779003

Please sign in to comment.