matvis.plot.animate_source_map

matvis.plot.animate_source_map(ra, dec, lsts, beam, interval=200, ref_freq=100000000.0, latitude=-0.5361913261514378)[source]

Create an animated map of sources as a function of LST, Az, and ZA.

The sources are colored by the beam value. Note that the IPython package is required by this function.

NOTE: If you get an error about the ffmpeg encoder not being installed, you may need to change the path setting in matplotlib: plt.rcParams['animation.ffmpeg_path'] = '/path/to/ffmpeg'.

Parameters:
  • ra (array_like) – RA and Dec coordinates of sources, in radians.

  • dec (array_like) – RA and Dec coordinates of sources, in radians.

  • lsts (array_like) – Array of LSTs to plot, in radians.

  • beam (UVBeam object) – Beam object, used to color the point sources.

  • interval (int, optional) – Interval between frames, in ms.

  • ref_freq (float, optional) – Reference frequency to evaluate the beam at, in Hz.

  • latitude (float, optional) – The latitude of the center of the array, in radians. The default is the HERA latitude = -30.7215 * pi / 180.

Returns:

anim – Animation object HTML, for display in a Jupyter notebook.

Return type:

matplotlib HTML animation