The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Gridding random xyz data - wrong algorithm?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

klaus.joehnk

Germany
3 Posts

Posted - 03/08/2001 :  12:00:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
(Using Origin 6.0 patch 4)
Trying to grid a randomly spaced xyz dataset with prescribed distance (number of columns/rows according to range of x and y columns) produces useless results. The range used internally to grid the data does not correspond to the range in the data.

To show the effect try the following example:
Generate Matrix of size col=10 row=14, set the values of x-first=0, y-first=0, x-last=9,y-last=13. Now set matrix values to lets say i+j (or any other value).
Convert this matrix to xyz-worksheet: Edit - Convert to worksheet - xyz columns.

The error can be seen when converting this worksheet back to matrix.
Select z column and: Edit - Convert to matrix - random xyz
Choose col=10 and row=14 (the original values) and ...
The values will be different from the original matrix.
Miraculously the dimension of the newly created matrix is now changed to y-last=14 (this should be 13), athough the range of values in the worksheet is only up to 13?!
Trying this conversion game (matrix to worksheet and back to matrix) with different dimensions (or simply change the x-last and y-last values to 10 and 14 and everything works fine) shows that such a change in the internally choosen range does occur only sporadic. But what are the conditions?.

Since I need the gridded matrix values with a prescribed distance between grid points it would be fantastic if the gridding dialog in Origin would allow not only to set the number of columns and rows but the distances between grid points!

Laurie

USA
404 Posts

Posted - 03/09/2001 :  4:42:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I was able to reproduce the problem as described. The bug occurs in the LabTalk script which gets executed when you select Edit:Convert to Matrix:Random XYZ.

For now you can get around this problem by setting the correct X and Y first and last in the Matrix Dimensions dialog after the matrix is created. Then run the following script from the Script Window (Window:Script Window):

mat.xyz2m()

We will address the problem for a future release of the software.

Thank you,
Laurie

OriginLab Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000