Dear all,
I have a question regarding the use of Canada SHM6 for probabilistic and deterministic hazard calculation in Openquake. Specifically, I am wondering if it is possible to use SHM6 in Openquake without writing a Python code, or if a Python code is necessary to implement Canada SHM6 in Openquake.
If anyone has experience with this or has any information that could be helpful, I would greatly appreciate your input. Thank you in advance for your help.
Best regards,
Bahareh
Traceback (most recent call last):
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\views.py", line 546, in calc_run
job_id = submit_job(request.FILES, ini, user, hazard_job_id)
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\views.py", line 619, in submit_job
job.oqparam = oq = readinput.get_oqparam(
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\commonlib\readinput.py", line 319, in get_oqparam
job_ini = get_params(os.path.join(basedir, job_ini), kw)
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\commonlib\readinput.py", line 290, in get_params
_update(params, items, base_path)
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\commonlib\readinput.py", line 213, in _update
input_type, fnames = normalize(key, [value], base_path)
File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\commonlib\readinput.py", line 196, in normalize
raise OSError('No such file: %s' % val)
OSError: No such file: C:\Users\bahareh\AppData\Local\Temp\tmpq1axnazl\calc_165\GMMs\CanadaSHM6-GMM-LT.xml
No such file: C:\Users\bahareh\AppData\Local\Temp\tmpq1axnazl\calc_165\GMMs\CanadaSHM6-GMM-LT.xml
--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/Ijy5t4dfeas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/a9aeddcf-099f-48b2-8752-dccf14831886n%40googlegroups.com.
description = OF 8924 CanadaSHM6 NBCC 2020 Model Example (Western Canada, Vs30 = 450m/s)
calculation_mode = classical
random_seed = 23
optimize_same_id_sources = True
[geometry]
sites = -123.12 49.25
[logic_tree]
number_of_logic_tree_samples = 0
[erf]
rupture_mesh_spacing = 5.0
width_of_mfd_bin = 0.1
area_source_discretization = 10.0
[site_params]
reference_vs30_type = measured
reference_vs30_value = 450.0
reference_depth_to_1pt0km_per_sec=1.0 ## added to avoid error
[calculation]
source_model_logic_tree_file = ssms/simplifiedCollapsed/logicTree/CanadaSHM6_NBCC2020_WesternCanada-LT.xml
gsim_logic_tree_file = gmms/logicTree/CanadaSHM6-GMM-LT.xml
intensity_measure_types_and_levels = {"PGV": logscale(0.01,1000.0, 40),
"PGA": logscale(0.001,6.0, 40),
"SA(0.05)": logscale(0.001,6.0, 40),
"SA(0.1)": logscale(0.001,6.0, 40),
"SA(0.2)": logscale(0.001,6.0, 40),
"SA(0.3)": logscale(0.001,6.0, 40),
"SA(0.5)": logscale(0.001,6.0, 40),
"SA(1.0)": logscale(0.001,4.0, 40),
"SA(2.0)": logscale(0.001,4.0, 40),
"SA(5.0)": logscale(0.0001,4.0, 40),
"SA(10.0)": logscale(0.0001,4.0, 40)}
truncation_level = 5
investigation_time = 50.0
maximum_distance = {"Active Shallow Crust": 400.0, "Stable Shallow Crust": 600.0, "Subduction IntraSlab30": 400.0, "Subduction IntraSlab55": 400.0, "Subduction Interface": 1000.0}
[output]
export_dir = /tmp
poes = 0.02
uniform_hazard_spectra = true
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/455a8975-0a49-405f-9dfa-faffc8cafcb5n%40googlegroups.com.
Hi Michele,thank you very much for pointing out the bug.I have replaced my can_shm6_inslab.py file with the corrected version but there was no impact on the above mentioned results.Nevertheless I believe we will identify the problem in near future.Maybe if possible, we could remove z1pt0 from CanadaSHM6_Interface_AtkinsonMacias2009 REQUIRES_SITES_PARAMETERS , we believe it is not necessary there...
Regarding, z1pt0, basin terms in NBC2020 are turned off. CanadaSHM6_Interface_AtkinsonMacias2009 does not have a native site term, it simply uses the site term of CanadaSHM6_ActiveCrust_BooreEtAl2014 (below). So since the latter does not require z1pt0, i believe CanadaSHM6_Interface_AtkinsonMacias2009 also should not require z1pt0. I'm not sure why only one of them is raising the error since both have the same site term (with basin term fbd=0).
--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/Ijy5t4dfeas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/ac8549c2-dfbd-4118-ac17-b003f6e1ffbdn%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/Ijy5t4dfeas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/2785e14e-b09c-4223-8d1c-1864b4e87eadn%40googlegroups.com.
Yes, im using the latest version of Can20 files added manually to local gsim folder in my installed oq v3.16.2.
Hello again Michele,
Checking openquake/hazardlib/gsim/can20/can_shm6_active_crust.py (https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/gsim/can20/can_shm6_active_crust.py) file in v3.17, i can see the nonlinear site amplification (f_nl) in CY14 GMM is turned off (f_nl=0) for some reason (shown in red in the snippet below). This leads CY14 GMM to only have linear amplification, unlike its intended implementation in v3.11. When I remove this line, this GMM provides similar values to that implemented in v3.11.
def get_mean_stddevs_cy14(name, C, ctx):
"""
Return mean and standard deviation values
"""
# Get ground motion on reference rock
ln_y_ref = CY14.get_ln_y_ref(name, C, ctx)
y_ref = np.exp(ln_y_ref)
# Set basin depth to 0
f_z1pt0 = 0.0
# Get linear amplification term
f_lin = CY14.get_linear_site_term(name, C, ctx)
# Get nonlinear amplification term
f_nl, f_nl_scaling = CY14.get_nonlinear_site_term(C, ctx, y_ref)
f_nl = 0.0
# Add on the site amplification
mean = ln_y_ref + (f_lin + f_nl + f_z1pt0)
# Get standard deviations
sig, tau, phi = CY14.get_stddevs(
name, C, ctx, ctx.mag, y_ref, f_nl_scaling)
return mean, sig, tau, phi
Dear all,
I have a question regarding the use of Canada SHM6 for probabilistic and deterministic hazard calculation in Openquake. Specifically, I am wondering if it is possible to use SHM6 in Openquake without writing a Python code, or if a Python code is necessary to implement Canada SHM6 in Openquake.
If anyone has experience with this or has any information that could be helpful, I would greatly appreciate your input. Thank you in advance for your help.
Best regards,
Bahareh
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/5ffba0fc-5ee1-4380-a174-8199b401e2c8n%40googlegroups.com.
Thanks. Without seeing the input files used it’s impossible for us to provide any sensible feedback.
Regards
Marco
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/CAO0mx-ZNoj0RDckaBno3TNgnRopS-PXuW-xBH5%2B2PX_AFziOHA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/7470a82d-b034-4b21-8e07-1101d32651e8n%40googlegroups.com.
Hi, yes, up to OQ v3.11 NRCan used tabular GMPEs meaning pre-calculated for a set of distances, magnitudes and vs30 values.In the latest versions the GMPEs are re-implemented as formulae. I checked with the "CanadaSHM6trial" version at that timeand the discrepancies were not dramatic, one bug was hopefully eliminated.I am not sure which version was used for the web interface. If the older one, for sure such differences could appear.PeterDátum: streda 20. marca 2024, čas: 19:09:53 UTC+1, odosielateľ: prajakta.ra...@phd2013.iitgn.ac.in
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/0e2d037f-dc13-420b-b3a5-a0db56942a8fn%40googlegroups.com.
Hi,I do have OQ v3.11.5 on my machine, I can confirm there are discrepancies:When I am running 3.11 it even gives these warnings:ExperimentalWarning: CanadaSHM6_InSlab_AbrahamsonEtAl2015SSlab55 is experimental and may change in future versions - the user is liable for their application
ExperimentalWarning: CanadaSHM6_InSlab_AbrahamsonEtAl2015SSlab30 is experimental and may change in future versions - the user is liable for their application
ExperimentalWarning: CanadaSHM6_Interface_AbrahamsonEtAl2015SInter is experimental and may change in future versions - the user is liable for their application
ExperimentalWarning: CanadaSHM6_ActiveCrust_BooreEtAl2014 is experimental and may change in future versions - the user is liable for their applicationAs I said, between OQ 3.11 and OQ 3.12 the implementation changed and GEM team worked on improved implementation of GMPEs, so it obviously led to some changes.I am also mainly an user of NRCan data, so I am not able to comment in detail and comparing code is time consuming, from the communication with NRCan it seemed they willadopt newer versions of the OQ engine at some point but I do not have an information when this should happen. Maybe someone else could comment, but I guess the newer implementation is an improvement of the older and should be used, differences are hopefully not too large.
Hi Peter and OQ team.The tabular GMPEs are corresponding to SHM5 based NBCC 2015 model. I am not sure if the SHM6 based 2020 model was also implemented as tables in previous versions. However, in the present NBCC 2020 model, as you mentioned, the GMPEs are implemented as formulae. I am at the moment interested in the recent NBCC 2020 model, and I am a bit concerned about the deviation in values for low Vs, as I need to run OQ analyses for lower Vs values for the project, and so I have following qns:1) Although, there is deviation in the hazard values at lower Vs values generated from OQ in comparison with NRCan, is it still okay to confide in these values and use the same input files moving forward for the next analyses, as this deviation is due to upgraded Engine and the values generated by current engine cannot be deemed erroneous.2) If not, kindly advise, what version of OQ should I use to generate hazard curves for the NBCC 2020 model for low Vs values, as 3.11.5 continues to give operational error.
This is great! Thanks OQ team and Michal Kolaj (NRCan) for working on this query :)Although the user version of OQ-3.19 on this link (https://downloads.openquake.org/pkgs/windows/oq-engine/), shows last updated on Mar 5th, 2024; after installing it will still have the updated files, right?
Michele- Thanks for suggesting solution for the operational error. Please find the operational error screen-shot, that I am getting at the moment. I used to get the error you mentioned; but yes if I delete every bit of previous versions then I don't get the same operational error but the one attached in the snapshot. Probably, I can try modifying the syntax you have shared above by replacing 'host'. But, I would want to get rid of such error messages, altogether if I can.
Sujan Raj Adhikari |
a: University of Western Ontario | London On, Canada |
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/f0ca1ac3-41ba-408e-b11c-c1209f3b99a2n%40googlegroups.com.
Hello OQ Group,
I am using OQ version 3.18 and am conducting a scenario-based hazard assessment utilizing the 2020 GSC ground motion models for stable crust. When performing calculations, each intensity_measure_type provides 16 event_id values. I suspect these correspond to the 13 NGA East ground motion models and three AA13 models.
As my goal is to perform a deterministic calculation for just one scenario, I am puzzled as to why OQ does not yield a single value for each site. Instead, it provides 16 values for each point. Could you please clarify this behavior and advise on how to obtain a single deterministic value for each site?
Thank you for your assistance.
Best regards,
Bahar
Hello OQ Group,
I am using OQ version 3.18 and am conducting a scenario-based hazard assessment utilizing the 2020 GSC ground motion models for stable crust. When performing calculations, each intensity_measure_type provides 16 event_id values. I suspect these correspond to the 13 NGA East ground motion models and three AA13 models.
As my goal is to perform a deterministic calculation for just one scenario, I am puzzled as to why OQ does not yield a single value for each site. Instead, it provides 16 values for each point. Could you please clarify this behavior and advise on how to obtain a single deterministic value for each site?
Thank you for your assistance.
Best regards,
Bahar
Hello Peter,
Thank you for your response.
I understand that each of the ground motion models has a specific weight and that the NGA-East weights depend on the Vs30 and IM periods. Given this, I am unsure how to validate my results with the geomean you mentioned. It seems this could be another issue arising from using GSC 2020 within the OQ framework for scenario base assessment.
I would appreciate any further guidance or recommendations you may have regarding this matter.
Thank you for your assistance.
Bahar