Next: Source specification, Previous: Coordinate Systems, Up: Top
Angular and linear quantities may be specified in a variety of units. Linear quantities without unit specifications are assumed to be in millimeters. Angular quantities without unit specifications are assumed to be in radians. To specify a unit, pass the entire quantity as a string, appending the unit to the value. For example,
theta = 2.0 --> radians theta = '2.0 deg' --> degrees
The available angular units are `deg', `degree', `arcmin', `arcminute', `arcsec', `arcsecond', `milliarcsecond', `rad', `radian', `milliradian', `mrad', `microradian', `urad'.
The available linear units are `parsec', `m', `meter', `decimeter', `dm', `centimeter', `cm', `millimeter', `mm', `micrometer', `micron', `um', `nanometer', `nm', `Angstrom', `angstrom', `A'.