![]() ![]() This should be simple using FindValue, but I am again getting an error because of the text wave. I need to fill in the abundance values for each formula in that sample. I now need to create a "sample abundance" wave for each sample with the same number of points as my unique master list of formulas. ![]() Step 1, check.Ī little further clarification on the second part. I now have a concatenated master list with unique formula names. If you had access to the Igor Pro 9 beta, it's possible that the new TextHistogram operation would be useful here. We'd also need the data waves (or some way to generate fake data). It might help if you provided enough code so we could actually execute the code. The sample code you provided looks ok if the wave named sample is a text wave. h2o and H2O are different) you'll need to change the 3rd parameter to CmpStr from 0 to 1.įor your second task I don't understand what you're trying to do. ![]() Note that if you were using Igor 8 or later you could replace the sort, extract, and wave assignment with a simple call to FindDuplicates/RTĪlso note that if you want to treat molecular formulas that use different cases as different (eg. Make /O /N= ( numpnts (twUniqueIndexes ) ) / T uniqueStrings Make /n= 100 / T tw = num2istr ( enoise ( 15 ) )Įxtract /INDX /O tw, twUniqueIndexes, ( ( p = 0 ) || CmpStr (tw, tw, 0 ) != 0 ) I get an error using the store string variable, but if I put parentheses around "store" won't it just look for the word "store" and not the indexed string value from the text wave?Īny assistance for either of these problems is greatly appreciated. I have created a string variable and assigned it to index of my master text wave, but it keeps giving me an error when I use that string variable as the FindValue TEXT. FindValue/TEXT= is asking me to put in the actual string I want it to search for, but I want it to index through the master text wave (in a for loop) and look for one string at a time. Normally I would use FindValue, but I am struggling because of the text wave. Now that I have created my master text wave with all the formulas identified in each of my samples, I need to populate 11 numeric waves (one for each sample) with the abundance associated with the formula. I know how to do this for numeric waves, but can't figure out how to do it for a text wave. I need to create one master text wave that concatenates all 11 text waves and removes the duplicates. Task 1: I have 11 separate text waves that contain different molecular formulas. They seem simple, but they have foiled me all morning. I have two tasks I need to complete with text waves (which I've never figured out how to work with very well in Igor).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |