1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""Smooth radio images and cubes to a common beam by UV-plane convolution."""
"""A 2D elliptical Gaussian beam (PSF), with astropy and radio_beam constructors.
Parameters
----------
major_deg:
FWHM major axis in degrees (FITS BMAJ).
minor_deg:
FWHM minor axis in degrees (FITS BMIN), at most ``major_deg``.
pa_deg:
Position angle in degrees East of North (FITS BPA).
"""
"""Read ``BMAJ``, ``BMIN`` and ``BPA`` (default 0) from a FITS header.
Examples
--------
>>> from astropy.io import fits
>>> header = fits.Header({"BMAJ": 0.005, "BMIN": 0.004, "BPA": 30.0})
>>> Beam.from_fits_header(header).major_deg
0.005
"""
return
"""Convert a ``radio_beam.Beam``, or anything with angle ``major``,
``minor`` and ``pa`` quantities.
Examples
--------
>>> import astropy.units as u
>>> import radio_beam
>>> rb = radio_beam.Beam(10 * u.arcsec, 8 * u.arcsec, 30 * u.deg)
>>> round(Beam.from_radio_beam(rb).major_arcsec, 6)
10.0
"""
# noqa: PLC0415 (optional dependency)
return
=