CHT: Implement ISF bulletin format import tool

Bug #992046 reported by matley
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
matley

Bug Description

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

E.g. eqcatalogue.import_events(filepath=<>, eventsource_name=<>, format=eqcatalogue.ISF_BULLETIN_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/standards/isf/

Data file in ISF format can be generated at http://www.isc.ac.uk/iscbulletin/search/bulletin/

Tags: cht
matley (matley)
description: updated
matley (matley)
summary: - CHT: Implement ISF format import tool
+ CHT: Implement ISF bulletin format import tool
description: updated
matley (matley)
description: updated
Revision history for this message
matley (matley) wrote :

Implement an API that search on the web catalogue provided by ISC, download the output in the ISF V1 Bulletin and import it

matley (matley)
Changed in openquake:
assignee: nobody → matley (matley)
Changed in openquake:
importance: Undecided → Medium
status: New → 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.