Jump to content

group range combine


breadbox

Recommended Posts

  • 2 weeks later...

still trying to figure the syntax on this one.

tried a couple more options in this file.

any syntax help on this would be appreciated. tried to look up in the help but was unable to find anything that led me down the right path.

the "[]" seemed like it was useful but its not quite doing what i need it to do.

GroupCombine_V2.hipnc

Link to comment
Share on other sites

In the Group SOP that just uses wildcards (copyGroup*), you have the "Not Equal" icon selected. If you change that to the "Equal" option does that not do what you want? If I do that then it matches your manually constructed group string.

Link to comment
Share on other sites

In the Group SOP that just uses wildcards (copyGroup*), you have the "Not Equal" icon selected. If you change that to the "Equal" option does that not do what you want? If I do that then it matches your manually constructed group string.

Bah dumb mistake on my part. I think that does it. But would still be interested in ranges of groups. so the wildcard might not work in that case. say I had 100 groups and wanted to only group 20-50. would the brackets be the way to do that?

Link to comment
Share on other sites

I took your example and bumped it up to 100 groups as you mentioned then did that. :)

In your existing file trying copyGroup[1-3] should work as expected.

I dunno I'm sure its just me.. coming from such a respected source as yourself.

but here is a screen of whats happening. I hate to bother people with such simple questions. I'm trying I promise.

Groups.png

Link to comment
Share on other sites

  • 3 years later...

Hate to bump this ancient thread but as mentioned, using "group[10-40]" only gives you group 1, 0 and 4

If you're lucky that is...It seems unreliable so I suppose it's not the right method.

So, How do you use a range of groups?

I have group0 to group100 and I want to blast 0-49.

Or could opdigits be used here...how do you set a range for that?

Cheers.

Link to comment
Share on other sites

  • 5 months later...
Guest mantragora

If you can promote group membership into attribute, than maybe you could use string matching to select groups?

 

For example, below will group every group from 20-69 but not 23 or 40:

strmatch("2?, 3?, 4?, 5?, 6?, ^23, ^40", $CLASS)

if you put it into Group by Expression field.

 

EDIT: This seems to work too:

strmatch("[2346]?, ^23, ^40", $CLASS)
Edited by fântastîque Mântragorîè
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...