PositionVelocityConvert(Variable, Variable, Variable, Array, Variable) Function

Top 

Description

Converts the position and velocity specified by fromVector from the fromSystem coordinate system to the toSystem coordinate system, referencing the coordinate systems to the specified epoch.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

 

Function Signature

PositionVelocityConvert(

Variable fromSystem,


Variable toSystem,


Variable epoch,


Array fromVector,


Variable lcsLongitude)

 

 

Arguments

fromSystem


Description:

Coordinate system of input position and velocity.

Valid Values:

Value

Label

1

Mean of J2000 Earth Equator

2

Mean of J2000 Earth Ecliptic

3

True of Date Earth Equator

4

Earth Fixed

5

Local Coordinates - Longitude

6

True Equator Mean Equinox

7

Local Coordinates - Longitude/Latitude

8

Mean of Date Earth Equator

9

Mean of 1950 Earth Equator

10

Moon Fixed (Principle Axis Rotating)

11

True of Date Rotating

12

Moon Principle Axis - Inertial at J2000

13

Moon Principle Axis - Inertial at Epoch

14

Moon Mean Earth - Rotating

15

Moon Mean Earth - Inertial at J2000

16

Moon Mean Earth - Inertial at Epoch

17

Specify any CelestialObject.ReferenceFrameId

 

 

 

toSystem


Description:

Coordinate system of output position and velocity.

Valid Values:

Value

Label

1

Mean of J2000 Earth Equator

2

Mean of J2000 Earth Ecliptic

3

True of Date Earth Equator

4

Earth Fixed

5

Local Coordinates - Longitude

6

True Equator Mean Equinox

7

Local Coordinates - Longitude/Latitude

8

Mean of Date Earth Equator

9

Mean of 1950 Earth Equator

10

Moon Fixed (Principle Axis Rotating)

11

True of Date Rotating

12

Moon Principle Axis - Inertial at J2000

13

Moon Principle Axis - Inertial at Epoch

14

Moon Mean Earth - Rotating

15

Moon Mean Earth - Inertial at J2000

16

Moon Mean Earth - Inertial at Epoch

17

Specify any CelestialObject.ReferenceFrameId

 

 

 

epoch


Description:

The TAI epoch of the input and/or output position and velocity in modified Julian date format. If both the input and output coordinate systems are referenced to an epoch, both will be defined using this epoch.

 

 

fromVector


Description:

A six-element array containing the position and velocity in the input coordinate system.

Required Size:

At least 6

 

 

lcsLongitude


Description:

When the 'fromSystem' or 'toSystem' is Local Coordinates - Longitude or Local Coordinates - Longitude/Latitude, this argument defines the longitude of the system. If both the input and output coordinate systems are referenced to a longitude, both will be defined using this longitude.

Units:

deg

Valid Range:

-360 ≤ lcsLongitude ≤ 360

 

 

 

Return Value

Type:

Array of number (size = 6)

 

 

Returns a six-element array containing the position and velocity in the output coordinate system.

 

Syntax

myArray1 = PositionVelocityConvert(myVariable1, myVariable2, myVariable3, myArray2, myVariable4);

 

 

See also

PositionVelocityConvert

Orbit Reference Frames