Skip to content

Commit

Permalink
Addessing issue #4986
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Dec 12, 2024
1 parent 0af1600 commit 4a568c4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bin/pycbc_make_sky_grid
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ from scipy.spatial.transform import Rotation as R
import pycbc
from pycbc.detector import Detector
from pycbc.io.hdf import HFile
from pycbc.types import angle_as_radians


def spher_to_cart(sky_points):
Expand All @@ -36,17 +37,20 @@ def cart_to_spher(sky_points):

parser = argparse.ArgumentParser(description=__doc__)
pycbc.add_common_pycbc_options(parser)
parser.add_argument('--ra', type=float,
parser.add_argument('--ra', type=angle_as_radians,
help="Right ascension (in rad) of the center of the external trigger "
"error box")
parser.add_argument('--dec', type=float,
"error box. Use the rad or deg suffix to specify units, otherwise "
"radians are assumed.")
parser.add_argument('--dec', type=angle_as_radians,
help="Declination (in rad) of the center of the external trigger "
"error box")
"error box. Use the rad or deg suffix to specify units, otherwise "
"radians are assumed.")
parser.add_argument('--instruments', nargs="+", type=str, required=True,
help="List of instruments to analyze.")
parser.add_argument('--sky-error', type=float, required=True,
parser.add_argument('--sky-error', type=angle_as_radians, required=True,
help="3-sigma confidence radius (in rad) of the external trigger error "
"box")
"box. Use the rad or deg suffix to specify units, otherwise radians "
"are assumed.")
parser.add_argument('--trigger-time', type=int, required=True,
help="Time (in s) of the external trigger")
parser.add_argument('--timing-uncertainty', type=float, default=0.0001,
Expand Down

0 comments on commit 4a568c4

Please sign in to comment.