pystare.temporal.from_iso_strings#

from_iso_strings(iso_strings, forward_res=48, reverse_res=48, scale='TAI', stare_type=1)#

Converts an iso strings to STARE temporal index values

Parameters:
iso_strings: array-like of iso timestrings

iso 8601 timestring

forward_res: int. Valid range is 0..48

The forward resolution (c.f coarsest_resolution_finer_or_equal_ms())

reverse_res: int. Valid range is 0..48

The reverse resolution (c.f. coarsest_resolution_finer_or_equal_ms()

scale: str

time scale. Currently only TAI

stare_type: int

#TODO what is the stare_type?

Returns:
tiv: 1D numpy array of ints

STARE temporal index values

Examples

>>> time_strings = ['2021-08-26T17:03:56.6']
>>> pystare.from_iso_strings(time_strings, forward_res=20, reverse_res=18, scale='TAI')
array([2276038620409631817])