TSKFAC: Create Task Membership Factor

Last updated 19 Nov 97

TSKFAC creates a task factor that can be used as a masking factor in other programs. The output factor is NOT a membership mask. It is simply a NTASK- length factor of real numbers, restricted to ones and zeroes. The user specifies a task list which determines those tasks that are set to a value of 1.0.

Program Invocation

The specific syntax for program invocation varies between operating systems. This document diplays the code for the AIX version.


@codap tskfac <opt> <ssss> <TT> <TFf>

opt:     None currently supported
ssss:    The study number
TT:      Input Task Title file, required to determine number of tasks
	 and other communications region information.
TFf:     Output Task Factor file

Title Card

This card assigns a title to the output task factor.


TITLE <title>

TITLE:   cc 01-05  The literal "TITLE"
title:   cc 07-66  The output factor title

Task Cards

These cards define which tasks will have a value of one.


<task>[-<taskul>]

task:    cc 01-04  The task number to set to one.  If using a range,
		   this specifies the lower limit.
'-':     cc 05     The literal '-' if specifying a range
taskul:  cc 06-09  The upper limit task number if specifying a range.

Example

@codap tskfac - ssss tt000 tf100
   1- 7
12
  14-88
  92
95
97  - 100
 123
 133- 137
199
200
201
@EOF

This example creates a new task factor, where the values for tasks 1-7, 12, 14- 88, 92, 95, 97-100, 123, 133-137, and 199-201 will be 1.0. All other tasks (determined by the number of tasks in Task Title file tt000) will have a value of 0.0. The output factor will be named TFnnnn/FAC, where nnnn is the next available TF sequence number in file tf100.

Note that the specified task numbers may be free format within their respective fields, i.e., leading and/or trailing spaces are allowed. However, if a range is specified, the dash must be located in column five.

Back to document index