Jens,
Agreed C to Python is easier, but since S files are ASCII already, python can
handle it fairly easily directly.
Austin Holland already has a very nice S-file parser in Python, which he
shares, and that should probably be brought into SEISAN for the next release
(as well as integrated with ObsPy somehow if they would accept it into the
distro). THanks for sharing the code Austin!
Regards,
Paul
Jens Havskov wrote, On 3/14/14, 6:33 AM:
we have a subroutine in seisan that puts all variables in s-file into a fortran
common block and a routine to write it all out again. In SeisanExplorer it is
all put into a c-structure and the two subroutines are called from c so there
is a functionallity to read and write s-files in both fortran and c. this could
be a good starting point. i thin a c-routine wouild be easier to inegrate with
other programs than Python.
jens
On Thu, 13 Mar 2014, Austin Holland wrote:
I had started one using obspy's QUAKEML functionality but have not gotten
too far. It was also not intended to account for every possibility in
SEISAN files, just the stuff that we routinely use.
Austin
On Thursday, March 13, 2014, Ruben Luis <[email protected]> wrote:
Would be great to have a quakeml based seisan database
Sent from my iPhone
> On 13/03/2014, at 15:56, Jens Havskov
<[email protected]> wrote:
>
> branden
>
> we just hope somebody will write it..
>
> jens
>
>> On Thu, 13 Mar 2014, Branden Christensen wrote:
>>
>> Hi all:
>> Buenas tardes. Has anyone out there written any modules to
convert S-files to QuakeMl or
>> vice versa? I am about to write one but I did not want to
reinvent the wheel
>> ;)
>> Kind Regards from Panama, Branden Christensen
>> The Seismo Guys Blog:
http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing
>> list: http://www.osop.com.pa/about/osop-mailing-list/
>> OSOP
> _______________________________________________
> seisan mailing list
> [email protected]
> http://mailman.uib.no/listinfo/seisan
_______________________________________________
seisan mailing list
[email protected]
http://mailman.uib.no/listinfo/seisan
--
Austin Holland
Research Seismologist
Oklahoma Geological Survey
(405)325-8497
_______________________________________________
seisan mailing list
[email protected]
http://mailman.uib.no/listinfo/seisan
--
Paul Friberg
*ISTI == Instrumental Software Technologies, Inc.*
http://www.isti.com
Seismic Software and Services
_______________________________________________
seisan mailing list
[email protected]
http://mailman.uib.no/listinfo/seisan