obspy.io.csv.core._write_csz

_write_csz(events, fname, fields='basic', fields_picks='basic', **kwargs)[source]

Write ObsPy catalog to CSZ file

param events:

catalog or list of events

param fname:

filename or file-like object to write to

param fields:

set format and header names of CSV file, see obspy.io.csv.FIELDS, you can use your own format string here, just make sure to use the pre-defined header names

param fields_picks:

set format and header names of CSV pick files, see obspy.io.csv.PFIELDS, you can use your own format string here, just make sure to use the pre-defined header names

param **kwargs:

compression and compression level can be specified see zipfile doc:

` events.write('CSZ', compression=True, compresslevel=9) `

For an example see obspy.io.csv.