ensemble⚓︎
Descriptive description.
Ensemble
⚓︎
Bases: Ensemble
Class for organizing/initializing misc. variables and simulator for an ensemble-based inversion run. Inherits the PET ensemble structure
__init__(keys_da, keys_en, sim)
⚓︎
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
keys_da
|
dict
|
Options for the data assimilation class
|
required |
keys_en
|
dict
|
Options for the ensemble class
NB: If keys_en is empty dict, it is assumed that the prior info is contained in keys_da. The merged dict keys_da|keys_en is what is sent to the parent class. |
required |
sim
|
callable
|
The forward simulator (e.g. flow) |
required |
check_assimindex_sequential()
⚓︎
Check if assim. indices is given as a 2D list as is needed in sequential updating. If not, make it a 2D list
check_assimindex_simultaneous()
⚓︎
Check if assim. indices is given as a 1D list as is needed in simultaneous updating. If not, make it a 2D list with one row.
compress_manager(data=None, vintage=0, aug_coeff=None)
⚓︎
Compress the input data using wavelets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
data to be compressed
If data is |
None
|
|
vintage
|
int
|
the time index for the data |
0
|
aug_coeff
|
bool
|
|
None
|
local_analysis_update()
⚓︎
Function for updates that can be used by all algorithms. Do this once to avoid duplicate code for local analysis.
set_observations()
⚓︎
Generate the perturbed observed data ensemble