Extracting data from 2D wave
TRK
Is there an easy way, other than copy and paste from 2D wave, to extract the data that belongs to a particular row but the entire column from a two dimensional wave (56*71). The display command allows me to trace the curve of the row but does not allow to extract the data.
Thanks.
MatrixOp yourRow = row(your2Dwave,20)
is one fast way to get the data in a new wave. Other methods includeDuplicate/O/RMD=[20][] your2Dwave,yourRow
, or using a wave assigment.August 6, 2017 at 12:30 pm - Permalink
TRK
Thanks.
Well, the MatrixOp command works fine for me. For command using Duplicate it says unknown flag and cursor points out at RMD.
Actually, I was trying to fit a curve setting the cursor between the two points of a given row. I can trace the curve for the new set of data obtained using MatrixOP command similar to that obtained by using the display command for the 2D wave. However I don't see the name of the wave (obtained from MatrixOp) in a drop down menu of y data to fit the curve, but the name appears in the root folder. I can do quick fit but it takes the entire set of data. Any suggestions.
August 6, 2017 at 01:10 pm - Permalink
I think the problem you describe is because the result of MatrixOp is a 1 row, multi column 2D wave. To see it in the list, it needs to be a 1D wave. You need to redimension the wave. Use the dialog box for this, it's more intuitive than the command line. Data > Redimension Waves... (at least that is the menu setup in IP7).
I think if you use MatrixTranspose, that will still give a 2D wave (multi row and 1 column) which will need redimensioning (you need multirow, 0 columns).
August 6, 2017 at 02:11 pm - Permalink
TRK
I use 6.37.
It works now after redimensioning the wave. Thank you so much.
August 6, 2017 at 02:52 pm - Permalink
MatrixOP/O result = row(data, 5)^t
print result
August 7, 2017 at 09:01 am - Permalink