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
 Ascii file import question

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
a_user Posted - 08/19/1998 : 7:47:00 PM
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)?
1   L A T E S T    R E P L I E S    (Newest First)
a_user Posted - 08/19/1998 : 7:51:00 PM
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.


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