Skip to content

Spatial Cross-Correlation in GMFs and Related Issues #3607

@g-weatherill

Description

@g-weatherill

A recent PR (#3545) related to issue #3544 introduced spatial cross-correlation into the oq-engine for shakemap applications.

Briefly, spatial cross-correlation is a generalised form of spatial correlation for application when multiple IMTs are required and the correlations between IMTs at the same site and at different sites needs to be taken into account. When implementing this it is no longer possible to build or treat each IMT field separately in the simulation.

The implementation of spatial cross-correlation in #3545 hard-codes one particular approach. However, there are a growing number of models in the literature, some may need to be constructed differently from the approach implemented here, and depending on application it may be necessary to support more of them. Furthermore, implicit within a spatial cross-correlation model is the property that for two different IMTs located at the same site, the correlation should collapse to the known cross-correlation between IMTs. This can be a useful property to consider for many applications as it opens up the eventual possibility of being able to run vector hazard analyses.

To this end it may be beneficial to refactor the correlation model objects to support the more general cases when one wishes to consider spatial correlation, cross-correlation and spatial cross-correlation, whilst still permitting the possibility of running the calculation with only the spatial correlation and not the cross-correlation. This would need some additional changes to the GMFComputer to support this case.

Additionally:

  1. For various reasons, many spatial cross-correlation models apply only to the total standard deviation, as they are derived by considering the total residual only and not by explicitly separating our the inter-event residual correlation. OpenQuake's current approach of raising an error when applying spatial correlation to a GMPE that does not have inter- an intra-event standard deviations, rather than just applying the spatial correlation to the total residual, was never actually necessary, as it would have not have been a problem to apply the correlation to the total residual, given that the inter-event residual is constant for a given IMT. This behaviour should be changed anyway and both spatial correlation and spatial cross-correlation should be permitted when the GMPE returns total standard deviation. Depending on the spatial cross-correlation model it should only apply to the total residual in any case.

  2. Memory and computation is a big problem for spatial cross-correlation. At the moment the calculation of a spatially correlated field of ground motions requires the application of cholesky factorisation to the full correlation Nsites by Nsites correlation matrix. This holds true for spatial cross-correlation (other methods are available in the literature but each has various cost-benefits) but with the problem that the correlation matrix to which the cholesky factorisation applies is now on the order of (NIMTs * NSites) by (NIMTs * NSites), e.g. for 10,000 sites and 3 IMTs the spatial cross-correlation matrix is 30,000 by 30,000. It is easy to see that this will eventually cause computational problems with RAM.

  3. For cholesky factorisation to work the correlation matrix must be positivie-definite. If the cross-correlation model has been developed correctly then this should be implicit; however, depending on the IMTs and the interpolations that are applied (or the sub-set of sites that are selected) it is possible to run into cases where positive definiteness cannot be guaranteed. An elegant way to deal with these cases would be necessary.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions