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
 How to spatially reduce a dataset?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rdeleu

2 Posts

Posted - 12/19/2023 :  10:30:35 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a dataset with XYXY vectors. The density of the vectors is way too high in some areas of the profile (see screenshot) which makes it unreadable.


I tried reducing my dataset using a random distribution, it is better, but the density remains too high near the bottom of the profile and becomes too low in the other parts:


I need to find a way to reduce the dataset differently depending on the density, so that the number of vectors is evenly distributed throughout the profile (along X and Y axis). Is there any way to do that? I tried to do this upstream in the Paraview software from where the data come from, but no success.

Thanks!

YimingChen

1651 Posts

Posted - 12/19/2023 :  12:28:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please check the attached project file. One way is to use the 1D Binning App to categorize each vector according to its XY coordinates.
https://www.originlab.com/FileExchange/details.aspx?fid=489

Next, group the arrows and compute the average value for each location group to obtain evenly spaced data along the X and Y axes.


https://my.originlab.com/ftp/forum_and_kbase/Images/EvenlySpaceXY.opju

James
Go to Top of Page

rdeleu

2 Posts

Posted - 12/21/2023 :  08:37:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks YimingChen! I didn't know anything about binning.

Turns out my version of OriginPro does not support the 1D Binnning app, but I learned that it has a 2D binning already included! So after a few tries, I ended up using this to compute average values of X and Y velocities for each 2D XY classes. After a few tweaks with the method, it worked like a charm, here is the result:

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