Skip to content

Commit

Permalink
Merge pull request #308 from NASA-Planetary-Science/data
Browse files Browse the repository at this point in the history
Update JPL Horizons URLs
  • Loading branch information
mkelley committed Dec 21, 2021
2 parents 76854fe + 66dbb2b commit ce00646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sbpy/data/ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Ephem(DataClass):
def from_horizons(cls, targetids, id_type='smallbody',
epochs=None, location='500', **kwargs):
"""Load target ephemerides from
`JPL Horizons <https://ssd.jpl.nasa.gov/horizons.cgi>`_ using
`JPL Horizons <https://ssd.jpl.nasa.gov/horizons/app.html>`_ using
`astroquery.jplhorizons.HorizonsClass.ephemerides`
Parameters
Expand Down Expand Up @@ -99,7 +99,7 @@ def from_horizons(cls, targetids, id_type='smallbody',
* For detailed explanations of the queried fields, refer to
`astroquery.jplhorizons.HorizonsClass.ephemerides` and the
`JPL Horizons documentation
<https://ssd.jpl.nasa.gov/?horizons_doc>`_.
<https://ssd.jpl.nasa.gov/horizons/manual.html>`_.
* By default, all properties are provided in the J2000.0 reference
system. Different settings can be chosen using
additional keyword arguments as used by
Expand Down Expand Up @@ -201,7 +201,7 @@ def from_horizons(cls, targetids, id_type='smallbody',

# turn epochs into astropy.time.Time and apply timescale
# convert ut1 epochs to utc
# https://ssd.jpl.nasa.gov/?horizons_doc
# https://ssd.jpl.nasa.gov/horizons/manual.html
if any(all_eph['datetime_jd'] < 2437665.5):
all_eph['datetime_jd'][all_eph['datetime_jd'] <
2437665.5] = Time(
Expand Down
2 changes: 1 addition & 1 deletion sbpy/data/phys.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Phys(DataClass):
@cite({'software: astroquery': '2019AJ....157...98G'})
def from_sbdb(cls, targetids, references=False, notes=False):
"""Load physical properties from `JPL Small-Body Database (SBDB)
<https://ssd.jpl.nasa.gov/sbdb.cgi>`_ using
<https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html>`_ using
`~astroquery.jplsbdb` for one or more targets. Builds a
`~Phys` object from the output of `'phys_par'` from
SBDB. Units are applied, where available. Missing data are
Expand Down

0 comments on commit ce00646

Please sign in to comment.