Closed sangchengfang closed 1 month ago
Thank you for reporting! For the first example it seems there is a compilation issue with fomosto_qseis_2006a. Can you please try to recompile that? Also there is a new version out in the meanwhile fomosto_qseis_2006b that you may want to try. You would need to set in the seismic_config.gf_config.version = "2006b" to use that.
The second example I will need to investigate- it can indeed be due to the update- I havent run the tutorial in a while- thank you for your patience. I will get back to you.
Thanks for your reply and suggestions! For example 1, I did not try fomosto_qseis_2006, but set the version to 2006b and it works. I was able to run this example. However, I ran into new problems related to plotting. I can run this command
beat plot FullMT_nont waveform_fits --nensemble=100
The result is waveforms_-1_max_100_0.pdf.
When I ran
beat plot FullMT_nont waveform_fits --reference
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using MTSource for 1 sources for event --- !pf.Event
lat: 29.07
lon: 34.73
time: '1995-11-22 04:15:26.200000048'
depth: 8000.0
name: '112295A'
magnitude: 7.20583885303153
region: 'ARAB REPUBLIC OF EGYPT'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: -0.43283071
mee: 0.65741974
mdd: -0.22458903
mne: 0.63839719
mnd: 0.50698292
med: 0.02063122
strike1: 294.09064689577235
dip1: 77.25911269444555
rake1: -148.53160423717637
strike2: 196.4032557270442
dip2: 59.39114178630978
rake2: -14.847482440839393
moment: 0.999999992919433
magnitude: -6.033333335383367
duration: 22.0
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/FullMT_nont/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 20
seismic - INFO Initialising seismic wavemap for "slowest" ...
seismic - INFO The waveform defined in "slowest 1" config is not included in the optimization!
plotting.seismic - INFO Drawing Waveform fits ...
heart - INFO Did not find custom arrival times.
heart - INFO Using theoretical arrival times for "any_P_0"
plotting.common - INFO Non-Toeplitz noise structure: Using TestPoint for Covariance!
heart - INFO Did not find custom arrival times.
heart - INFO Using theoretical arrival times for "any_P_0"
seismic - INFO Retrieving seismic data-covariances with structure "non-toeplitz" for any_P_0 ...
seismic - INFO Initialising weights ...
seismic - INFO Updating data-covariances ...
heart - INFO Did not find custom arrival times.
heart - INFO Using theoretical arrival times for "any_P_0"
seismic - INFO Retrieving seismic data-covariances with structure "non-toeplitz" for any_P_0 ...
seismic - INFO Not updating seismic velocity model-covariances because number of model variations is too low! < 5
seismic - INFO Updating weights of wavemap any_P_0
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/seismic.py", line 1125, in draw_seismic_fits
event_figs = seismic_fits(problem, stage, po)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/seismic.py", line 828, in seismic_fits
bvar_reductions = composite.get_variance_reductions(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/seismic.py", line 609, in get_variance_reductions
hp = get_hypervalue_from_point(point, tr, counter, hp_specific=hp_specific)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 31, in get_hypervalue_from_point
hp = point[hp_name][counter(hp_name)]
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
IndexError: index 1 is out of bounds for axis 0 with size 1
When I ran
beat plot FullMT_nont stage_posteriors --reference --stage_number=-1 --format='png'
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using MTSource for 1 sources for event --- !pf.Event
lat: 29.07
lon: 34.73
time: '1995-11-22 04:15:26.200000048'
depth: 8000.0
name: '112295A'
magnitude: 7.20583885303153
region: 'ARAB REPUBLIC OF EGYPT'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: -0.43283071
mee: 0.65741974
mdd: -0.22458903
mne: 0.63839719
mnd: 0.50698292
med: 0.02063122
strike1: 294.09064689577235
dip1: 77.25911269444555
rake1: -148.53160423717637
strike2: 196.4032557270442
dip2: 59.39114178630978
rake2: -14.847482440839393
moment: 0.999999992919433
magnitude: -6.033333335383367
duration: 22.0
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/FullMT_nont/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 20
seismic - INFO Initialising seismic wavemap for "slowest" ...
seismic - INFO The waveform defined in "slowest 1" config is not included in the optimization!
plotting.marginals - INFO Plotting "pdf"
config - INFO not solving for depth, got fixed at 8.0
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 137, in get_context
candidate: T | None = cls.get_contexts()[-1]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 504, in __new__
model = Model.get_context()
^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 142, in get_context
raise TypeError(f"No {cls} on context stack")
TypeError: No <class 'pymc.model.core.Model'> on context stack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 41, in init_uniform_random
dist = Uniform(**kwargs)
^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 506, in __new__
raise TypeError(
TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/marginals.py", line 880, in draw_posteriors
problem.varnames + problem.hypernames + problem.hierarchicalnames + ["like"]
^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 355, in hypernames
self.init_hyperparams()
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 421, in init_hyperparams
hyperparams[hp_name] = init_uniform_random(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 45, in init_uniform_random
kwargs.pop("transform")
KeyError: 'transform'
The command
beat plot FullMT_nont correlation_hist --reference --stage_number=-1 --format='png' --varnames='mee, med, mdd, mnn, mnd, mne, north_shift, east_shift, magnitude'
ran successfully. The result is The code may be running but there are some problems with the plot functions of BEAT. This is the summary of this example. summary.txt I hope this is helpful to you.
I also tried example 3 and it works. This is the summary of this example. summary.txt But I was only able to run this command to plot the result
beat plot Laquila correlation_hist --format=png --varnames=east_shift,north_shift,depth,length,width,strike,dip,rake,slip
This is the result and this figure seems plausible.
The other three plotting commands give me many error messages, which look similar to the failed plot commands of example 1. So I gusse the major problems may relate to plotting of BEAT. By the way, I have installed Kite in my system.
The commands and corresponding error messages are listed here for you.
beat plot Laquila scene_fits
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using RectangularSource for 1 sources for event --- !pf.Event
lat: 42.29
lon: 13.35
time: '2009-04-06 01:32:49.190000057'
depth: 12000.0
name: '200904060132A'
magnitude: 6.343080192483292
region: 'CENTRAL ITALY'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: 1.43e+18
mee: 1.87e+18
mdd: -3.3e+18
mne: 1.77e+18
mnd: -1.43e+18
med: 2.6900000000000003e+17
strike1: 120.23408298515041
dip1: 54.240869089580485
rake1: -112.81739742081386
strike2: 335.98575923255856
dip2: 41.58440373860804
rake2: -61.69749587601104
moment: 3.6696131948749036e+18
magnitude: 6.343080192483292
duration: 7.0
/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`.
warnings.warn(
geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Initialising corrections ...
heart - INFO Setting up Ramps correction for Laquila_dscxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_dscxn for Euler Pole
heart - INFO Not correcting Laquila_dscxn for Strain Rate
heart - INFO Setting up Ramps correction for Laquila_ascxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_ascxn for Euler Pole
heart - INFO Not correcting Laquila_ascxn for Strain Rate
geodetic - INFO Number of geodetic data points: 419
geodetic - INFO Initialising geometry geodetic composite ...
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 35
plotting.geodetic - INFO Drawing SAR misfits ...
backend - INFO Loading multitrace from /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/geometry/stage_-1
geodetic - INFO Evaluating config for Ramps corrections for datasets...
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 137, in get_context
candidate: T | None = cls.get_contexts()[-1]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 504, in __new__
model = Model.get_context()
^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 142, in get_context
raise TypeError(f"No {cls} on context stack")
TypeError: No <class 'pymc.model.core.Model'> on context stack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 41, in init_uniform_random
dist = Uniform(**kwargs)
^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 506, in __new__
raise TypeError(
TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/geodetic.py", line 1147, in draw_scene_fits
figs = scene_fits(problem, stage, po)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/geodetic.py", line 503, in scene_fits
problem.init_hierarchicals()
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 599, in init_hierarchicals
composite.init_hierarchicals(self.config.problem_config)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/geodetic.py", line 395, in init_hierarchicals
] = init_uniform_random(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 45, in init_uniform_random
kwargs.pop("transform")
KeyError: 'transform'
beat plot Laquila scene_fits --plot_projection=latlon
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using RectangularSource for 1 sources for event --- !pf.Event
lat: 42.29
lon: 13.35
time: '2009-04-06 01:32:49.190000057'
depth: 12000.0
name: '200904060132A'
magnitude: 6.343080192483292
region: 'CENTRAL ITALY'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: 1.43e+18
mee: 1.87e+18
mdd: -3.3e+18
mne: 1.77e+18
mnd: -1.43e+18
med: 2.6900000000000003e+17
strike1: 120.23408298515041
dip1: 54.240869089580485
rake1: -112.81739742081386
strike2: 335.98575923255856
dip2: 41.58440373860804
rake2: -61.69749587601104
moment: 3.6696131948749036e+18
magnitude: 6.343080192483292
duration: 7.0
/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`.
warnings.warn(
geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Initialising corrections ...
heart - INFO Setting up Ramps correction for Laquila_dscxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_dscxn for Euler Pole
heart - INFO Not correcting Laquila_dscxn for Strain Rate
heart - INFO Setting up Ramps correction for Laquila_ascxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_ascxn for Euler Pole
heart - INFO Not correcting Laquila_ascxn for Strain Rate
geodetic - INFO Number of geodetic data points: 419
geodetic - INFO Initialising geometry geodetic composite ...
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 35
plotting.geodetic - INFO Drawing SAR misfits ...
backend - INFO Loading multitrace from /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/geometry/stage_-1
geodetic - INFO Evaluating config for Ramps corrections for datasets...
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 137, in get_context
candidate: T | None = cls.get_contexts()[-1]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 504, in __new__
model = Model.get_context()
^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 142, in get_context
raise TypeError(f"No {cls} on context stack")
TypeError: No <class 'pymc.model.core.Model'> on context stack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 41, in init_uniform_random
dist = Uniform(**kwargs)
^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 506, in __new__
raise TypeError(
TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/geodetic.py", line 1147, in draw_scene_fits
figs = scene_fits(problem, stage, po)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/geodetic.py", line 503, in scene_fits
problem.init_hierarchicals()
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 599, in init_hierarchicals
composite.init_hierarchicals(self.config.problem_config)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/geodetic.py", line 395, in init_hierarchicals
] = init_uniform_random(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 45, in init_uniform_random
kwargs.pop("transform")
KeyError: 'transform'
beat plot Laquila waveform_fits --nensemble=100
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using RectangularSource for 1 sources for event --- !pf.Event
lat: 42.29
lon: 13.35
time: '2009-04-06 01:32:49.190000057'
depth: 12000.0
name: '200904060132A'
magnitude: 6.343080192483292
region: 'CENTRAL ITALY'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: 1.43e+18
mee: 1.87e+18
mdd: -3.3e+18
mne: 1.77e+18
mnd: -1.43e+18
med: 2.6900000000000003e+17
strike1: 120.23408298515041
dip1: 54.240869089580485
rake1: -112.81739742081386
strike2: 335.98575923255856
dip2: 41.58440373860804
rake2: -61.69749587601104
moment: 3.6696131948749036e+18
magnitude: 6.343080192483292
duration: 7.0
/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`.
warnings.warn(
geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Initialising corrections ...
heart - INFO Setting up Ramps correction for Laquila_dscxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_dscxn for Euler Pole
heart - INFO Not correcting Laquila_dscxn for Strain Rate
heart - INFO Setting up Ramps correction for Laquila_ascxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_ascxn for Euler Pole
heart - INFO Not correcting Laquila_ascxn for Strain Rate
geodetic - INFO Number of geodetic data points: 419
geodetic - INFO Initialising geometry geodetic composite ...
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 35
plotting.seismic - INFO Drawing Waveform fits ...
backend - INFO Loading multitrace from /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/geometry/stage_-1
geodetic - INFO Evaluating config for Ramps corrections for datasets...
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 137, in get_context
candidate: T | None = cls.get_contexts()[-1]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 504, in __new__
model = Model.get_context()
^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 142, in get_context
raise TypeError(f"No {cls} on context stack")
TypeError: No <class 'pymc.model.core.Model'> on context stack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 41, in init_uniform_random
dist = Uniform(**kwargs)
^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 506, in __new__
raise TypeError(
TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/seismic.py", line 1125, in draw_seismic_fits
event_figs = seismic_fits(problem, stage, po)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/seismic.py", line 786, in seismic_fits
problem.init_hierarchicals()
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 599, in init_hierarchicals
composite.init_hierarchicals(self.config.problem_config)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/geodetic.py", line 395, in init_hierarchicals
] = init_uniform_random(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 45, in init_uniform_random
kwargs.pop("transform")
KeyError: 'transform'
~/master/research/code/Inversion/beat/exp_scf Py beat 22:28:55
❯ beat plot Laquila stage_posteriors --stage_number=-1
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using RectangularSource for 1 sources for event --- !pf.Event
lat: 42.29
lon: 13.35
time: '2009-04-06 01:32:49.190000057'
depth: 12000.0
name: '200904060132A'
magnitude: 6.343080192483292
region: 'CENTRAL ITALY'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: 1.43e+18
mee: 1.87e+18
mdd: -3.3e+18
mne: 1.77e+18
mnd: -1.43e+18
med: 2.6900000000000003e+17
strike1: 120.23408298515041
dip1: 54.240869089580485
rake1: -112.81739742081386
strike2: 335.98575923255856
dip2: 41.58440373860804
rake2: -61.69749587601104
moment: 3.6696131948749036e+18
magnitude: 6.343080192483292
duration: 7.0
/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`.
warnings.warn(
geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Initialising corrections ...
heart - INFO Setting up Ramps correction for Laquila_dscxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_dscxn for Euler Pole
heart - INFO Not correcting Laquila_dscxn for Strain Rate
heart - INFO Setting up Ramps correction for Laquila_ascxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_ascxn for Euler Pole
heart - INFO Not correcting Laquila_ascxn for Strain Rate
geodetic - INFO Number of geodetic data points: 419
geodetic - INFO Initialising geometry geodetic composite ...
seismic - INFO Loading seismic data for event 0 from: /home/scf/master/research/code/Inversion/beat/exp_scf/Laquila/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 35
plotting.marginals - INFO Plotting "pdf"
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 137, in get_context
candidate: T | None = cls.get_contexts()[-1]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 504, in __new__
model = Model.get_context()
^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/model/core.py", line 142, in get_context
raise TypeError(f"No {cls} on context stack")
TypeError: No <class 'pymc.model.core.Model'> on context stack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 41, in init_uniform_random
dist = Uniform(**kwargs)
^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/pymc/distributions/distribution.py", line 506, in __new__
raise TypeError(
TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scf/miniforge3/envs/beat/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/apps/beat.py", line 1957, in command_plot
plotting.plots_catalog[plot](problem, po)
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/plotting/marginals.py", line 880, in draw_posteriors
problem.varnames + problem.hypernames + problem.hierarchicalnames + ["like"]
^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 355, in hypernames
self.init_hyperparams()
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/problems.py", line 421, in init_hyperparams
hyperparams[hp_name] = init_uniform_random(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scf/miniforge3/envs/beat/lib/python3.11/site-packages/beat/models/base.py", line 45, in init_uniform_random
kwargs.pop("transform")
KeyError: 'transform'
I hope what I present here is clear and helpful to you. Thanks again for your reply.
The first error is related to the fact that you can plot --reference only with dataset_specific_residual_noise=False` the other stuff is related to me introducing a bug with the latest maintenance release. Will fix that and update the release. Will let you know.
Hi @sangchengfang can you please install the current master branch from github and try if that resolves your problems? Locally I could reproduce your errors and could resolve them. Still its good to double check,... Thanks!
Hi, sorry for the reply. Thanks for your efforts to solve my problems. I have been testing the latest version of BEAT for the last few days. The previous problems have been solved. But I got new problems with the last step of example 1, i.e. the repeat of example 1 with the noise structure set to non-toeplitz.
When I ran
beat sample FullMT_nont
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using MTSource for 1 sources for event --- !pf.Event
lat: 29.07
lon: 34.73
time: '1995-11-22 04:15:26.200000048'
depth: 8000.0
name: '112295A'
magnitude: 7.20583885303153
region: 'ARAB REPUBLIC OF EGYPT'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: -0.43283071
mee: 0.65741974
mdd: -0.22458903
mne: 0.63839719
mnd: 0.50698292
med: 0.02063122
strike1: 294.09064689577235
dip1: 77.25911269444555
rake1: -148.53160423717637
strike2: 196.4032557270442
dip2: 59.39114178630978
rake2: -14.847482440839393
moment: 0.999999992919433
magnitude: -6.033333335383367
duration: 22.0
seismic - INFO Loading seismic data for event 0 from: /work/csang/exp/FullMT_nont/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 20
seismic - INFO Initialising seismic wavemap for "slowest" ...
seismic - INFO The waveform defined in "slowest 1" config is not included in the optimization!
models - INFO ... Building model ...
config - INFO not solving for depth, got fixed at 8.0
models - INFO Initialised hyperparameter h_any_P_0_Z with size 10
models - INFO Initialised hyperparameter h_any_P_0_T with size 10
models - INFO Initialized 20 hyperparameters in total!
seismic - INFO Seismic optimization on:
duration, east_shift, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time
heart - INFO Did not find custom arrival times.
heart - INFO Using theoretical arrival times for "any_P_0"
seismic - INFO Retrieving seismic data-covariances with structure "non-toeplitz" for any_P_0 ...
seismic - INFO Initialising weights ...
seismic - INFO Preparing data of "any_P_0" for optimization
heart - INFO Did not find custom arrival times.
heart - INFO Using theoretical arrival times for "any_P_0"
seismic - INFO Initializing synthesizer for "any_P_0"
seismic - INFO Using all sources for wavemap any_P_0 !
models - INFO Model building was successful!
models - INFO Using "bin" backend to store samples!
models - INFO ... Initiate Sequential Monte Carlo ...
n_chains=2000, tune_interval=10, n_jobs=100, proposal_distribution: MultivariateNormal,
metropolis - INFO Creating initial population for 2000 chains ...
Sampling: [duration, east_shift, h_any_P_0_T, h_any_P_0_Z, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time]
pymc.sampling.forward - INFO Sampling: [duration, east_shift, h_any_P_0_T, h_any_P_0_Z, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time]
metropolis - INFO Compiling model graph ...
metropolis - INFO Initializing proposal distribution ...MultivariateNormal
metropolis - INFO Time for proposal covariance init: 0.022191
models - INFO Compilation time: 5.248945
models.base - INFO ... Starting SMC ...
backend - INFO Removing previous sampling results ... /work/csang/exp/FullMT_nont/geometry/stage_0
backend - INFO Found no sampling results under /work/csang/exp/FullMT_nont/geometry/stage_0
backend - INFO Init new trace!
smc - INFO Sample initial stage: ...
smc - INFO Beta: 0.000000 Stage: 0
sampler - INFO Initialising 2000 chain traces ...
sampler - INFO Serial time per sample: 0.008421
sampler - INFO Chunksize per worker is 20
sampler - INFO Data to be memory shared:
sampler - INFO No data to be memshared!
sampler - INFO Sampling ...
sampler - INFO Worker 11: Finished 4 / 20 chains
...... (redundancy lines are omitted here)
sampler - INFO Worker 45: Finished 20 / 20 chains
parallel - INFO
Feierabend! Done with the work!
backend - INFO Loading multitrace from /work/csang/exp/FullMT_nont/geometry/stage_0
smc - INFO Updating Covariances ...
Traceback (most recent call last):
File "/home/csang/miniforge3/envs/beat_dev/bin/beat", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main
globals()["command_" + command](args)
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/apps/beat.py", line 1068, in command_sample
sample(step, problem)
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/models/base.py", line 262, in sample
smc_sample(
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/sampler/smc.py", line 494, in smc_sample
map_pt = step.get_map_end_points()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/sampler/smc.py", line 288, in get_map_end_points
return self.bij.rmap(self.array_population[idx, :])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/pymc/blocking.py", line 105, in rmap
raise TypeError("`array` must be a `RaveledVars` type")
TypeError: `array` must be a `RaveledVars` type
In short, I cannot reproduce the last figure of example 1, but I can reproduce other steps of example 1. Attached is my config file for example 1. FullMT_config.zip
For example 2, my results do not seem right. The beach ball and probability distributions are not good, but I did not find the problems. So I need some help to reproduce the example. Attached is my config file, the log file, and the results for example 2.
for example 3 All steps run successfully. But when I want to plot the InSAR data fitting with
beat plot Laquila scene_fits
and
beat plot Laquila scene_fits --plot_projection=latlon
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
models - INFO Using RectangularSource for 1 sources for event --- !pf.Event
lat: 42.29
lon: 13.35
time: '2009-04-06 01:32:49.190000057'
depth: 12000.0
name: '200904060132A'
magnitude: 6.343080192483292
region: 'CENTRAL ITALY'
catalog: 'gCMT'
moment_tensor: !pf.MomentTensor
mnn: 1.43e+18
mee: 1.87e+18
mdd: -3.3e+18
mne: 1.77e+18
mnd: -1.43e+18
med: 2.6900000000000003e+17
strike1: 120.23408298515041
dip1: 54.240869089580485
rake1: -112.81739742081386
strike2: 335.98575923255856
dip2: 41.58440373860804
rake2: -61.69749587601104
moment: 3.6696131948749036e+18
magnitude: 6.343080192483292
duration: 7.0
/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`.
warnings.warn(
geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Initialising corrections ...
heart - INFO Setting up Ramps correction for Laquila_dscxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_dscxn for Euler Pole
heart - INFO Not correcting Laquila_dscxn for Strain Rate
heart - INFO Setting up Ramps correction for Laquila_ascxn
heart - INFO Masking data for Ramps estimation!
heart - INFO Not correcting Laquila_ascxn for Euler Pole
heart - INFO Not correcting Laquila_ascxn for Strain Rate
geodetic - INFO Number of geodetic data points: 419
geodetic - INFO Initialising geometry geodetic composite ...
seismic - INFO Loading seismic data for event 0 from: ./Laquila/seismic_data.pkl
seismic - INFO Initialising seismic wavemap for "any_P" ...
heart - INFO Consistent number of datasets and targets in any_P_0 wavemap!
heart - INFO Number of seismic datasets for wavemap: any_P_0: 35
plotting.geodetic - INFO Drawing SAR misfits ...
backend - INFO Loading multitrace from ./Laquila/geometry/stage_-1
geodetic - INFO Evaluating config for Ramps corrections for datasets...
geodetic - INFO Evaluating config for Euler Pole corrections for datasets...
geodetic - INFO No Euler Pole correction!
geodetic - INFO Evaluating config for Strain Rate corrections for datasets...
geodetic - INFO No Strain Rate correction!
geodetic - INFO Initialized 6 hierarchical parameters.
geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_dscxn ...
geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_ascxn ...
geodetic - INFO Not updating geodetic velocity model-covariances because number of model variations is too low! < 5
plotting.geodetic - INFO Not plotting shaded relief for nensemble < 301.
plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_dscxn
plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ...
plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_ascxn
plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ...
plotting.common - INFO saving figures to ./Laquila/geometry/figures/scenes_-1_max_local_0.pdf
However, the fig is empty. This is the same with InSAR data fitting plots with example 4. It is likely that there are some problems with the plotting function. Attached are the plots and my config file. example3_geometry.zip
For example 4, I have a question. I can run all the steps of example 4 but the results are not as good as that in the tutorial. I tried several times but I cannot reproduce similar results. I know for nonlinear problems, the results of every execution are not the same, but I think my results are not good. Maybe there is something wrong with my config file. Are there any tricks to improve the results of the finite fault inversion? Attached is my config file and the results for example 4. example4_ffi.zip
for example 3 All steps run successfully. But when I want to plot the InSAR data fitting with
beat plot Laquila scene_fits
and
beat plot Laquila scene_fits --plot_projection=latlon
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed. beat - INFO Loading problem ... config - INFO All hierarchicals ok! config - INFO All hyperparameters ok! config - INFO All priors ok! models - INFO ... Initialising Geometry Optimizer ... models - INFO Analysing problem ... models - INFO --------------------- models - INFO Using RectangularSource for 1 sources for event --- !pf.Event lat: 42.29 lon: 13.35 time: '2009-04-06 01:32:49.190000057' depth: 12000.0 name: '200904060132A' magnitude: 6.343080192483292 region: 'CENTRAL ITALY' catalog: 'gCMT' moment_tensor: !pf.MomentTensor mnn: 1.43e+18 mee: 1.87e+18 mdd: -3.3e+18 mne: 1.77e+18 mnd: -1.43e+18 med: 2.6900000000000003e+17 strike1: 120.23408298515041 dip1: 54.240869089580485 rake1: -112.81739742081386 strike2: 335.98575923255856 dip2: 41.58440373860804 rake2: -61.69749587601104 moment: 3.6696131948749036e+18 magnitude: 6.343080192483292 duration: 7.0 /home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`. warnings.warn( geodetic - INFO Number of geodetic datasets: 2 geodetic - INFO Initialising corrections ... heart - INFO Setting up Ramps correction for Laquila_dscxn heart - INFO Masking data for Ramps estimation! heart - INFO Not correcting Laquila_dscxn for Euler Pole heart - INFO Not correcting Laquila_dscxn for Strain Rate heart - INFO Setting up Ramps correction for Laquila_ascxn heart - INFO Masking data for Ramps estimation! heart - INFO Not correcting Laquila_ascxn for Euler Pole heart - INFO Not correcting Laquila_ascxn for Strain Rate geodetic - INFO Number of geodetic data points: 419 geodetic - INFO Initialising geometry geodetic composite ... seismic - INFO Loading seismic data for event 0 from: ./Laquila/seismic_data.pkl seismic - INFO Initialising seismic wavemap for "any_P" ... heart - INFO Consistent number of datasets and targets in any_P_0 wavemap! heart - INFO Number of seismic datasets for wavemap: any_P_0: 35 plotting.geodetic - INFO Drawing SAR misfits ... backend - INFO Loading multitrace from ./Laquila/geometry/stage_-1 geodetic - INFO Evaluating config for Ramps corrections for datasets... geodetic - INFO Evaluating config for Euler Pole corrections for datasets... geodetic - INFO No Euler Pole correction! geodetic - INFO Evaluating config for Strain Rate corrections for datasets... geodetic - INFO No Strain Rate correction! geodetic - INFO Initialized 6 hierarchical parameters. geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_dscxn ... geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_ascxn ... geodetic - INFO Not updating geodetic velocity model-covariances because number of model variations is too low! < 5 plotting.geodetic - INFO Not plotting shaded relief for nensemble < 301. plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_dscxn plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ... plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_ascxn plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ... plotting.common - INFO saving figures to ./Laquila/geometry/figures/scenes_-1_max_local_0.pdf
However, the fig is empty. This is the same with InSAR data fitting plots with example 4. It is likely that there are some problems with the plotting function. Attached are the plots and my config file. example3_geometry.zip
for example 3 All steps run successfully. But when I want to plot the InSAR data fitting with
beat plot Laquila scene_fits
and
beat plot Laquila scene_fits --plot_projection=latlon
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed. beat - INFO Loading problem ... config - INFO All hierarchicals ok! config - INFO All hyperparameters ok! config - INFO All priors ok! models - INFO ... Initialising Geometry Optimizer ... models - INFO Analysing problem ... models - INFO --------------------- models - INFO Using RectangularSource for 1 sources for event --- !pf.Event lat: 42.29 lon: 13.35 time: '2009-04-06 01:32:49.190000057' depth: 12000.0 name: '200904060132A' magnitude: 6.343080192483292 region: 'CENTRAL ITALY' catalog: 'gCMT' moment_tensor: !pf.MomentTensor mnn: 1.43e+18 mee: 1.87e+18 mdd: -3.3e+18 mne: 1.77e+18 mnd: -1.43e+18 med: 2.6900000000000003e+17 strike1: 120.23408298515041 dip1: 54.240869089580485 rake1: -112.81739742081386 strike2: 335.98575923255856 dip2: 41.58440373860804 rake2: -61.69749587601104 moment: 3.6696131948749036e+18 magnitude: 6.343080192483292 duration: 7.0 /home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py:14: FutureWarning: The class `ScalarSharedVariable` has been deprecated. Use `TensorSharedVariable` instead and check for `ndim==0`. warnings.warn( geodetic - INFO Number of geodetic datasets: 2 geodetic - INFO Initialising corrections ... heart - INFO Setting up Ramps correction for Laquila_dscxn heart - INFO Masking data for Ramps estimation! heart - INFO Not correcting Laquila_dscxn for Euler Pole heart - INFO Not correcting Laquila_dscxn for Strain Rate heart - INFO Setting up Ramps correction for Laquila_ascxn heart - INFO Masking data for Ramps estimation! heart - INFO Not correcting Laquila_ascxn for Euler Pole heart - INFO Not correcting Laquila_ascxn for Strain Rate geodetic - INFO Number of geodetic data points: 419 geodetic - INFO Initialising geometry geodetic composite ... seismic - INFO Loading seismic data for event 0 from: ./Laquila/seismic_data.pkl seismic - INFO Initialising seismic wavemap for "any_P" ... heart - INFO Consistent number of datasets and targets in any_P_0 wavemap! heart - INFO Number of seismic datasets for wavemap: any_P_0: 35 plotting.geodetic - INFO Drawing SAR misfits ... backend - INFO Loading multitrace from ./Laquila/geometry/stage_-1 geodetic - INFO Evaluating config for Ramps corrections for datasets... geodetic - INFO Evaluating config for Euler Pole corrections for datasets... geodetic - INFO No Euler Pole correction! geodetic - INFO Evaluating config for Strain Rate corrections for datasets... geodetic - INFO No Strain Rate correction! geodetic - INFO Initialized 6 hierarchical parameters. geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_dscxn ... geodetic - INFO Retrieving geodetic data-covariances with structure "import" for Laquila_ascxn ... geodetic - INFO Not updating geodetic velocity model-covariances because number of model variations is too low! < 5 plotting.geodetic - INFO Not plotting shaded relief for nensemble < 301. plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_dscxn plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ... plotting.geodetic - INFO Loading full resolution kite scene: ./Laquila_ascxn plotting.geodetic - WARNING Full resolution data could not be loaded! Skipping ... plotting.common - INFO saving figures to ./Laquila/geometry/figures/scenes_-1_max_local_0.pdf
However, the fig is empty. This is the same with InSAR data fitting plots with example 4. It is likely that there are some problems with the plotting function. Attached are the plots and my config file. example3_geometry.zip
It tries to load the data, but was not successful- so it couldnt plot it. So please check the path and data format etc. It needs kite scenes. Did you download them? https://github.com/braunfuss/laquila_kite_container
For example 2, my results do not seem right. The beach ball and probability distributions are not good, but I did not find the problems. So I need some help to reproduce the example. Attached is my config file, the log file, and the results for example 2.
Do you have a 72core computer? To me it looks like a problem of convergence. Meaning that some of the chains sampling in the posterior simply do not sample at the correct position yet. This can happen if the master chain is often swapping only the same workers, which can happen when the other workers do not sample at all, because you oversubscribed too much. May I ask for your mpiversion info? Which os are you using? Also the PT sampler wasnt in use much lately. So if you want to do research- I do not recommend using it- since it is not well tested in the last years.
Hi, sorry for the reply. Thanks for your efforts to solve my problems. I have been testing the latest version of BEAT for the last few days. The previous problems have been solved. But I got new problems with the last step of example 1, i.e. the repeat of example 1 with the noise structure set to non-toeplitz.
When I ran
beat sample FullMT_nont
I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed. config - INFO All hierarchicals ok! config - INFO All hyperparameters ok! config - INFO All priors ok! models - INFO ... Initialising Geometry Optimizer ... models - INFO Analysing problem ... models - INFO --------------------- models - INFO Using MTSource for 1 sources for event --- !pf.Event lat: 29.07 lon: 34.73 time: '1995-11-22 04:15:26.200000048' depth: 8000.0 name: '112295A' magnitude: 7.20583885303153 region: 'ARAB REPUBLIC OF EGYPT' catalog: 'gCMT' moment_tensor: !pf.MomentTensor mnn: -0.43283071 mee: 0.65741974 mdd: -0.22458903 mne: 0.63839719 mnd: 0.50698292 med: 0.02063122 strike1: 294.09064689577235 dip1: 77.25911269444555 rake1: -148.53160423717637 strike2: 196.4032557270442 dip2: 59.39114178630978 rake2: -14.847482440839393 moment: 0.999999992919433 magnitude: -6.033333335383367 duration: 22.0 seismic - INFO Loading seismic data for event 0 from: /work/csang/exp/FullMT_nont/seismic_data.pkl seismic - INFO Initialising seismic wavemap for "any_P" ... heart - INFO Consistent number of datasets and targets in any_P_0 wavemap! heart - INFO Number of seismic datasets for wavemap: any_P_0: 20 seismic - INFO Initialising seismic wavemap for "slowest" ... seismic - INFO The waveform defined in "slowest 1" config is not included in the optimization! models - INFO ... Building model ... config - INFO not solving for depth, got fixed at 8.0 models - INFO Initialised hyperparameter h_any_P_0_Z with size 10 models - INFO Initialised hyperparameter h_any_P_0_T with size 10 models - INFO Initialized 20 hyperparameters in total! seismic - INFO Seismic optimization on: duration, east_shift, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time heart - INFO Did not find custom arrival times. heart - INFO Using theoretical arrival times for "any_P_0" seismic - INFO Retrieving seismic data-covariances with structure "non-toeplitz" for any_P_0 ... seismic - INFO Initialising weights ... seismic - INFO Preparing data of "any_P_0" for optimization heart - INFO Did not find custom arrival times. heart - INFO Using theoretical arrival times for "any_P_0" seismic - INFO Initializing synthesizer for "any_P_0" seismic - INFO Using all sources for wavemap any_P_0 ! models - INFO Model building was successful! models - INFO Using "bin" backend to store samples! models - INFO ... Initiate Sequential Monte Carlo ... n_chains=2000, tune_interval=10, n_jobs=100, proposal_distribution: MultivariateNormal, metropolis - INFO Creating initial population for 2000 chains ... Sampling: [duration, east_shift, h_any_P_0_T, h_any_P_0_Z, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time] pymc.sampling.forward - INFO Sampling: [duration, east_shift, h_any_P_0_T, h_any_P_0_Z, magnitude, mdd, med, mee, mnd, mne, mnn, north_shift, time] metropolis - INFO Compiling model graph ... metropolis - INFO Initializing proposal distribution ...MultivariateNormal metropolis - INFO Time for proposal covariance init: 0.022191 models - INFO Compilation time: 5.248945 models.base - INFO ... Starting SMC ... backend - INFO Removing previous sampling results ... /work/csang/exp/FullMT_nont/geometry/stage_0 backend - INFO Found no sampling results under /work/csang/exp/FullMT_nont/geometry/stage_0 backend - INFO Init new trace! smc - INFO Sample initial stage: ... smc - INFO Beta: 0.000000 Stage: 0 sampler - INFO Initialising 2000 chain traces ... sampler - INFO Serial time per sample: 0.008421 sampler - INFO Chunksize per worker is 20 sampler - INFO Data to be memory shared: sampler - INFO No data to be memshared! sampler - INFO Sampling ... sampler - INFO Worker 11: Finished 4 / 20 chains ...... (redundancy lines are omitted here) sampler - INFO Worker 45: Finished 20 / 20 chains parallel - INFO Feierabend! Done with the work! backend - INFO Loading multitrace from /work/csang/exp/FullMT_nont/geometry/stage_0 smc - INFO Updating Covariances ... Traceback (most recent call last): File "/home/csang/miniforge3/envs/beat_dev/bin/beat", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/apps/beat.py", line 2441, in main globals()["command_" + command](args) File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/apps/beat.py", line 1068, in command_sample sample(step, problem) File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/models/base.py", line 262, in sample smc_sample( File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/sampler/smc.py", line 494, in smc_sample map_pt = step.get_map_end_points() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/beat/sampler/smc.py", line 288, in get_map_end_points return self.bij.rmap(self.array_population[idx, :]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/csang/miniforge3/envs/beat_dev/lib/python3.11/site-packages/pymc/blocking.py", line 105, in rmap raise TypeError("`array` must be a `RaveledVars` type") TypeError: `array` must be a `RaveledVars` type
In short, I cannot reproduce the last figure of example 1, but I can reproduce other steps of example 1. Attached is my config file for example 1. FullMT_config.zip
Please disable update_covariances and rerun. Non-toeplitz may not be used safely with that option- it is very unstable and you need to know what you are doing.
For example 4, I have a question. I can run all the steps of example 4 but the results are not as good as that in the tutorial. I tried several times but I cannot reproduce similar results. I know for nonlinear problems, the results of every execution are not the same, but I think my results are not good. Maybe there is something wrong with my config file. Are there any tricks to improve the results of the finite fault inversion? Attached is my config file and the results for example 4. example4_ffi.zip
Your posteriors for h_laplacian and h_SAR hit the lower prior bounds. So please reduce them both further, maybe -5 and -1 respectively?
Following your suggestions, I ran example 1 and example 2 successfully today. For example 1, I followed your instructions and the results seem alright. For example 2, I changed “PT” sampler to “SMC” sampler and got good results. I have 104 cores on the cluster of my university and my MPI version is 5.0.5, I think my installation is correct since I can reproduce the example 2 successfully.
For the plotting issue, I downloaded the InSAR data from the GitHub repository and got the plots successfully. I am sorry I didn't notice this detail. I thought the InSAR data to be plotted is already in “geodetic_data.pkl” under the project folder.
Thanks for your help!
I adjust the range of hyperparameters h_SAR and h_laplacian to [-5, 5] and [0, 7], respectively. The result seems much better. Attached is the new results.
example4_ffi_adjust_hyper_range.zip
Are those results reasonable?
I also wonder what the black arrows and grey arrows mean in the slip-distribution figure. Is the black arrows the inverted fault slip? I read both the document and the source code but found no description of them.
Yes, I think those results wont get much better than that. In the paper I scaled the vectors and ellipses not to be as big as in the figure now, which is why the results appear different. The black arrows are the MAP model and the grey arrows are the mean of the distributions. Sorry yes, the figure caption only describes the black. My bad.
Please use the --nensemble=300 arguemnt in the scene_fit plot to get the variance reduction value histogram in the top right. Thats more informative and tells you the percantage of data that is well explained.
Thanks for the suggestions! The “ffi” inversion and InSAR fit plots seem alright now.
I have another question about "gnss_fits". I finished my “ffi” inversion and now I want to plot the data fitting to check the performance of the inverted fault slip model, so I run
beat plot 202404022358B_e gnss_fits --mode=ffi
and I got
To enable 'bem' mode packages 'pygmsh' and 'cutde' need to be installed.
beat - INFO Loading problem ...
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Distribution Optimizer ...
models - INFO Analysing problem ...
models - INFO ---------------------
geodetic - INFO Number of geodetic datasets: 3
geodetic - INFO Number of geodetic data points: 174
config - INFO not solving for utens, got fixed at 0.0
plotting.geodetic - INFO Drawing GNSS misfits ...
backend - INFO Loading multitrace from ./202404022358B_e/ffi/stage_-1
plotting.geodetic - INFO Trying to load GNSS data from: ./202404022358B_e
config - INFO Loading file NGL_TW_1d_20240604_inv.txt ...
pyrocko.model.gnss - WARNING Station 0000 does not exist in campaign, do nothing.
inputf - INFO Loaded data of 58 GNSS stations
config - INFO Successfully loaded GNSS data from file NGL_TW_1d_20240604_inv.txt
geodetic - INFO Evaluating config for Ramps corrections for datasets...
geodetic - INFO No Ramps correction!
geodetic - INFO Evaluating config for Euler Pole corrections for datasets...
geodetic - INFO No Euler Pole correction!
geodetic - INFO Evaluating config for Strain Rate corrections for datasets...
geodetic - INFO No Strain Rate correction!
geodetic - INFO Initialized 0 hierarchical parameters.
plotting.geodetic - INFO FFI gnss fit, using reference source ...
geodetic - INFO Retrieving geodetic data-covariances with structure "import" for NGL_TW_1d_20240604_inv.txt_north ...
geodetic - INFO Retrieving geodetic data-covariances with structure "import" for NGL_TW_1d_20240604_inv.txt_east ...
geodetic - INFO Retrieving geodetic data-covariances with structure "import" for NGL_TW_1d_20240604_inv.txt_up ...
geodetic - INFO Not updating geodetic velocity model-covariances because number of model variations is too low! < 5
plotting.geodetic - WARNING More than 40 stations disabling station labels ..
mapproject [INFORMATION]: Processing input table data
mapproject [INFORMATION]: Transform 121.024/122.133/23.564/24.5768 -> 0/452.614/0/450.220152817 [point]
mapproject [INFORMATION]: Reading Data Table from Standard Input stream
mapproject [INFORMATION]: Writing Data Table to Standard Output stream
mapproject [INFORMATION]: Projected 2 points
mapproject [INFORMATION]: Input extreme values: Xmin: 121.023574767 Xmax: 122.13299521 Ymin: 23.563954162 Ymax 24.5768390897
mapproject [INFORMATION]: Output extreme values: Xmin: -0.174309686616 Xmax: 452.611982794 Ymin: -0.0196969664487 Ymax 450.237522235
mapproject [INFORMATION]: Mapped 2 lon-lat pairs to x-y pairs[point]
pscoast [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
pscoast [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
pscoast [INFORMATION]: Selected ice front line as Antarctica coastline
pscoast [INFORMATION]: GSHHG version 2.3.7
pscoast [INFORMATION]: Derived from World Vector Shoreline, CIA WDB-II, and Atlas of the Cryosphere
pscoast [INFORMATION]: Processed by Paul Wessel and Walter H. F. Smith, 1994-2017
pscoast [INFORMATION]: Painting entire map with ocean color first, then draw land on top later
pscoast [INFORMATION]: Adding Rivers...psvelo [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psvelo [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psvelo [INFORMATION]: Reading Data Table from Standard Input stream
psvelo [INFORMATION]: psvelo: 2-D confidence interval and scaling factor 0.950000 2.447747
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 27. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 40. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 44. Consider adding +n<norm> to -A
psvelo [INFORMATION]: 3 vector heads had length exceeding the vector length and were skipped. Consider the +n<norm> modifier to -A
psvelo [INFORMATION]: Number of records read: 58
psvelo [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psvelo [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psvelo [INFORMATION]: Reading Data Table from Standard Input stream
psvelo [INFORMATION]: psvelo: 2-D confidence interval and scaling factor 0.950000 2.447747
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 27. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 40. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 44. Consider adding +n<norm> to -A
psvelo [INFORMATION]: 3 vector heads had length exceeding the vector length and were skipped. Consider the +n<norm> modifier to -A
psvelo [INFORMATION]: Number of records read: 58
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7f140361aa00
psxy [INFORMATION]: Plotting segment 0
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7fd9fe18fa00
psxy [INFORMATION]: Plotting segment 0
psbasemap [INFORMATION]: Constructing the basemap
psbasemap [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psbasemap [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psbasemap [INFORMATION]: Save current gridline information to gmt.history
plotting.geodetic - WARNING More than 40 stations disabling station labels ..
mapproject [INFORMATION]: Processing input table data
mapproject [INFORMATION]: Transform 121.024/122.133/23.564/24.5768 -> 0/452.614/0/450.220152817 [point]
mapproject [INFORMATION]: Reading Data Table from Standard Input stream
mapproject [INFORMATION]: Writing Data Table to Standard Output stream
mapproject [INFORMATION]: Projected 2 points
mapproject [INFORMATION]: Input extreme values: Xmin: 121.023574767 Xmax: 122.13299521 Ymin: 23.563954162 Ymax 24.5768390897
mapproject [INFORMATION]: Output extreme values: Xmin: -0.174309686616 Xmax: 452.611982794 Ymin: -0.0196969664487 Ymax 450.237522235
mapproject [INFORMATION]: Mapped 2 lon-lat pairs to x-y pairs[point]
pscoast [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
pscoast [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
pscoast [INFORMATION]: Selected ice front line as Antarctica coastline
pscoast [INFORMATION]: GSHHG version 2.3.7
pscoast [INFORMATION]: Derived from World Vector Shoreline, CIA WDB-II, and Atlas of the Cryosphere
pscoast [INFORMATION]: Processed by Paul Wessel and Walter H. F. Smith, 1994-2017
pscoast [INFORMATION]: Painting entire map with ocean color first, then draw land on top later
pscoast [INFORMATION]: Adding Rivers...psvelo [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psvelo [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psvelo [INFORMATION]: Reading Data Table from Standard Input stream
psvelo [INFORMATION]: psvelo: 2-D confidence interval and scaling factor 0.950000 2.447747
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 13. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 16. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 18. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 20. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 23. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 25. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 27. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 29. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 44. Consider adding +n<norm> to -A
psvelo [INFORMATION]: 9 vector heads had length exceeding the vector length and were skipped. Consider the +n<norm> modifier to -A
psvelo [INFORMATION]: Number of records read: 58
psvelo [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psvelo [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psvelo [INFORMATION]: Reading Data Table from Standard Input stream
psvelo [INFORMATION]: psvelo: 2-D confidence interval and scaling factor 0.950000 2.447747
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 13. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 16. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 18. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 20. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 23. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 25. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 27. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 29. Consider adding +n<norm> to -A
psvelo [INFORMATION]: Vector head length exceeds overall vector length near line 44. Consider adding +n<norm> to -A
psvelo [INFORMATION]: 9 vector heads had length exceeding the vector length and were skipped. Consider the +n<norm> modifier to -A
psvelo [INFORMATION]: Number of records read: 58
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7f8c6dbc2a00
psxy [INFORMATION]: Plotting segment 0
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7f5b9676ba00
psxy [INFORMATION]: Plotting segment 0
psbasemap [INFORMATION]: Constructing the basemap
psbasemap [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psbasemap [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psbasemap [INFORMATION]: Save current gridline information to gmt.history
plotting.geodetic - INFO saving figures to ./202404022358B_e/ffi/figures/gnss_-1_max_0_local
mapproject [INFORMATION]: Processing input table data
mapproject [INFORMATION]: Transform 121.024/122.133/23.564/24.5768 -> 0/452.614/0/450.220152817 [point]
mapproject [INFORMATION]: Reading Data Table from Standard Input stream
mapproject [INFORMATION]: Writing Data Table to Standard Output stream
mapproject [INFORMATION]: Projected 2 points
mapproject [INFORMATION]: Input extreme values: Xmin: 121.023574767 Xmax: 122.13299521 Ymin: 23.563954162 Ymax 24.5768390897
mapproject [INFORMATION]: Output extreme values: Xmin: -0.174309686616 Xmax: 452.611982794 Ymin: -0.0196969664487 Ymax 450.237522235
mapproject [INFORMATION]: Mapped 2 lon-lat pairs to x-y pairs[point]
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7f770740ca00
psxy [WARNING]: File <stdin> is empty!
mapproject [INFORMATION]: Processing input table data
mapproject [INFORMATION]: Transform 121.024/122.133/23.564/24.5768 -> 0/452.614/0/450.220152817 [point]
mapproject [INFORMATION]: Reading Data Table from Standard Input stream
mapproject [INFORMATION]: Writing Data Table to Standard Output stream
mapproject [INFORMATION]: Projected 2 points
mapproject [INFORMATION]: Input extreme values: Xmin: 121.023574767 Xmax: 122.13299521 Ymin: 23.563954162 Ymax 24.5768390897
mapproject [INFORMATION]: Output extreme values: Xmin: -0.174309686616 Xmax: 452.611982794 Ymin: -0.0196969664487 Ymax 450.237522235
mapproject [INFORMATION]: Mapped 2 lon-lat pairs to x-y pairs[point]
psxy [INFORMATION]: Processing input table data
psxy [INFORMATION]: gmt_map_setup perimeter search region: 120.9196564616369/122.233/23.46399765223102/24.67780919276663.
psxy [INFORMATION]: Map scale is 7.06293 km per cm or 1:706293.
psxy [INFORMATION]: Reading Data Table from Stream 7fd4e0072a00
psxy [WARNING]: File <stdin> is empty!
However, the figures are not correct. As shown in the figures in the attached zip file below, there are only 10 stations in the horizontal and vertical plots, but I have 58 stations included in the “ffi” inversion. The GPS data file is an ASCII file and its format follows the standard format shown in the document (https://pyrocko.org/beat/docs/current/getting_started/import_data.html#geodetic-data). How can I fix that?
I also want to export the surface displacement due to the inverted fault slip model (i.e., results of forward modeling) and discretized fault model, so I can plot the data fitting with my code and calculate the Coulomb stress change due to fault slip. Are there any options to do this or do I need to write some code? Could you give me some hints If I need to write some code to export the synthetic surface displacements and fault model cause I do not know where to start? Thanks a lot.
To ensure all stations are included in the plotting area please run:
beat plot 202404022358B_e gnss_fits --mode=ffi --plot_projection=latlon
The default is a zoom in on the fault area.
To export the MAP model and most important parameters of interest under $projectdir/$mode/results please run:
beat export 202404022358B_e --mode=ffi --stage_number=-1
Again the hint to please use: beat --help
once in a while to try to find out some of that yourself. Each option again supports again --help, like: beat plot --help
Regards, Hannes
Released version 2.0.3 with fix.
I tried to learn BEAT following the examples in the document (https://pyrocko.org/beat/docs/current/examples/index.html) today, however, I ran into several issues.
For example, when I tried to run
for example 1, I got the following output
When I tried to run
for example 2, I got the following output
when I tried to run
for example 3, I got the following output
I am trying to figure out what is wrong, but I noticed that there is a brand new release of BEAT. Maybe the examples in the document have not been updated yet? Or maybe there are some issues with my installation of BEAT and compilation of the backend of BEAT? Could you help me solve these problems? Thanks.