Commit 1324169d authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Added target name to to_isis (#362)

parent bde50a2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1474,8 +1474,9 @@ WHERE points.active = True AND measures.active=TRUE AND measures.jigreject=FALSE
            'sample':'x', 'line':'y', 'serial': 'serialnumber'}, inplace=True)
        if flistpath is None:
            flistpath = os.path.splitext(path)[0] + '.lis'
        target = config['spatial'].get('target', None)

        cnet.to_isis(df, path)
        cnet.to_isis(df, path, targetname=target)
        cnet.write_filelist(self.files, path=flistpath)

    @staticmethod
+2 −0
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ redis:

### Spatial Reference Setup ###
spatial:
    # The name of the target body that will be output in ISIS control networks.
    target: 'MARS'
    # The following two values need to be added to the database that is storing
    # the spatial information.
    #
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ redis:

### Spatial Reference Setup ###
spatial:
    target: 'EARTH'
    latitudinal_srid: 4326  # For testing we use WGS84.
    rectangular_srid: 4978
    semimajor_rad: 3396190  # in meters