Set

General Mission Analysis Tool

Set

Set — Configure a resource from a data interface

Script Syntax

Set destination source (options)

Description

The Set command retrieves data from source according to options and populates destination. Time systems, time formats, state types, and coordinate systems are automatically converted to those required by destination.

See Also: FileInterface, Spacecraft

Options

Option Description
destination

The resource to populate from the data source.

Accepted Data Types

Spacecraft

Allowed Values

any Spacecraft resource

Default Value

(None)

Required

yes

Interfaces

GUI, script

source

The data source from which to obtain data.

Accepted Data Types

FileInterface

Allowed Values

any FileInterface resource

Default Value

(None)

Required

yes

Interfaces

GUI, script

options

Options specific to the chosen source. See the following sections for details.

The following options are available when source is a FileInterface and the Format is “TVHF_ASCII”:

Data={keyword[, keyword, ...]}

Comma-separated list of values to retrieve from the file. Defaults to 'All', which retrieves all available elements. The available keywords are documented in the “TVHF_ASCII” section of the FileInterface reference.

GUI

The Set GUI is a very simple text box that lets you type the command directly. By default, it has no arguments, so you must finish the command yourself.

Examples

Read a TVHF file and use it to configure a spacecraft.

          Create Spacecraft aSat
Create FileInterface tvhf
tvhf.Filename = 'statevec.txt'
tvhf.Format = 'TVHF_ASCII'

BeginMissionSequence

Set aSat tvhf
        

Read a TVHF file and use it to set only the epoch and the Cartesian state.

          Create Spacecraft aSat
Create FileInterface tvhf
tvhf.Filename = 'statevec.txt'
tvhf.Format = 'TVHF_ASCII'

BeginMissionSequence

Set aSat tvhf (Data = {'Epoch', 'CartesianState'})