|
tclkoun − access and manipulate KOUN data. |
|
2 |
|
package require tclkoun 2 |
|
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. |
|
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. |
|
libtclkoun.so |
|
koun (3) |
|
koun, raw product, radar |