Page 1 of 1

Using Geopsy as a file converter

Posted: Thu Oct 18, 2007 6:33 pm
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.

Posted: Sat Oct 20, 2007 4:49 pm
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:

Posted: Sat Oct 20, 2007 5:34 pm
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.

Posted: Sun Oct 21, 2007 3:03 pm
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.

Posted: Wed Nov 07, 2007 4:00 pm
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.