Description | Example | Return message | Group

Database

Update the satellite database from the AGI Web site, or set the default and auxiliary databases

Syntax

Database <ScenarioPath> {DBOption}

Description

The Database command enables you to update the satellite database from the AGI Web site, or set the default and auxiliary databases.

{DBOption}Description
OnlineUpdate {Update {DBNameOption} "<DirectoryPath>" | GetArchive {DBNameOption} "<DirectoryPath>" "<ArchiveDate>"} Connects to the AGI satellite database server. You must be connected to the internet to utilize this source.

The Update {DBNameOption} option obtains the latest satellite database information available.

The GetArchive {DBNameOption} obtains an older version of the database from the ArchiveDate specified.

Valid values for {DBNameOption} are All, stkSatDb, stkAllComm, stkAllTLE, and stkSatDbAll.

SetDefault {Satellite | Facility | City | Star} "<DefaultValue>"

For City, Facility or Satellite "<DefaultValue>" is the filepath of the desired default database. The filepath can be the path to a file on your local drive or the path to a file on an SDF server. See Specifying Paths for "<SDFFilePath>" syntax information.

For Star "<DefaultValue>" is the name of the name of a Star collection.

The type: {Satellite | Facility | City | Star}, is case-sensitive.

SetAuxiliary {Satellite | Facility | City} {On | Off} ["<FilePath>"] Sets the City, Facility or Satellite auxiliary database.

The Database type: {Satellite | Facility | City}, is case-sensitive.

"<FilePath>" can be the path to a file on your local drive or the path to a file on an SDF server. See Specifying Paths for "<SDFFilePath>" syntax information.

Examples

To obtain satellite database information from the AGI Web site for the database stkAllTLE:

Database * OnlineUpdate Update stkAllTLE "C:\stk\User\STKData\MyDBase"

To obtain satellite database information from the AGI Web site for all Satellite databases:

Database * OnlineUpdate Update All "C:\stk\User\STKData\MyDBase"

To obtain a version of the stkSatDb dated before 1 Jun 2000 00:00:00.00:

Database * OnlineUpdate GetArchive stkSatDb "C:\stk\User\STKDataMyDBase" "1 Jun 2000 00:00:00.00"

To use the stkAllTLE.sd database as the auxiliary Satellite database:

Database * SetAuxiliary Satellite On "C:\stk\User\STKData\MyDBase\stkAllTLE.sd"

To turn off the auxiliary Satellite database:

Database * SetAuxiliary Satellite Off

To set the stkAllComm.sd database as the default Satellite database:

Database * SetDefault Satellite "C:\stk\User\STKData\MyDBase\stkAllComm.sd"

To set the "Hipparcos 2 Mag 6" collection as the default for Stars:

Database * SetDefault Star "Hipparcos 2 Mag 6"

Return message

Group membership

This command belongs to the following group(s):

Scenarios

Version

11.6