Skip to content

Commit 33ef723

Browse files
author
Michael Lee Rilee
committed
Correcting references to old pystare temporal API.
1 parent c7cf1d7 commit 33ef723

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ Basic python-based visualization for the [Spatio Temporal Adaptive Resolution En
44

55
Contact: [Michael Rilee](mike@rilee.net), Rilee Systems Technologies LLC.
66

7+
# Dependencies
8+
9+
This package depends on several packages that may not be in PyPI.
10+
11+
* STARE
12+
* meshplot
13+
14+
Conda-forge should work for installing these.
15+
716
# Acknowledgment
817

918
2018-2021 STARE development supported by NASA/ACCESS-17.

pystareplotlib/pystareplotlib.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,18 @@ def __init__(self
433433
triple = numpy.concatenate(pystare.to_temporal_triple_tai(self.tiv))
434434
# print(triple)
435435
# print(type(triple))
436-
t_triple = pystare.to_JulianTAI(triple)
436+
#old t_triple = pystare.to_JulianTAI(triple)
437+
t_triple = pystare.to_julian_date(triple,'tai')
438+
437439
elif tiv_representation =='ms':
438440
triple = numpy.concatenate(pystare.to_temporal_triple_ms(self.tiv))
439-
t_triple = pystare.to_JulianTAI(triple)
441+
#old t_triple = pystare.to_JulianTAI(triple)
442+
t_triple = pystare.to_julian_date(triple,'tai')
443+
440444
else: # 'ms-utc'
441445
triple = numpy.concatenate(pystare.to_temporal_triple_ms(self.tiv))
442-
t_triple = pystare.to_JulianUTC(triple)
446+
#old t_triple = pystare.to_JulianUTC(triple)
447+
t_triple = pystare.to_julian_date(triple,'utc')
443448

444449
self.t_lo = ( t_triple[0][0] + t_triple[1][0] ) / tiv_scale + tiv_offset
445450
self.t_mi = ( t_triple[0][1] + t_triple[1][1] ) / tiv_scale + tiv_offset

0 commit comments

Comments
 (0)