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
 Ascii file import question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/19/1998 :  7:47:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there an easy way to import every nth line of an ascii file into Origin 5.0
(in order to resample the data to keep the number of data points reasonable)?

a_user

USA
0 Posts

Posted - 08/19/1998 :  7:51:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
ASCII File Import

Standard Origin does not have a skip lines feature in its ASCII import routine. This is something that a user could program with Origin 5.0 Professional. Within Standard Origin there are a number of post-import features that you might find useable:

•The Speed Mode option for Graphs under Format:Page allows you to set the number of points to display in a graph - which will automatically determine the number of points to skip for all datasets on a page. •The Skip Points option for Graphs under Format:Plot allows you to set a specific frequency (number of points to skip) for each dataset in a layer. •The Extract Worksheet Data option for Worksheets under Analysis:Extract Worksheet Data... allows you to programmatically create subsets of your data using the LabTalk scripting language. Here is a sample script written for the Extract Worksheet Data dialog that extracts specific rows of data:

mod((i-3),5)==0

Modify this code as needed:
5 Frequency (1 + number_of_points_to_skip) 3 First point (Must be less than Frequency) Note that Extract Worksheet Data can also work on a selected range.

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