tclkoun

NAME
VERSION
SYNOPSIS
DESCRIPTION
SWEEP COMMANDS
FILES
SEE ALSO
KEYWORDS

NAME

tclkoun − access and manipulate KOUN data.

VERSION

2

SYNOPSIS

package require tclkoun 2
::radar::koun::read
fileName

DESCRIPTION

The tclkoun package provides variables and commands that access and manipulate data from KOUN sweep data. When loaded, the package creates a namespace named ::radar::koun to store variables and commands related to KOUN data.

::radar::koun::read fileName

This command reads a KOUN sweep from filename. If the first character of filename is |, the remainder of fileName is assumed to be a command whose standard output is a KOUN file. Otherwise, fileName should identify a regular file. If successful ::radar::koun::read creates a new Tcl command named RadarName_YYYYMMDDHHMMSS. This command accesses the sweep headers and data.

SWEEP COMMANDS

Each KOUN sweep loaded with ::radar::koun::read has a corresponding Tcl command that accesses sweep headers and data. The behavior of the command is determined by the first word after the command name. The following sweep commands are recognized.

sweepName file_type

Always returns "KOUN".

sweepName header arr_name

This command populates an array named arr_name with header values from KOUN sweep sweepName.

sweepName data y ?r ?b??

Returns sweep data. If call is of form: sweepName data y the command returns a list with n_rays elements, where n_rays is the number of rays in the sweep. Each element a list of bin values for type y in the corresponding ray. If call is of form: sweepName data y r the command returns a list of bin values for, type y, ray r. If call is of form: sweepName data y r b the command returns a single bin value for type y, ray r, bin b. Indeces start with 0. Type y can be an index or a type name. Use sweepName header types to get a list of types in the sweep.

sweepName to_dorade ?directory?

Exports the sweep to a DORADE sweep file. If directory is specified, the sweep files are created in that directory. Otherwise, they are created in the current directory.

FILES

libtclkoun.so

SEE ALSO

koun (3)

KEYWORDS

koun, raw product, radar