obspy.core.event.ResourceIdentifier.convertIDToQuakeMLURI

ResourceIdentifier.convertIDToQuakeMLURI(authority_id='local')[source]

Converts the current resource_id to a valid QuakeML URI.

Only an invalid QuakeML ResourceIdentifier string it will be converted to a valid one. Otherwise nothing will happen but after calling this method the user can be sure that the resource_id is a valid QuakeML URI.

The resulting resource_id will be of the form
smi:authority_id/prefix/resource_id
Parameters:authority_id (str, optional) The base url of the resulting string. Defaults to "local".

This Page