LSSTApplications
12.1-5-gbdcc3ab,15.0+10,15.0+19,15.0-1-g19261fa+10,15.0-1-g60afb23+19,15.0-1-g615e0bb+11,15.0-1-g6668b0b+6,15.0-1-g788a293+19,15.0-1-ga91101e+19,15.0-1-gae1598d+9,15.0-1-gd076f1f+17,15.0-1-gdf18595+3,15.0-1-gf4f1c34+9,15.0-10-g113cadf7+2,15.0-11-g5674e3b,15.0-2-g100d730+12,15.0-2-g20c4630+8,15.0-2-g35685a8+15,15.0-2-g5dfaa72+8,15.0-2-gf38729e+14,15.0-24-g02ed2a30c+2,15.0-3-g11fe1a0+3,15.0-3-g130a88a+2,15.0-3-g707930d+1,15.0-3-g9103c06+9,15.0-3-ga03b4ca+26,15.0-3-gaec6799+6,15.0-4-g32c2b40+2,15.0-4-g535e784+3,15.0-4-g654b129+17,15.0-5-g23e394c+7,15.0-5-g54bfcd9+2,15.0-5-gb31927c,15.0-6-g4418537+2,15.0-7-g0c26201,15.0-7-g6bb3a066+2,15.0-9-g5661f8f+4,w.2018.18
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ (self, args) |
def | wraps (self) |
def | getBoundingBox (self) |
def | getMin (self) |
def | getMax (self) |
def | getThetaExtent (self) |
def | getCenter (self) |
def | isEmpty (self) |
def | isFull (self) |
def | containsPoint (self, p) |
def | contains (self, pointOrRegion) |
def | intersects (self, pointOrRegion) |
def | extend (self, pointOrRegion) |
def | shrink (self, box) |
def | setEmpty (self) |
def | setFull (self) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __hash__ (self) |
Static Public Member Functions | |
def | edge (v1, v2, n) |
Public Attributes | |
min | |
max | |
A spherical coordinate space bounding box. This is similar to a bounding box in cartesian space in that it is specified by a pair of points; however, a spherical box may correspond to the entire unit-sphere, a spherical cap, a lune or the traditional rectangle. Additionally, spherical boxes can span the 0/360 degree longitude angle discontinuity. Note that points falling exactly on spherical box edges are considered to be inside (contained by) the box.
Definition at line 371 of file geometry.py.
def lsst.geom.geometry.SphericalBox.__init__ | ( | self, | |
args | |||
) |
Creates a new spherical box. If no arguments are supplied, then an empty box is created. If the arguments consist of a single SphericalRegion, then a copy of its bounding box is created. Otherwise, the arguments must consist of a pair of 2 (spherical) or 3 (cartesian 3-vector) element coordinate tuples/lists that specify the minimum/maximum longitude/latitude angles for the box. Latitude angles must be within [-90, 90] degrees, and the minimum latitude angle must be less than or equal to the maximum. If both minimum and maximum longitude angles lie in the range [0.0, 360.0], then the maximum can be less than the minimum. For example, a box with min/max longitude angles of 350/10 deg spans the longitude angle ranges [350, 360) and [0, 10]. Otherwise, the minimum must be less than or equal to the maximum, though values can be arbitrary. If the two are are separated by 360 degrees or more, then the box spans longitude angles [0, 360). Otherwise, both values are range reduced. For example, a spherical box with min/max longitude angles specified as 350/370 deg spans longitude angle ranges [350, 360) and [0, 10].
Definition at line 384 of file geometry.py.
def lsst.geom.geometry.SphericalBox.__eq__ | ( | self, | |
other | |||
) |
Definition at line 732 of file geometry.py.
def lsst.geom.geometry.SphericalBox.__hash__ | ( | self | ) |
Definition at line 739 of file geometry.py.
def lsst.geom.geometry.SphericalBox.__repr__ | ( | self | ) |
Returns a string representation of this spherical box.
Definition at line 724 of file geometry.py.
def lsst.geom.geometry.SphericalBox.contains | ( | self, | |
pointOrRegion | |||
) |
Returns True if this spherical box completely contains the given point or spherical region. Note that the implementation is conservative where ellipses are concerned: False may be returned for an ellipse that is actually completely contained in this box.
Definition at line 503 of file geometry.py.
def lsst.geom.geometry.SphericalBox.containsPoint | ( | self, | |
p | |||
) |
Returns True if this spherical box contains the given point, which must be specified in spherical coordinates.
Definition at line 491 of file geometry.py.
|
static |
Returns a spherical bounding box for the great circle edge connecting v1 to v2 with plane normal n. All arguments must be cartesian unit vectors.
Definition at line 743 of file geometry.py.
def lsst.geom.geometry.SphericalBox.extend | ( | self, | |
pointOrRegion | |||
) |
Extends this box to the smallest spherical box S containing the union of this box with the specified point or spherical region.
Definition at line 559 of file geometry.py.
def lsst.geom.geometry.SphericalBox.getBoundingBox | ( | self | ) |
Returns a bounding box for this spherical region.
Definition at line 442 of file geometry.py.
def lsst.geom.geometry.SphericalBox.getCenter | ( | self | ) |
Returns an 2-tuple of floats corresponding to the longitude/latitude angles (in degrees) of the center of this spherical box.
Definition at line 467 of file geometry.py.
def lsst.geom.geometry.SphericalBox.getMax | ( | self | ) |
Returns the maximum longitude and latitude angles of this spherical box as a 2-tuple of floats (in units of degrees).
Definition at line 453 of file geometry.py.
def lsst.geom.geometry.SphericalBox.getMin | ( | self | ) |
Returns the minimum longitude and latitude angles of this spherical box as a 2-tuple of floats (in units of degrees).
Definition at line 447 of file geometry.py.
def lsst.geom.geometry.SphericalBox.getThetaExtent | ( | self | ) |
Returns the extent in longitude angle of this box.
Definition at line 459 of file geometry.py.
def lsst.geom.geometry.SphericalBox.intersects | ( | self, | |
pointOrRegion | |||
) |
Returns True if this spherical box intersects the given point or spherical region. Note that the implementation is conservative: True may be returned for a region that does not actually intersect this box.
Definition at line 530 of file geometry.py.
def lsst.geom.geometry.SphericalBox.isEmpty | ( | self | ) |
Returns True if this spherical box contains no points.
Definition at line 480 of file geometry.py.
def lsst.geom.geometry.SphericalBox.isFull | ( | self | ) |
Returns True if this spherical box contains every point on the unit sphere.
Definition at line 485 of file geometry.py.
def lsst.geom.geometry.SphericalBox.setEmpty | ( | self | ) |
Empties this spherical box.
Definition at line 710 of file geometry.py.
def lsst.geom.geometry.SphericalBox.setFull | ( | self | ) |
Expands this spherical box to fill the unit sphere.
Definition at line 717 of file geometry.py.
def lsst.geom.geometry.SphericalBox.shrink | ( | self, | |
box | |||
) |
Shrinks this box to the smallest spherical box containing the intersection of this box and the specified one.
Definition at line 652 of file geometry.py.
def lsst.geom.geometry.SphericalBox.wraps | ( | self | ) |
Returns True if this spherical box wraps across the 0/360 degree longitude angle discontinuity.
Definition at line 436 of file geometry.py.
lsst.geom.geometry.SphericalBox.max |
Definition at line 412 of file geometry.py.
lsst.geom.geometry.SphericalBox.min |
Definition at line 411 of file geometry.py.