fragment.pos.catalog

Syntax

Vector Access

v = fragment.pos.catalog(fg,ic<,i>)

Get the fragment position at a state. The fragment position is taken as the average position of the bodies. The fragment position in catalog ic is returned, where ic ranges from 1 to the total number of catalogs. Use the fragment.catalog function or the fragment list command to obtain the catalog information. The fragment.catalog function can be used to obtain the catalog number closest to a specified time.

Returns:

v - fragment position vector or component

Arguments:

fg - fragment pointer

ic - catalog number

i - optional vector component

Component Access

f = fragment.pos.catalog.x(fg,ic)

Get the x-component of the fragment position.

Returns:

f - x-component of the fragment position vector

Arguments:

fg - fragment pointer

ic - catalog number

f = fragment.pos.catalog.y(fg,ic)

Get the y-component of the fragment position.

Returns:

f - y-component of the fragment position vector

Arguments:

fg - fragment pointer

ic - catalog number

f = fragment.pos.catalog.z(fg,ic) (3D only)

Get the z-component of the fragment position.

Returns:

f - z-component of the fragment position vector

Arguments:

fg - fragment pointer

ic - catalog number