Skip to content
Discussion options

You must be logged in to vote

Problem found!
MPCORB.DAT must be free of all header lines, only the pure data lines should remain.
And there have been failures in the original source code.
So here is my solution:

import datetime
import math
import pytz
import pandas as pd
from skyfield import api
from skyfield.data import mpc
from skyfield.constants import GM_SUN_Pitjeva_2005_km3_s2 as GM_SUN

local = pytz.timezone("UTC")
today = datetime.date.today()
start_date = datetime.datetime(today.year, today.month, today.day)
start_date = local.localize(start_date)
end_date = datetime.datetime(today.year, today.month, today.day + 1)
end_date = local.localize(end_date)

location = {
    "location": "Vienna",
    "location_lat": …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@heinkurz
Comment options

@EndlessDex
Comment options

@EndlessDex
Comment options

Comment options

You must be logged in to vote
1 reply
@EndlessDex
Comment options

Comment options

You must be logged in to vote
3 replies
@albertw
Comment options

@heinkurz
Comment options

@heinkurz
Comment options

Answer selected by heinkurz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants