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, and stkSatDbAll.

SetDefault {Satellite | Facility | City | Star} "<DefaultValue>" For City, Facility or Satellite "<DefaultValue>" is the filepath of the desired default database.

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} ["<Filename>"] Sets the City, Facility or Satellite auxiliary database.

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

Example

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"

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Scenarios

Version

9.2.1

STK Programming Interface 11.0.1