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
 Importing date from ASCII

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
harzi Posted - 07/20/2012 : 10:58:11 AM
Hi,
have some problems importing ASCII files with dates. Here is a snippet of the ASCII with the first columns being


Year MM DD hh mm ss.###
1981 1 1 4 13 55.710 3301565 33.25517 -115.96750 5.680 2.260 318 57 -168 37 39 18 0.17 0 0.00 C
1981 1 1 5 20 14.440 3301566 34.18600 -117.29733 6.490 2.370 0 49 -94 33 32 26 0.00 0 0.00 D
1981 1 1 5 39 56.460 3301567 34.18433 -117.29600 6.750 1.600 326 55 -163 44 47 13 0.00 0 0.00 D
1981 1 1 8 23 18.080 3301570 34.00633 -117.16200 15.350 1.880 348 70 -161 42 45 13 0.19 0 0.00 D


How can I correctly import these dates? I did not succeed with custom data formats like:
YYYY' 'MM' 'dd' 'hh' 'mm' 'ss.###'

Best regards,
Martin
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 07/20/2012 : 3:35:23 PM
Hi harzi,

As it seems the fields in each record has the fixed record, you can specify the length instead of
using delimiters. As shown in the screenshot below, be aware that the first column's designation is
"D" to indicate the date format to be used.

If you use the Delimiter mode, SPACES within the date would have conflict with the actual delimiters.



Hope this helps.

--Hideo Fujii
Originlab
harzi Posted - 07/20/2012 : 11:03:15 AM
Just again the ASCII, some spaces were missing due to HTML. I replaced spaces with underscores:


YYYY MM dd hh mm ss.###
1981__1__8_12_35_24.140__3301753__33.97283_-117.14516__16.010__1.450__357__78__172__41__38___13__0.00____0__0.00_C_
1981__1__8_14_52_14.490__3301757__33.92983_-118.68083___8.590__3.200__124__30__126__30__23___44__0.22____0__0.00_B_
1981__1__9__2_46__5.530__3301782__34.19333_-117.24450___3.670__2.050__104__81_-168__32__39___24__0.05____0__0.00_C_
1981__1__9_13_25_39.430__3301796__34.19200_-117.24500___3.720__2.110__279__66_-170__23__36___28__0.04____0__0.00_B_
1981__1_11__2_23_13.150__3301832__34.31167_-116.48700___1.470__1.900__183__90__165__49__48___10__0.09____0__0.00_D_
1981__1_11__8_44_44.540__3301841__34.07200_-116.67367__11.660__2.240__325__89_-168__29__27___33__0.15____0__0.00_B_
1981__1_11__9_45_23.610__3301842__33.11017_-115.60817___9.190__2.170__154__82__152__35__38___21__0.02____0__0.00_C_
1981__1_11_13_54_16.410__3301844__34.32500_-116.44800___3.870__1.700__185__81_-151__46__46___10__0.09____0__0.00_D_

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