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
 All Forums
 Origin Forum
 Origin Forum
 Gridding random xyz data - wrong algorithm?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
klaus.joehnk Posted - 03/08/2001 : 12:00:15 PM
(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!

1   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 03/09/2001 : 4:42:35 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000