Problem in Loading of ascii files

This forum is dedicated to discuss all problems and suggestions related to the use of geopsy database and its plugins (array processing, H/V,...).
Post Reply
raj
Posts: 14
Joined: Sat Feb 23, 2008 2:29 pm

Problem in Loading of ascii files

Post by raj »

Whenever I try to load the .ascii file, a message appears to fill up the header information correctly. After modification, the graphic file is loadd.

But it does not load automatically. At each step, header information is to be entered manually.


Please help.
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

Yes this normal behavior. With ascii files there is no standard way to store header information. You have to enter it manually.

Once all information are properly setup, you can save your work in a geopsy database (file *.gpy). This file contains all header information and a link to your original ascii files. You can quickly recover your files with their attached header by opening this .gpy file again and again.

Now, to enter the header information, you can automate this task. Import all you files and put them in a table. Then, you can go to menu 'Edit/Set headers'. There you can enter any arbitrary formula to setup header. For instance:

Code: Select all

DeltaT=0.005;                         // Set sampling frequency to 200 Hz
iComp=(ViewerIndex-1) DIV 3;          // Assumes that signals are ordered Z,N,E
Component=if(iComp==0, "Vertical",
          if(iComp==1, "North".
                       "East"));      // Set component according to iComp(0,1 or 2).
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

In the future, it will be possible to define your own mask for extracting header information from the first lines of the ascii file, for instance, out of comment lines like:

Code: Select all

#SAMPLING=200 Hz
# STARTING TIME=2009-01-23 00:45:12.678
...
Keywords will be completely arbitrary. This feature is under development. Masks will constructed interactively by the user or can be loaded from mask files previously saved.
Post Reply