This command can be used to rename channel names in NC files. To access the command right click inside the NC Editor.
First Filter
The first filter can be used to split the channel name at the separator charachter. Elements can be removed at the beginning or the end of the name. More filter of this type can be specified in the text box.
Execute
The filter is applied and the result is displayed in the Channel Name column.
If More Filters is enabled, filter can be specified in the text box, one filter in each line. Each filter has the following form:
match filter-name parameter
To disable a filter, add a comment character # at the beginning of a line.
match: In front of the filter-name an optionial search pattern can be set. see strmatch. The search pattern must end with a @ character.
Example:
es_* @ upper
All channels starting with es_ will be converted to upper case.
*_[1-3] @ lower
All channels starting with _1, _2 or _3 will be converted to lower case.
filter-name
| Name | Description |
|---|---|
| separator | Splits the channel name at a separator in tokens. separator has three parameters: Separator, Number (range 0 to 9) and action (one of the four strings: hide from right, show from right, hide from left, show from left). separator . 1 show from right
aaa.bbb => bbb
a.b.c => c
separator . 1 hide from right
aaa.bbb => aaa
a.b.c => a.b
|
| lower | Changes the case to small characters. |
| upper | Changes the case to upper characters. |
| replace | Replaces the text. Example: replace . _
aaa.bbb => aaa_bbb
TIME* @ replace TIME_ Time
TIME_1 => Time1
|
| remove | Removes characters. Example: remove $
$aaa.bbb => aaa.bbb
|
Use new names for attribute long_name and title
If this option is marked the new name is used to update the channel attributes long_name and title.
Comment
Kommentar
New filter functions can be added. See file nc_name_filter.ic.
See also
id-781728