obspy.core.event.resourceid.ResourceIdentifier.get_quakeml_id
- ResourceIdentifier.get_quakeml_id(authority_id='local')[source]
Returns a resource id with a valid QuakeML URI.
Only an invalid QuakeML ResourceIdentifier string it will be converted to a valid one. Otherwise the returned resource id will be identical to the original.
The new resource id will have the same referred object as the original.
- The resulting 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"
.- Returns:
A new ResourceIdentifier instance with a valid quakeml uri.