obspy.core.event.ResourceIdentifier.getQuakeMLURI

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

Returns the resource_id as a valid QuakeML URI if possible. Does not change the resource_id itself.

>>> res_id = ResourceIdentifier("some_id")
>>> print res_id.getQuakeMLURI()
smi:local/some_id
>>> # Did not change the actual resource id.
>>> print res_id.resource_id
some_id

This Page