Skip to main content

Helper functions for Systems ToolKit (STK)

Project description

systemstoolkit

Create an Attitude File

In [1]: import systemstoolkit as stk
In [2]: import numpy as np
In [3]: time = np.datetime64("2020-01-02 03:04:05") + np.arange(10).astype("timedelta64[s]")
In [4]: time
Out[4]:
array(['2020-01-02T03:04:05', '2020-01-02T03:04:06',
       '2020-01-02T03:04:07', '2020-01-02T03:04:08',
       '2020-01-02T03:04:09', '2020-01-02T03:04:10',
       '2020-01-02T03:04:11', '2020-01-02T03:04:12',
       '2020-01-02T03:04:13', '2020-01-02T03:04:14'],
      dtype='datetime64[s]')
In [5]: data = np.array([[0,10,20]]*10, dtype='float32')
In [6]: data
Out[6]:
array([[ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.],
       [ 0., 10., 20.]], dtype=float32)
In [7]: afile = stk.attitude_file(time[0:10], data[0:10], "YPRAngles")
In [8]: print(afile)
stk.v.11.0
BEGIN Attitude
ScenarioEpoch                  02 Jan 2020 03:04:05.000
MessageLevel                   Warnings

TimeFormat                     EpSec

AttitudeTimeYPRAngles
            0.0        0.000000       10.000000       20.000000
            1.0        0.000000       10.000000       20.000000
            2.0        0.000000       10.000000       20.000000
            3.0        0.000000       10.000000       20.000000
            4.0        0.000000       10.000000       20.000000
            5.0        0.000000       10.000000       20.000000
            6.0        0.000000       10.000000       20.000000
            7.0        0.000000       10.000000       20.000000
            8.0        0.000000       10.000000       20.000000
            9.0        0.000000       10.000000       20.000000

END Attitude

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

systemstoolkit-0.0.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

systemstoolkit-0.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file systemstoolkit-0.0.2.tar.gz.

File metadata

  • Download URL: systemstoolkit-0.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for systemstoolkit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 733f511fe3fa42fc9aa2aca364d698f4650b19e074599b026fd9b2aa140d7a32
MD5 eb0b1da6a57a09efb99232da91c07fb6
BLAKE2b-256 de63ae10fb4bd5c6ae5965984cf1a86f6a528343ce265b7fcdf015c575ea5fbe

See more details on using hashes here.

File details

Details for the file systemstoolkit-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: systemstoolkit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for systemstoolkit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 021e09ecbd3c21c1948d3ad09e73f32b7f2c2d19cc3e5deddd8fdff91f95b228
MD5 f89612633db03504a555912f52dd2abd
BLAKE2b-256 944ff0f2201904f098f40d3bd322586d3d0ccea4e0b2aa12a6ee02731a78ad4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page