Time Reference syntax...

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
matt_s6
Posts: 1
Joined: Wed Jun 24, 2009 8:27 am
Location: Spectraseis, Zurich

Time Reference syntax...

Post by matt_s6 »

... for ascii data header information editing.

Gents,
I'm loading data as single-column ascii files, with comprehensive file names for easy header definition within geopsy. However, there is one element that I haven't been able to figure out the syntax for, it is the TimeReference.

I tried various combination of dates and times separated by various characters (slashes, dashes, ...) but to no avail.

Does anyone know what is the correct syntax to be used with set header functions in geopsy to define a line such as:

TimeReference = "xxxxxx" ?

Thank you for your help,
- Mathieu
Mathieu Duclos
Project and Research Scientist
Spectraseis AG
Zurich, Switzerland
-------------------------------------
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

Hi Mathieu,

TimeReference="dd/MM/yyyy hh:mm:ss"
TimeReference="31/12/2004 23:45:01"

You must stick to the format displayed in the table.
I didn't test it under a system configured with American way of writing dates, in this case you might eventually check something like:

TimeReference="12/31/2004 23:45:01"

Putting a day index above 12 is essential in this test.

You cannot omit any of the fields:

TimeReference="12/31/2004"

Does not work. You must use instead an explicit expression

TimeReference="12/31/2004 00:00:00"
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

In the latest release (2.1.0 branch, does'nt work for earlier versions), soon available for public release you can directly load a header-less ascii file and setup header from the command line.

Here is a few hints. The complete documentation of geopsy waveform scripting engine will be soon available under a wiki.

This simply described under command line (geopsy -h) through one option:

geopsy -waveform setheader.qs textfile_to_import

'setheader.qs' contains a script for setting properties of the signal. More details are given in the wiki currently under construction: http://www.geopsy.org/wiki/index.php/Ge ... scii_files
Post Reply