Equivalency for the astropy.units module for converting angular size
to physical length and vice versa.
Requires the distance to be given in pc.
Can be used to convert angular sizes and lengths using the units
module. >>> equiv = angularSize(1000.) >>> rad =
(0.001*u.arcsec).to(u.au,equivalencies=equiv) gives the length in
astronomical units.
Note that you don't have to give arcsec or au. You can also ask for
u.cm, u.arcminute, etc. The astropy unit conversion module takes care of
these conversions as long as no equivalency is needed.
- Parameters:
distance (float) - The distance to the object in parsec
- Returns: list(tuple)
- list of (unit in, unit out, forward conversion, reverse
conversion)
|