How do I use findvalue /RMD for x-value
Mike German
I have an xy wave, say y is height and x is time. How do I use the findvalue /RMD to find the height at a given time?
I have an xy wave, say y is height and x is time. How do I use the findvalue /RMD to find the height at a given time?
I assume that by xy wave you mean a 2D wave containing both height and time values (otherwise there is no need for /RMD).
You would use findvalue/RMD to search the dimension (row or column) of the 2D wave that contains the time data, then take the height from the corresponding row/column.
February 15, 2023 at 02:23 am - Permalink
Yes, a 2D wave. What would be the syntax of /RMD ?
I've tried a number of combinations and am not finding value. Also used /T = deltaX
for example
February 15, 2023 at 02:29 am - Permalink
if column 0 contains time and column 1 height, then something like
FindValue /V=(searchTime)/RMD=[][0,0] myLineFitdata
February 15, 2023 at 03:04 am - Permalink
I still can't get it to work - here is my code and debugger details
findvalue /V=(searchTime) /RMD=[][0,0] myLineFitdata
myoutput[k] = myLineFitdata(V_row)
searchTime = 3724010668.16396 (Variable)
February 15, 2023 at 03:28 am - Permalink
I skipped the /T flag in my post, but you probably need to reinsert that.
•findvalue /RMD=[][0]/V=(4) foo
•print v_value
4
•print foo[v_value][1]
6
February 15, 2023 at 03:34 am - Permalink
Looks like your screenshot is a 1D fit wave, not a 2D wave. Then you simply use the wave scaling:
print LineFit_Lat(searchTime)
Note the curved parentheses.
February 15, 2023 at 03:38 am - Permalink
Thanks Tony - that works - and so easy.
I obviously need to learn my dimensions :-)
February 15, 2023 at 03:51 am - Permalink
Is this method documented? Does it extrapolate?
February 15, 2023 at 03:54 am - Permalink
The automatically generated output from curve fitting is waveform. Execute:
so x-values are computed rather than stored.
Igor interpolates linearly, but has no way of knowing how to extrapolate.
February 15, 2023 at 06:11 am - Permalink
Mike- you have done so much with Igor that is so sophisticated, that I hesitate to suggest it... The confusion over wave scaling, waveform data vs multidimensional vs XY data suggests that you may benefit from a quick review of the Getting Started help. I find that every few years even I benefit from reviewing Getting Started, and I wrote a lot of what's in there!
February 15, 2023 at 09:25 am - Permalink
> may benefit from a quick review of the Getting Started help.
On every level of IP expertise consulting the documentation is required. I consult the documentation really often as well.
February 15, 2023 at 10:46 am - Permalink
I do as well and my insomnia is now a thing of the past.
More seriously, I do browse it to get a better understanding of what can be done when the need arises.
Andy
February 15, 2023 at 10:50 am - Permalink
In reply to Mike- you have done so much… by johnweeks
John - if I have managed to do anthing sothisticated it is because Igor allows me to do it - and there is the great group of experts to advise. I have been using Igor for a good number of years; when I was earning a living it was the tool I used for quality graphs. I used FORTRAN for number crunching - but, lathough I love programming with IGOR I am not a programmer. I retired some twelve years ago and it was not until about six or seven years ago when I became interested in Radio meteor physics and started collecting masses of data that I came back to it. The data I collect is time based parameters but with irregular time intervals so all my wave were just time or frequency or signal level etc and no real possibility of using the waveform data. As my needs developed I found through this group that some things are much easier to do with wavemodel.
So John, you are absolutely right I should and shall go and look at the Getting started help again after many years.
But I will still have plenty more question for the Forum.
Thanks again group!
February 15, 2023 at 11:08 am - Permalink
Thanks so much, Mike! I find that if I take a month off of programming I get rusty.
February 15, 2023 at 11:14 am - Permalink