Using Geopsy as a file converter

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
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Using Geopsy as a file converter

Post by admin »

You probably know that geopsy can read many seismic file formats and also export to some of them inside the graphical user interface. Furthermore, I added several command line options to make the same job directly from the terminal:

Code: Select all

geopsy -file toto.mseed -export toto.sac
That's all, a mini seed file is converted to a sac file. Extensions may be used to automatically select the output format, but this is not mandatory.

Code: Select all

geopsy -file toto.mseed -format SuBigEndian -export toto.sac
Export to SU with a sac extension... a bit awkward but possible!
To get the list of available file format for import:

Code: Select all

geopsy -import-formats
# File formats Geopsy can import:
  Ascii
  AsciiGeoSIG
  AsciiOneColumn
  City2
  GeopsySignal
  Gse2
  GuralpGcf
  MiniSeed
  ...
To get the list of available file format for export

Code: Select all

geopsy -export-formats
# File formats Geopsy can export:
  Ascii
  AsciiOneColumn
  GeopsySignal
  Gse2
  MultiGse2
  SacBigEndian
  ...
Guralp GCF and Mini seed were just added in the latest snapshot 20071018.
Welkin
Posts: 9
Joined: Sun Sep 09, 2007 3:20 am

Post by Welkin »

Wow, it is quite fun that I can find so many hidden functions by your post. I am interesting in gcf format input, but there are only 20071018 snap for Windows, not for Linux. :lol:
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

This is fixed, I remember that the automatic tests failed, I corrected and restarted them and probably forgot to launch the end of the script.
Welkin
Posts: 9
Joined: Sun Sep 09, 2007 3:20 am

Post by Welkin »

Thanks. Some times file format converting really waste lots of time and disk space and even more, some information will be lost and have to be added manually or by programming. So directly inputting helps a lot.
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Post by admin »

[For Windows users only]
Apparently, using it under Cygwin is somehow problematic... it works but no terminal output is available. Does anyone knows how to activate stdout in Cygwin? However under MSYS, no problem reported.
Post Reply