New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.shapefile: add support for writing origin uncertainties to shapefile #1701

Closed
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@megies
Member

megies commented Mar 6, 2017

This PR adds functionality to write event origin uncertainties to shapefile format (e.g. to use in GIS applications).

ToDo:

  • example / tutorial
  • test
  • write uncertainties into shapefile table for reuse in GIS applications
  • other information on the event would be useful to have in the shapefile database table as well, especially origin quality metrics, e.g. number of stations used in location, azimuthal gap, ...

+DOCS

Usage example:

from obspy import read_events
cat = read_events('my_catalog.xml')
cat.write('/tmp/tmp_my_events.shp', format='SHAPEFILE',
          error_ellipses={'filename': '/tmp/tmp_my_events_errors.shp', 'epsg': 31468})

Potential improvement:

  • also write origin uncertainties to feature tables (so that filtering by error margins in GIS applications is possible)
  • automatic lookup of appropriate UTM zone, based on event locations in catalog (or raise exception if catalog is too wide-spread so that a single geocentric zone will not work)

@megies megies added this to the 1.1.0 milestone Mar 6, 2017

@megies

This comment has been minimized.

Show comment
Hide comment
@megies

megies Mar 21, 2017

Member

Maybe should also add writing columns with hypocenter uncertainties to the shapefile, for use in GIS applications..

Done.

Member

megies commented Mar 21, 2017

Maybe should also add writing columns with hypocenter uncertainties to the shapefile, for use in GIS applications..

Done.

@megies megies self-assigned this Mar 21, 2017

@megies megies modified the milestones: 1.2.0, 1.1.0 Jul 27, 2017

megies added some commits Mar 6, 2017

shapefile: add info about origin uncertainty to shapefile table
(currently does not handle origin uncertainty of type "confidence
ellipsoid")
@megies

This comment has been minimized.

Show comment
Hide comment
@megies

megies Oct 17, 2017

Member

Closing this one. The whole approach was a bit awkward anyway and uncertainties are now in the main shapefile table, so applications can use that information for plotting.

Member

megies commented Oct 17, 2017

Closing this one. The whole approach was a bit awkward anyway and uncertainties are now in the main shapefile table, so applications can use that information for plotting.

@megies megies closed this Oct 17, 2017

@megies

This comment has been minimized.

Show comment
Hide comment
@megies
Member

megies commented Oct 18, 2017

@megies megies deleted the shapefile_error_ellipses branch Oct 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment