Comment 0 for bug 1163276

Revision history for this message
Damiano Monelli (monelli) wrote :

To facilitate users in browsing hazard results generated by oq-engine, we need to better organize the hazard results when they are serialized to xml.

For each calculation a folder has to be generated, with the following structure:

- job_id:
             - hazard_result_type1:
                                                  - hazard_result_logic_tree_id1.xml
                                                  - hazard_result_logic_tree_id2.xml
                                                  ….
                                                  - hazard_results_mean.xml
                                                  - hazard_results_quantile_quantile_level1.xml
                                                  - hazard_results_quantile_quantile_level2.xml
             - hazard_result_type2:
                                                     ….

             - hazard_result_type3:
                                                    ….

For instance, for a classical PSHA calculation that requires hazard curves, hazard maps and uhs the output folder should look like (considering a source model logic tree containing a single source model with ID = 1, and a GSIM logic tree with two gmpes for a single tectonic region type with ID=1 and ID=2):
- job_1:
             - hazard_curves:
                                          - hazard_curves_1_1.xml
                                          - hazard_curves_1_2.xml
                                          - hazard_curves_mean.xml
                                          - hazard_curves_quantile_0.1.xml
                                          - hazard_curves_quantile_0.9.xml
             - hazard_map:
                                          - hazard_map_1_1.xml
                                          - hazard_map_1_2.xml
                                          - hazard_map_mean.xml
                                          - hazard_map_quantile_0.1.xml
                                          - hazard_map_quantile_0.9.xml
             - uhs:
                                          - uhs_1_1.xml
                                          - uhs_1_2.xml
                                          - uhs_mean.xml
                                          - uhs_quantile_0.1.xml
                                          - uhs_quantile_0.9.xml