def get_body(body, time, location=None, ephemeris=None):
 if (location is None):
  location = time.location
 cartrep = _get_apparent_body_position(body, time, ephemeris)
 icrs = ICRS(cartrep)
 if (location is not None):
  (obsgeoloc, obsgeovel) = location.get_gcrs_posvel(time)
  gcrs = icrs.transform_to(GCRS(obstime=time, obsgeoloc=obsgeoloc, obsgeovel=obsgeovel))
 else:
  gcrs = icrs.transform_to(GCRS(obstime=time))
 return SkyCoord(gcrs)

def get_body ( body , time , location = None , ephemeris = None ) : if ( location is None ) : location = time . location cartrep = _get_apparent_body_position ( body , time , ephemeris ) icrs = ICRS ( cartrep ) if ( location is not None ) : ( obsgeoloc , obsgeovel ) = location . get_gcrs_posvel ( time ) gcrs = icrs . transform_to ( GCRS ( obstime = time , obsgeoloc = obsgeoloc , obsgeovel = obsgeovel ) ) else : gcrs = icrs . transform_to ( GCRS ( obstime = time ) ) return SkyCoord ( gcrs )
get a ~astropy .