satellogic / orbit-predictor

Python library to propagate satellite orbits.
MIT License
140 stars 43 forks source link

New pass predictor raises error #104

Closed astrojuanlu closed 4 years ago

astrojuanlu commented 4 years ago

(Reported by @fisadev)

from datetime import datetime
from orbit_predictor.locations import Location
from orbit_predictor.predictors.pass_iterators import SmartLocationPredictor
from orbit_predictor.sources import get_predictor_from_tle_lines
predictor = get_predictor_from_tle_lines([
    "1 42760U 17034C   19070.46618549  .00000282  00000-0  30543-4 0  9995",
    "2 42760  43.0166  56.1509 0009676 356.3576 146.0151 15.09909885 95848",
])
loc = Location(
    name='loc', 
    latitude_deg=-34.61315,
    longitude_deg=-58.37723,
    elevation_m=30,
)
list(predictor.passes_over(
    loc, 
    when_utc=datetime(2019, 1, 1, 0, 0), 
    limit_date=datetime(2019, 1, 15, 0, 0),
    aos_at_dg=0,
    max_elevation_gt=0, 
    location_predictor_class=SmartLocationPredictor
))

Fails with:

E           orbit_predictor.exceptions.PropagationError: Could not find LOS of pass with AOS 2019-01-01 16:15:01.047381 and TCA 2019-01-01 16:20:29.679634