Package gavo :: Package stc :: Module bboxes
[frames] | no frames]

Module bboxes

source code

Computing bboxes for STC geometries.

A bbox coming out of this module is a 4-tuple of (ra0, de0, ra1, de1) in ICRS degrees.

(You're right, this should be part of the dm classes; but it's enough messy custom code that I found it nicer to break it out).

Classes
  GCSegment
A great circle segment on a sphere.
Functions
 
getHeading(long1, lat1, long2, lat2)
returns the initial heading when going from one spherical position to another along a great circle.
source code
 
getStandardFrame(*args) source code
 
fromRad(bbox) source code
 
joinBboxes(*bboxes)
returns a bounding box encompassing all the the bboxes passed in.
source code
 
getBboxes(ast)
iterates over the bboxes of the areas within ast.
source code
Variables
  __package__ = 'gavo.stc'
Function Details

getHeading(long1, lat1, long2, lat2)

source code 

returns the initial heading when going from one spherical position to another along a great circle.

Everything is in rad, angle is counted north over east.

getStandardFrame(*args)

source code 
Decorators:
  • @utils.memoized

joinBboxes(*bboxes)

source code 

returns a bounding box encompassing all the the bboxes passed in.

No input bbox must cross the stitching line; they must be normalized, i.e., lower left and upper right corners.

getBboxes(ast)

source code 

iterates over the bboxes of the areas within ast.

bboxes are (ra0, de0, ra1, de1) in ICRS degrees.