obsplus.events.json module

Module for converting obspy object to json format

obsplus.events.json.cat_to_dict(catalog)[source]

Convert an event object to a dictionary.

Return type:

dict

obsplus.events.json.cat_to_json(catalog)[source]

Convert events (catalog or event) to json string.

Return type:

str

obsplus.events.json.dict_to_cat(cjson)[source]

Convert a dictionary to a catalog

Return type:

Catalog

obsplus.events.json.json_to_cat(cjson)

Convert a dictionary to a catalog

Return type:

Catalog