Multiscale rock-physics templates for gas detection in carbonate reservoirs