Difference between revisions of "UCVM cvmsi tapering for CyberShake Study 22.2"

From SCECpedia
Jump to navigationJump to search
(Created page with "== Generate Z1.0 and Z2.5 == on Discovery, commands used to create Z1.0 and Z2.5 basin query results, <br> </br>")
 
Line 3: Line 3:
 
on Discovery,  commands used to create Z1.0 and Z2.5 basin query results,
 
on Discovery,  commands used to create Z1.0 and Z2.5 basin query results,
  
 +
<pre>
 +
#!/bin/bash
 +
if [ -z "$UCVM_INSTALL_PATH" ]; then
 +
  echo "Need to set UCVM_INSTALL_PATH to run >" ${0##*/}
 +
  exit
 +
fi
 +
source $UCVM_INSTALL_PATH/conf/ucvm_env.sh
  
<br>
+
BIN_DIR=${UCVM_INSTALL_PATH}/bin
</br>
+
CONF_DIR=${UCVM_INSTALL_PATH}/conf
 +
 
 +
TEST=basin_query_mpi_complete_cvmsi_taper_z2.5
 +
salloc ${UCVM_SALLOC_ENV} -Q --nodes=2 --ntasks=4 --mem=16GB --time=01:00:00 srun -Q -o ${TEST}.srun.out ${BIN_DIR}/basin_query_mpi_complete -b ${TES
 +
T}.first,${TEST}.firstOrSecond,${TEST}.last,${TEST}.secondOnly,${TEST}.threeLast -o ${TEST}.result,${TEST}.meta.json -f ${CONF_DIR}/ucvm.conf -m cvms
 +
i,elygtl:taper -i 10 -v 2500 -l 33.25,-119.38 -s 0.005 -x 578 -y 366
 +
 
 +
TEST=basin_query_mpi_complete_cvmsi_taper_z1.0
 +
salloc ${UCVM_SALLOC_ENV} -Q --nodes=2 --ntasks=4 --mem=16GB --time=01:00:00 srun -Q -o ${TEST}.srun.out ${BIN_DIR}/basin_query_mpi_complete -b ${TES
 +
T}.first,${TEST}.firstOrSecond,${TEST}.last,${TEST}.secondOnly,${TEST}.threeLast -o ${TEST}.result,${TEST}.meta.json -f ${CONF_DIR}/ucvm.conf -m cvms
 +
i,elygtl:taper -i 10 -v 1000 -l 33.25,-119.38 -s 0.005 -x 578 -y 366
 +
</pre>
 +
 
 +
the .firstOrSecond files are the ones that is needed
 +
to plot these files with ucvm_plotting, data ingest mode of plot_z10_map.py and plot_z25_map.py from ucvm_plotting is used
 +
but first needs to change those file name to have .binary file name so plotting scripts know how to parse the data
 +
 
 +
<pre>
 +
plot_z10_map.py -a s -s 0.0050 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi,elygtl:taper -x 578 -y 366 -f basin_quer
 +
y_mpi_complete_cvmsi_taper_z1.0x.binary -o cvmsi_taper_z1.0x.png
 +
plot_z25_map.py -a s -s 0.005 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi,elygtl:taper -x 578 -y 366 -f basin_query
 +
_mpi_complete_cvmsi_taper_z2.5x.binary -o cvmsi_taper_z2.5x.png
 +
 
 +
plot_z10_map.py -a s -s 0.0050 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi -x 578 -y 366 -f basin_query_mpi_complet
 +
e_cvmsi_z1.0x.binary -o cvmsi_z1.0x.png
 +
plot_z25_map.py -a s -s 0.005 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi -x 578 -y 366 -f basin_query_mpi_complete
 +
_cvmsi_z2.5x.binary -o cvmsi_z2.5x.png
 +
</pre>
 +
 
 +
can create difference map between 2 binary files
 +
<pre>
 +
plot_vs30_etree_difference_map.py -s 0.005 -c cvmsi -a d -i /var/www/html/UCVM_web_test/web/model/UCVM_TARGET -b 33.25,-119.38 -u 35.08,-116.49 -o diff_taper_none_z1.0.png -f basin_query_mpi_complete_cvmsi_taper_z1.0x.binary,basin_query_mpi_complete_cvmsi_z1.0x.binary -x 578 -y 366 -t "diff between cvmsi and cvmsi+taper Z1.0" -A -0.52,0.52
 +
</pre>

Revision as of 00:49, 2 March 2023

Generate Z1.0 and Z2.5

on Discovery, commands used to create Z1.0 and Z2.5 basin query results,

#!/bin/bash
if [ -z "$UCVM_INSTALL_PATH" ]; then
  echo "Need to set UCVM_INSTALL_PATH to run >" ${0##*/} 
  exit
fi
source $UCVM_INSTALL_PATH/conf/ucvm_env.sh

BIN_DIR=${UCVM_INSTALL_PATH}/bin
CONF_DIR=${UCVM_INSTALL_PATH}/conf

TEST=basin_query_mpi_complete_cvmsi_taper_z2.5
salloc ${UCVM_SALLOC_ENV} -Q --nodes=2 --ntasks=4 --mem=16GB --time=01:00:00 srun -Q -o ${TEST}.srun.out ${BIN_DIR}/basin_query_mpi_complete -b ${TES
T}.first,${TEST}.firstOrSecond,${TEST}.last,${TEST}.secondOnly,${TEST}.threeLast -o ${TEST}.result,${TEST}.meta.json -f ${CONF_DIR}/ucvm.conf -m cvms
i,elygtl:taper -i 10 -v 2500 -l 33.25,-119.38 -s 0.005 -x 578 -y 366

TEST=basin_query_mpi_complete_cvmsi_taper_z1.0
salloc ${UCVM_SALLOC_ENV} -Q --nodes=2 --ntasks=4 --mem=16GB --time=01:00:00 srun -Q -o ${TEST}.srun.out ${BIN_DIR}/basin_query_mpi_complete -b ${TES
T}.first,${TEST}.firstOrSecond,${TEST}.last,${TEST}.secondOnly,${TEST}.threeLast -o ${TEST}.result,${TEST}.meta.json -f ${CONF_DIR}/ucvm.conf -m cvms
i,elygtl:taper -i 10 -v 1000 -l 33.25,-119.38 -s 0.005 -x 578 -y 366

the .firstOrSecond files are the ones that is needed to plot these files with ucvm_plotting, data ingest mode of plot_z10_map.py and plot_z25_map.py from ucvm_plotting is used but first needs to change those file name to have .binary file name so plotting scripts know how to parse the data

plot_z10_map.py -a s -s 0.0050 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi,elygtl:taper -x 578 -y 366 -f basin_quer
y_mpi_complete_cvmsi_taper_z1.0x.binary -o cvmsi_taper_z1.0x.png
plot_z25_map.py -a s -s 0.005 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi,elygtl:taper -x 578 -y 366 -f basin_query
_mpi_complete_cvmsi_taper_z2.5x.binary -o cvmsi_taper_z2.5x.png 

plot_z10_map.py -a s -s 0.0050 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi -x 578 -y 366 -f basin_query_mpi_complet
e_cvmsi_z1.0x.binary -o cvmsi_z1.0x.png
plot_z25_map.py -a s -s 0.005 -b 33.25,-119.38 -u 35.08,-116.49 -c cvmsi -x 578 -y 366 -f basin_query_mpi_complete
_cvmsi_z2.5x.binary -o cvmsi_z2.5x.png 

can create difference map between 2 binary files

plot_vs30_etree_difference_map.py -s 0.005 -c cvmsi -a d -i /var/www/html/UCVM_web_test/web/model/UCVM_TARGET -b 33.25,-119.38 -u 35.08,-116.49 -o diff_taper_none_z1.0.png -f basin_query_mpi_complete_cvmsi_taper_z1.0x.binary,basin_query_mpi_complete_cvmsi_z1.0x.binary -x 578 -y 366 -t "diff between cvmsi and cvmsi+taper Z1.0" -A -0.52,0.52