def get_sun_rise_set_transit(self, times, method='<STR_LIT>', **kwargs):
if method == '<STR_LIT>':<EOL><INDENT>result = solarposition.sun_rise_set_transit_ephem(<EOL>times, self.latitude, self.longitude, **kwargs)<EOL><DEDENT>elif method == '<STR_LIT>':<EOL><INDENT>result = solarposition.sun_rise_set_transit_spa(<EOL>times, self.latitude, self.longitude, **kwargs)<EOL><DEDENT>elif method == '<STR_LIT>':<EOL><INDENT>sr, ss, tr = solarposition.sun_rise_set_transit_geometric(<EOL>times, self.latitude, self.longitude, **kwargs)<EOL>result = pd.DataFrame(index=times,<EOL>data={'<STR_LIT>': sr,<EOL>'<STR_LIT>': ss,<EOL>'<STR_LIT>': tr})<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>.format(method))<EOL><DEDENT>return result<EOL>
Calculate sunrise, sunset and transit times.

Parameters
----------
times : DatetimeIndex
    Must be localized to the Location
method : str, default 'pyephem'
    'pyephem', 'spa', or 'geometric'

kwargs are passed to the relevant functions. See
solarposition.sun_rise_set_transit_<method> for details.

Returns
-------
result : DataFrame
    Column names are: ``sunrise, sunset, transit``.