import brahe as bh
bh.initialize_eop()
client = bh.celestrak.CelestrakClient()
passes = bh.location_accesses(
bh.PointLocation(-122.4194, 37.7749, 0.0), client.get_sgp_propagator(catnr=25544, step_size=60.0), bh.Epoch.now(),
bh.Epoch.now() + 24 * 3600.0, bh.ElevationConstraint(min_elevation_deg=10.0),
)
print("Upcoming passes for ISS over San Francisco in the next 24 hours:")
for p in passes:
print(
f"Start: {p.t_start}, End: {p.t_end}, Max Elevation: {p.elevation_max:.2f} deg"
)