Skip to main content

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

Metadata

Release files for systemstoolkit 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for systemstoolkit 0.0.2
File Size Uploaded
systemstoolkit-0.0.2.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for systemstoolkit 0.0.2
File Interpreter ABI Platform
systemstoolkit-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / systemstoolkit-0.0.2.tar.gz

Download URL systemstoolkit-0.0.2.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
733f511fe3fa42fc9aa2aca364d698f4650b19e074599b026fd9b2aa140d7a32
BLAKE2b-256 checksum
How to use checksums
de63ae10fb4bd5c6ae5965984cf1a86f6a528343ce265b7fcdf015c575ea5fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / systemstoolkit-0.0.2-py3-none-any.whl

Download URL systemstoolkit-0.0.2-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
021e09ecbd3c21c1948d3ad09e73f32b7f2c2d19cc3e5deddd8fdff91f95b228
BLAKE2b-256 checksum
How to use checksums
944ff0f2201904f098f40d3bd322586d3d0ccea4e0b2aa12a6ee02731a78ad4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page