ISIS 3 Application Documentation
|Printer Friendly View | TOC | Home|
The application cnetsplit splits the input control network into user specified number of control networks.
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:
The input control network whose control points will be divided among the output control networks. This file is not modified by cnetsplit.
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 .
The control points from the input control network will be split among this number of output files.
Split a control network with 8 points into 3 control networks.
This example will show how a control network is split when the number of output networks does not evenly divide the number points in the input control network.
cnetsplit cnet=controlNet.net onet_prefix=outputNetSplit??? num_output_files=3
In this example, cnetsplit will split the file controlNet.net into 3 output files with name pattern outputNetSplit???