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 for Programming
 LabTalk Forum
 trailing zeroes causing problems on file import

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
amorris Posted - 02/22/2006 : 02:43:55 AM
Origin Version (Select Help-->About Origin): 7.5SR6
Operating System:winXP

Hi everyone,

I'm trying to import and analyse a series of files that have the following format:

EIG_N=05_g=X.XXXX_rot=0.5698_3LL.dat

where X.XXX is a number of the form 1.000 or 4.6493. I know that this is a rather ugly file name, but please bear with me anyway. Suppose that I have thousands of these files which represent the variable g incrementing from 0.0000 to 9.0000 in steps of 0.0001. This is not always the case, just an example.

My problem is that I want to loop over the variable g in some file import script and then perform some analysis. When I try to import a file with trailing zeroes such as

EIG_N=05_g=1.0000_rot=0.5698_3LL.dat,

my loop variable g=1.0000 is represented in labtalk as 1 and origin tried to import the file EIG_N=05_g=1_rot=0.5698_3LL.dat.

Is there any way to get around this?

Any help would be greatly appreciated,

Alexis
2   L A T E S T    R E P L I E S    (Newest First)
amorris Posted - 02/22/2006 : 12:04:13 PM
Thanks Mike! I knew that there must be some easy way to do this, but for some reason I couldn't find it in the help files.
Mike Buess Posted - 02/22/2006 : 08:13:45 AM
Use $(g,.4) to force 4 digits beyond decimal point...

g=1;
%A=$(g,.4)_rot;
%A=;
1.0000_rot

Mike Buess
Origin WebRing Member

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