Skip to content
Snippets Groups Projects
Commit 247ab6eb authored by acpaquette's avatar acpaquette Committed by jlaura
Browse files

PRadius Fix (#54)

* Small updates to get the scripts working.

* Fixed pradius calculations, and made some small changes.
parent 453c0fdd
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import argparse
import os
import math
import pandas as pd
......@@ -15,7 +16,7 @@ def parse_args():
# Add args here
parser.add_argument('cnet_file', help='Path to an isis control network.')
parser.add_argument('e_radius', type=float, help='The semimajor radius of a given target.')
parser.add_argument('p_radius', type=float, help='The semiminor radius of a given target.')
parser.add_argument('eccentricity', type=float, help='The eccentricity of a given target.')
parser.add_argument('cub_path', help='Path to the cub files associated with a control network.')
parser.add_argument('cub_extension', help='Extension for all cubes.')
parser.add_argument('cub_list', help='Path to a list file of all cubes being used')
......@@ -31,7 +32,7 @@ def main(args):
df = cn.from_isis(args.cnet_file)
e_radius = args.e_radius
p_radius = e_radius * (1 - args.p_radius)
p_radius = e_radius * math.sqrt((1 - (args.eccentricity ** 2)))
cub_path = args.cub_path
extension = args.cub_extension
......
......@@ -21,3 +21,4 @@ from . import data
from . import examples
from . import geofuncs
from . import utils
from . import spatial
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment