PyPO User Manual
PyPO.Enums.Units Class Reference

Enum types for units for display and conversion. More...

Inheritance diagram for PyPO.Enums.Units:

Static Public Attributes

int M = 1e3
 
int CM = 1e-2*M
 
int MM = 1e-3*M
 
int UM = 1e-6*M
 
int NM = 1e-9*M
 
float IN = 25.4*MM
 
float MIL = IN*1e-3
 
float THOU = IN*1e-3
 
float UIN = IN*1e-6
 
int FT = 12*IN
 
int DEG = 1
 
int AM = 60
 
int AS = 3600
 
int RAD = 180/pi*DEG
 
int MRAD = RAD*1e-3
 
int URAD = RAD*1e-6
 

Detailed Description

Enum types for units for display and conversion.

In PyPO, the default spatial unit is millimeters and the default angular unit is degrees. For plotting purposes, it is possible to scale the units on the axes. These special options can be used to specify units on plotting axes.

Options:
M : Set unit to meters
CM : Set unit to centimeters
MM : Set unit to millimeters (default unit)
UM : Set unit to micrometers
NM : Set unit to nanometers
IN : Set unit to inches
MIL/THOU: Set unit to thousandths of an inch
UIN : Set unit to microinches
FT : Set unit to feet
DEG : Set unit to degrees. Use for far-fields only
AM : Set unit to arcminutes. Use for far-fields only
AS : Set unit to arcseconds. Use for far-fields only
RAD : Set unit to radians. Use for far-fields only
MRAD : Set unit to milliradians. Use for far-fields only
URAD : Set unit to microradians. Use for far-fields only


The documentation for this class was generated from the following file: