Ian, Good to know that this got fixed in v8.2. And I believe you are correct about the version differences- I just tested it under v8.2 and it works like it should, which it wasn't in the version I was using last summer - can't recall if that was v8.0 or 8.1. I had contacted support at that time about this very issue, and Hasnein gave me the workaround of filling the string channel prior to running an expression on it, which solved the problem.
Thanks again for the insight. Brian J. On Thu, Mar 20, 2014 at 11:02 PM, Ian MacLeod <[email protected]>wrote: > Chris and Brian, > > > > Apologies, I missed that Chris asked about the Channel Math GX, and my > response was for applying an expression directly to a channel. The > Channel Math GX does accept strings inside the expression, and this works > for me: > > > > C0=x>0?"a":"zzz", where C0 is a string channel, which is then filled with > "a" or "zzz". > > > > I did not need to pre-fill the output channel though, but maybe this is > something that works in my version (8.2, yet to be released). Check with > the help desk and they can confirm if it works in 8.1. Brian's suggestion > should certainly work. > > > > Cheers, > > Ian > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Ian MacLeod > *Sent:* Thursday, March 20, 2014 10:49 PM > > *To:* Geosoft Oasis montaj and Target > *Subject:* RE: [geonet] Manipulating String Values > > > > Hi Chris, > > > > I tried what Brian suggested by creating a string channel named "class" > and filling it with something, but I could not get it to work with > something like: > > > > =x>0?"a":"b" > > > > This gives me a syntax error on the strings. I expect I misunderstand > Brian, or I'm doing something wrong. > > > > But if I create string channels named "aaa" and "bbb" (names are not > important), then fill "aaa" with "a" and "bbb" with "b", I can use these > as the result of an expression in the "class" channel like this: > > > > =x>0?aaa:bbb > > > > This gives me "a" (the contents of the "aaa" channel) wherever the "x" > channel is greater than 0, and "b" wherever "x" is less than or equal to 0. > > > > I hope this helps. > > > > Cheers, > > Ian > > > > *From:* [email protected] > [mailto:[email protected]<[email protected]>] > *On Behalf Of *Brian Junck > *Sent:* Thursday, March 20, 2014 8:36 PM > *To:* Geosoft Oasis montaj and Target > *Subject:* Re: [geonet] Manipulating String Values > > > > Chris, > > You can use the Channel Math GX in the normal way to populate a string > channel- the catch is that the string channel has to already have data > values in it. If the channel is empty, then nothing will populate. > > > > So if you create a string channel, copy the contents from another channel > that is fully populated to that new string channel, then run your > expression in the channel math GX, it should populate. > > -Brian J. > > > > > > On Thu, Mar 20, 2014 at 8:04 PM, Chris Vaughan <[email protected]> wrote: > > Is there syntax in the Channel Math GX that will allow one to place a > String, say a letter, in a String channel cell based upon the numerical > value in another channel? > > > > Regards, Chris > > > > --- > > Forum archives can be accessed here: > http://lyris.geosoft.com/read/?fourm=geonet > > You are currently subscribed to geonet as: [email protected]. > > To subscribe or unsubscribe from any of our forums, select the User Forum > selection on the Geosoft Community page: > http://www.geosoft.com/support/community > > > > > -- > -Brian J. > > --- > > Forum archives can be accessed here: > http://lyris.geosoft.com/read/?fourm=geonet > > You are currently subscribed to geonet as: [email protected]. > > To subscribe or unsubscribe from any of our forums, select the User Forum > selection on the Geosoft Community page: > http://www.geosoft.com/support/community > > --- > > Forum archives can be accessed here: > http://lyris.geosoft.com/read/?fourm=geonet > > You are currently subscribed to geonet as: [email protected]. > > To subscribe or unsubscribe from any of our forums, select the User Forum > selection on the Geosoft Community page: > http://www.geosoft.com/support/community > > --- > > Forum archives can be accessed here: > http://lyris.geosoft.com/read/?fourm=geonet > > You are currently subscribed to geonet as: [email protected]. > > To subscribe or unsubscribe from any of our forums, select the User Forum > selection on the Geosoft Community page: > http://www.geosoft.com/support/community > -- -Brian J. --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community
