Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


cnetsplit

Printer Friendly View | TOC | Home

The application cnetsplit splits the input control network into user specified number of control networks.

Overview Parameters Example 1

Description

The application cnetsplit splits the input control network into a user specified number of control networks with the user specified output name. A possible use of this application would be to allow extremely large control networks to be split, then further processing could be divided among multiple computers. The application, "cnetmerge" can then be used to merge the individual control networks back into a single large network. The application log will display statistics for the input ControlNet.

The input control network keyword values for Description, NetworkId, and Target Keywords will be copied to each output control network. The DateTime and UserName keywords will be created new for the output control networks. The output control networks are filled from smallest to largest output file name from the first points in the input control network to the last.

We can denote the number of control points in the input file by n and the number of output files to be created is by k. Then, denote the remainder of n/k by R . If R is not zero, then, the first R files will have one more point than the last k-R files. Otherwise, if R = 0, i.e. if the number of output files evenly divides the number of points in the input control network, then each of the output files will have the same number of points.

Errors thrown by cnetsplit will include the following:

  • No question marks in the ONET_PREFIX string.
  • More than one set of question marks in the ONET_PREFIX string.
  • Not enough question marks for the specified number of output files.
  • Number of output files exceeds the number of control points in the intput control network.


Categories


History

Sharmila Prasad2010-11-03 Original version
Sharmila Prasad2010-12-21 Updated to make the app compatible for binary cnet
Sharmila Prasad2011-07-29 changed ONET_FORMAT to ONET_PREFIX
Jeannie Backer2011-10-03 Added appTests, improved error message, added documentation.
Jeannie Backer2016-04-22 Modified to set the new control net's target and radii by using the input control net's values. References #3892
Jesse Mapel2018-07-06 Removed calls to set control net target radii because they are no longer needed by the control network. Fixes #5457.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:09
X

Files: CNET


Description

The input control network whose control points will be divided among the output control networks. This file is not modified by cnetsplit.

Type filename
File Mode input
Filter *.net
Close Window
X

Files: ONET_PREFIX


Description

This string will be used to create unique output file names. It should contain a set of question marks ("?") where the file number will be placed. The string should not have question marks anywhere else. For each output file, the question marks will be replaced with a number from one to the number of output files. For example, if the user sets the pattern to ONET_PREFIX="ControlNet????" and NUM_OUTPUT_FILES=999, then cnetsplit will create 999 files with file names "ControlNet0001.net" through "ControlNet0999.net". Note: If there are not enough "?"s for the number of output files to be created during this run, the user will be thrown an error .

Type string
Close Window
X

Options: NUM_OUTPUT_FILES


Description

The control points from the input control network will be split among this number of output files.

Type integer
Minimum 2 (inclusive)
Close Window