Skip to content

Commit

Permalink
Merge pull request #10 from MWATelescope/backup_url
Browse files Browse the repository at this point in the history
Added a backup url for the planets ephemeris download
  • Loading branch information
andreww5au authored May 1, 2020
2 parents 2140216 + 2d76408 commit 9e72efd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mwa_pb/skyfield_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def init_data():
else:
datadir = '/tmp'
skyfield_loader = si.Loader(datadir, verbose=False, expire=True)
PLANETS = skyfield_loader('de421.bsp')
try:
PLANETS = skyfield_loader('de421.bsp')
except:
PLANETS = skyfield_loader('https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/a_old_versions/de421.bsp')
TIMESCALE = skyfield_loader.timescale(builtin=True) # TODO - set back to True when new version released
S_MWAPOS = PLANETS['earth'] + MWA_TOPO # with replacement for USNO server.

Expand Down

0 comments on commit 9e72efd

Please sign in to comment.