Revision 470d4aa5204283b1287e544b0c03287f342c6078 authored by Miriam Cabero on 24 April 2020, 09:15:20 UTC, committed by GitHub on 24 April 2020, 09:15:20 UTC
1 parent 4e6ed62
sky_location.py
# Copyright (C) 2016 Collin Capano
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""This modules provides classes for evaluating sky distributions in
right acension and declination.
"""
from pycbc.distributions import angular
class UniformSky(angular.UniformSolidAngle):
"""A distribution that is uniform on the sky. This is the same as
UniformSolidAngle, except that the polar angle varies from pi/2 (the north
pole) to -pi/2 (the south pole) instead of 0 to pi. Also, the default
names are "dec" (declination) for the polar angle and "ra" (right
ascension) for the azimuthal angle, instead of "theta" and "phi".
"""
name = 'uniform_sky'
_polardistcls = angular.CosAngle
_default_polar_angle = 'dec'
_default_azimuthal_angle = 'ra'
__all__ = ['UniformSky']
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...