Commit b4b37c37 authored by Adam Paquette's avatar Adam Paquette
Browse files

Fixed system to cooperate with isis programs.

parent f55cbbfd
Loading
Loading
Loading
Loading

bin/isis2socet

0 → 100644
+17 −0
Original line number Diff line number Diff line
#!/usr/bin/env python
import argparse
import os

def parse_args():
    parser = argparse.ArgumentParser()

    # Add args here

    return parser.parse_args()


def main(args):
    print('Do some stuff')

if __name__ == '__main__':
    main(parse_args())
+6 −5
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ def parse_args():
    parser.add_argument('at_file', help='Path to the .atf file for a project.')
    parser.add_argument('cub_file_path', help='Path to cube files related to ipf files.')
    parser.add_argument('cub_ipf_map', help='Path to map file for all ipfs and cubes.')
    parser.add_argument('target_name', help='Name of the target body used in the control net')
    parser.add_argument('--outpath', help='Directory for the control network to be output to.',
                                        required = False)

@@ -86,7 +87,7 @@ def main(args):
    serial_dict = serial_numbers(image_dict, cub_path)

    # creates the control network
    cn.to_isis(os.path.join(outpath, cnet_out + '.net'), socet_df, serial_dict)
    cn.to_isis(os.path.join(outpath, cnet_out + '.net'), socet_df, serial_dict, targetname = args.target_name)

if __name__ == '__main__':
    main(parse_args())
+615 −22

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ class IsisStore(object):
        header_bytes = find_in_dict(pvl_header, 'HeaderBytes')
        point_start_byte = find_in_dict(pvl_header, 'PointsStartByte')
        version = find_in_dict(pvl_header, 'Version')

        if version == 2:
            point_attrs = [i for i in cnf._CONTROLPOINTFILEENTRYV0002.fields_by_name if i != 'measures']
            measure_attrs = [i for i in cnf._CONTROLPOINTFILEENTRYV0002_MEASURE.fields_by_name]