vizSupport

vizSupport.assert_option(value, low, high, default=None)[source]

Check if the value is in [low, high] inclusive.

vizSupport.assert_trinary(value, default=0)[source]

Check if the value is in [-1, 0, 1] and map False to -1 or 0 depending on default.

vizSupport.fixedframe2lla(r_GP_P, radEquator, radRatio)[source]

This method receives a cartesian point above a reference ellipsoid with equatorial radius and flattening ratio, then converts to lat/lon/alt.

Parameters:
  • r_GP_P – [m] position vector of the location G relative to the parent body

  • radEquator – [m] equatorial radius of the parent body

  • radRatio – ratio of polar radius to equatorial radius

Returns:

[rad,rad,m] lla_GP, position vector of the location G relative to parent body frame P in lat/lon/alt

Return type:

3-element list

vizSupport.lla2fixedframe(lla_GP, radEquator, radRatio)[source]

This method receives a latitude/longitude/altitude point above a reference ellipsoid with equatorial radius and flattening ratio, then converts to body-fixed frame coordinates.

Parameters:
  • lla_GP – [rad,rad,m] position vector of the location G relative to the parent body in lat/lon/alt components

  • radEquator – [m] equatorial radius of the parent body

  • radRatio – ratio of polar radius to equatorial radius

Returns:

[m] r_GP_P, position vector of the location G relative to parent body frame P in P frame components

Return type:

3-element list

vizSupport.setSprite(shape, color=None)[source]

Helper function to set the sprite shape and optional sprite color. :param shape: Sprite shape, must be either “CIRCLE”, “SQUARE”, “TRIANGLE”, “STAR”, or “bskSat” :param kwargs: RGBA color, can be either color name string or a 4D list of [0,255] values :return: string of the protobuffer sprite setting