Dataset listsets: Difference between revisions
Jump to navigation
Jump to search
imported>Scott (Created page with "===Purpose=== For a given field and mode list the sets available. ===Synopsis=== :[liststr, tblidx] = listsets(dso_in,fieldname,fieldmode) ===Description=== Creates a read-friend...") |
imported>Scott |
||
Line 40: | Line 40: | ||
===See Also=== | ===See Also=== | ||
[[ | [[dataset_findset|findset]],[[dataset_rmset|rmset]],[[dataset_search|search]] |
Revision as of 14:51, 25 September 2012
Purpose
For a given field and mode list the sets available.
Synopsis
- [liststr, tblidx] = listsets(dso_in,fieldname,fieldmode)
Description
Creates a read-friendly list of fields and sets in a dataset. Also returns a map back to the fields that can be used to index from list to field/set. If field name/mode empty then list all. Second output (tblidx) is a map of list value back to dataset index with columns (Value Field Mode Set) where mode and or set = 0 for header lines. Returned table has columns:
- index
- field name
- mode
- set
Example
liststr= LABEL Mode 1 Quarry [26] Mode 2 Element [17] CLASS Mode 1 Quarry [5] Set 2 [empty] Set 3 [5] ... tblidx= [ 1] 'label' [0] [0] [ 2] 'label' [1] [0] [ 3] 'label' [1] [1] [ 4] 'label' [2] [0] [ 5] 'label' [2] [1] [ 6] 'class' [0] [0] [ 7] 'class' [1] [0] [ 8] 'class' [1] [1] [ 9] 'class' [1] [2] [10] 'class' [1] [3] ...