Difference between revisions of "New BBP Validation Package"
From SCECpedia
Jump to navigationJump to searchLine 23: | Line 23: | ||
<ol> | <ol> | ||
− | <li>Create | + | <li>Create a working directory to assemble the CyberShake output files.</li> |
− | <li>Copy CyberShake *.vel.bbp and *.acc.bbp files to the outdata directory.</li> | + | <li>Copy CyberShake *.vel.bbp and *.acc.bbp files to the working directory.</li> |
+ | <li>Run bbp/utils/misc/import_bbp_simulation.py to copy the files into the outdata directory with the correct filenames. You can make up any sim id. The script creates the filenames using "<prefix><station name><suffix>.<vel|acc>.bbp", so you may need to change the CyberShake filename to have the entire station name in them. Sample invocation: | ||
+ | <pre> | ||
+ | bbp/utils/misc/import_bbp_simulation.py --sim_id 202108120 --src_file bbp_val/NorthridgeBBP/common/nr_v14_02_1.src --station_list bbp_val/NorthridgeBBP/common/nr_v19_02_1.stl --input_dir . --prefix "Seismogram_" --suffix "_0_0_0_bb.0"</pre> | ||
+ | </li> | ||
<li>Run the BBP, but skip all simulation stages and start with the plot_map module.</li> | <li>Run the BBP, but skip all simulation stages and start with the plot_map module.</li> | ||
</ol> | </ol> |
Revision as of 18:01, 12 August 2021
This page outlines the process to create a new BBP validation package and use it to produce CyberShake goodness-of-fit results.
Create BBP Validation Package
- Copy over an already-existing validation package in $BBP_VAL_DIR.
- Copy the .src file and the .stl file that were used for the validation simulation.
- Edit the validation_config.txt file, if needed. Possibly modify EVENT_VELOCITY_MODEL, P_CODEBASE_ALL_source, and P_CODEBASE_ALL_stations.
- Create the .acc files. There should be 1 file per station per component with the filename <station>_<comp>.acc. These files use the following format:
Rotated Accelerogram to <direction> H1 for rotation: <station name> <original angle 1> H2 for rotation: <station name> <original angle 2> rotation angle - n/a Acceleration in g <npts> <dt> NPTS, DT <values, 6 per row in %.6e format>
You can use the script on Summit in ~callag/scripts/convert_bbp_to_acc.py to convert an acceleration BBP file into 3 .acc files.
Perform goodness-of-fit with CyberShake results
- Create a working directory to assemble the CyberShake output files.
- Copy CyberShake *.vel.bbp and *.acc.bbp files to the working directory.
- Run bbp/utils/misc/import_bbp_simulation.py to copy the files into the outdata directory with the correct filenames. You can make up any sim id. The script creates the filenames using "<prefix><station name><suffix>.<vel|acc>.bbp", so you may need to change the CyberShake filename to have the entire station name in them. Sample invocation:
bbp/utils/misc/import_bbp_simulation.py --sim_id 202108120 --src_file bbp_val/NorthridgeBBP/common/nr_v14_02_1.src --station_list bbp_val/NorthridgeBBP/common/nr_v19_02_1.stl --input_dir . --prefix "Seismogram_" --suffix "_0_0_0_bb.0"
- Run the BBP, but skip all simulation stages and start with the plot_map module.