CHT: Implement IASPEI CSV format import tool

Bug #993140 reported by matley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Giuseppe Vallarelli

Bug Description

Design and implement an API to import into the CHT database events from a file in the IASPEI CSV format.

E.g. eqcatalogue.import_events(filepath=<>, eventsource_name=<>, format=eqcatalogue.IASPEI_CSV_V1_FORMAT)

The API import operation should be idempotent, i.e. two or more import operation from the same source should not produce duplicate rows.

If a row with the same source_key is found, then the importer update the row with the latest data and warns the user about that.

Document (on the project wiki) how the mapping between fields should be done and provide acceptance tests for this feature.

The specification of the format can be found at http://www.isc.ac.uk/gtevents/search/catalogue/csvoutput/

Sample data files in this format can be generated at http://www.isc.ac.uk/gtevents/search/catalogue/

matley (matley)
description: updated
Changed in openquake:
status: New → Opinion
matley (matley)
Changed in openquake:
assignee: nobody → Giuseppe Vallarelli (gvallarelli)
status: Opinion → New
Changed in openquake:
importance: Undecided → Medium
milestone: none → 0.8.2
status: New → In Progress
milestone: 0.8.2 → 0.8.3
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.