Description | Example | Return Message | Group

Convert CBPosition

Convert a planetodetic position to/from a planetocentric position.

Syntax

Convert <ScenarioPath> CBPosition {Planetodetic | Planetocentric} {CentralBodyName} <Latitude> <Longitude> {<Altitude> | <Radius>}

Description

If Planetodetic is entered then <Altitude> must be entered and LLR will be returned. If Planetocetic is entered then <Radius> must be entered and LLA will be returned.

<Latitude> and <Longitude> are entered/returned in degrees. <Altitude> and <Radius> are entered/returned in Connect distance units.

Note: <Latitude> and <Longitude> are measured with reference to the planet fixed frame.

Example

To convert a Planetodetic position on Earth to Planetocentric position (connect distance units are meters):

CONVERT * CBPosition Planetodetic Earth 0.001777533 -100.038601793 35786032.637149

ReturnMessage

Return the planetocentric position (LLR):
ACK
CONVERT 45
0.0017757330 -100.0386017930 42164169.637128

Group Membership

This command belongs to the following group(s):

Scenarios

Version

6.1

STK Programming Interface 11.0.1