Difference between revisions of "Running UCVM on Discovery"

From SCECpedia
Jump to navigationJump to search
Line 27: Line 27:
 
enter 100 for Z step
 
enter 100 for Z step
  
*Create Plot using Discovery,
+
== Create Plot using Discovery ==
 
+
Setup the plotting environment
>>2test
+
%2test
 
+
then..
>>plot_depth_profile.py -s 33.8628,-118.2525 -b 0 -e 10000 -d vs,vp,density -v 100 -c cvmh -o depth.png
+
%plot_depth_profile.py -s 33.8628,-118.2525 -b 0 -e 10000 -d vs,vp,density -v 100 -c cvmh -o depth.png
 
+
Then, you can view the plots with
you can look at it with,
+
%view_png.py -f depth.png
 
 
>>view_png.py -f depth.png
 
  
 
== UCVM Basin Query ==
 
== UCVM Basin Query ==
Line 41: Line 39:
  
 
== Running UCVM Plotting on Discovery ==
 
== Running UCVM Plotting on Discovery ==
<pre>
+
On discovery, setup your plotting environment. This is only needed the first time
on discovery..
+
%mkdir /home1/maechlin/ucvm_test
 
+
Then add these aliases into .bashrc file
just once,
+
"alias 2test='cd /project/scec_608/chukwueb/ucvm_test'"
>>mkdir /project/scec608/chukwueb/ucvm_test
+
"alias 2project='cd /project/scec_608/chukwueb'"
>>echo "alias 2test='cd /project/scec_608/chukwueb/ucvm_test'" >> ~/.bashrc
+
Save the updated .bashrc file
>>echo "alias 2project='cd /project/scec_608/chukwueb'" >> ~/.bashrc
+
then,..
>>source ~/.bashrc
+
%source ~/.bashrc
 
+
then,..
>>env |grep UCVM
+
%env |grep UCVM
 
should see setting of UCVM related environment variable like these..
 
should see setting of UCVM related environment variable like these..
  
Line 56: Line 54:
 
UCVM_INSTALL_PATH=...
 
UCVM_INSTALL_PATH=...
  
>>which ucvm_query
+
then, these command should return useful information..
>>ucvm_query -H
+
%which ucvm_query
 
+
%ucvm_query -H
>>conda env list
+
%conda env list
  
 +
<pre>
 
if you see ucvmPlotting,
 
if you see ucvmPlotting,
 
do this,
 
do this,
   >> conda activate ucvmPlotting
+
   %conda activate ucvmPlotting
 
   skip to  NEXT
 
   skip to  NEXT
 
else,
 
else,
   >>conda env create -f ucvmPlotting.yml
+
   %conda env create -f ucvmPlotting.yml
 
   this will take a while..
 
   this will take a while..
  
   >>conda env list
+
   %conda env list
  
 
   should see ucvmPlotting as one of the environment
 
   should see ucvmPlotting as one of the environment
  
   >>conda activate ucvmPlotting
+
   %conda activate ucvmPlotting
  
   >>2project
+
   %2project
   >>git clone https://github.com/SCECcode/ucvm_plotting.git
+
   %git clone https://github.com/SCECcode/ucvm_plotting.git
   >>cd ucvm_plotting
+
   %cd ucvm_plotting
   >>./unpack-dist
+
   %./unpack-dist
  
 
NEXT:
 
NEXT:
 
 
check if ucvm_plotting is there,
 
check if ucvm_plotting is there,
  
>>2project
+
%2project
>>cd ucvm_plotting/ucvm_plotting
+
%cd ucvm_plotting/ucvm_plotting
>>./run_depth.sh
+
%./run_depth.sh
 
 
  
 
to run manually,
 
to run manually,
 
+
%plot_horizontal_slice.py -b 33.35,-118 -u 34.35,-117 -e 1000 -d vs -c cvmh -a s -s 0.01 -o horizontal.png
>>plot_horizontal_slice.py -b 33.35,-118 -u 34.35,-117 -e 1000 -d vs -c cvmh -a s -s 0.01 -o horizontal.png
+
%view_png.py -f horizontal.png
>>view_png.py -f horizontal.png
 
 
 
  
 
</pre>
 
</pre>

Revision as of 16:36, 31 March 2021

CARC Getting Started Documentation

1D Vertical Profile

Create 1D vertical profile for:

  • 33.8628
  • -118.2525
  • 0-10k
  • 100m
  • Create Plot using Website

point browser to http://moho.scec.org/UCVM_web/web/viewer.php

select "1D Vertical Profile"

enter 33.8628 for Latitude

enter -118.2525 for Longitude

enter 0 for Z start

enter 1000 for Z ends

enter 100 for Z step

Create Plot using Discovery

Setup the plotting environment %2test then.. %plot_depth_profile.py -s 33.8628,-118.2525 -b 0 -e 10000 -d vs,vp,density -v 100 -c cvmh -o depth.png Then, you can view the plots with %view_png.py -f depth.png

UCVM Basin Query

Running UCVM Plotting on Discovery

On discovery, setup your plotting environment. This is only needed the first time %mkdir /home1/maechlin/ucvm_test Then add these aliases into .bashrc file "alias 2test='cd /project/scec_608/chukwueb/ucvm_test'" "alias 2project='cd /project/scec_608/chukwueb'" Save the updated .bashrc file then,.. %source ~/.bashrc then,.. %env |grep UCVM should see setting of UCVM related environment variable like these..

UCVM_SRC_PATH=... UCVM_INSTALL_PATH=...

then, these command should return useful information.. %which ucvm_query %ucvm_query -H %conda env list

if you see ucvmPlotting,
do this,
   %conda activate ucvmPlotting
   skip to  NEXT
else,
   %conda env create -f ucvmPlotting.yml
   this will take a while..

   %conda env list

   should see ucvmPlotting as one of the environment

   %conda activate ucvmPlotting

   %2project
   %git clone https://github.com/SCECcode/ucvm_plotting.git
   %cd ucvm_plotting
   %./unpack-dist

NEXT:
check if ucvm_plotting is there,

%2project
%cd ucvm_plotting/ucvm_plotting
%./run_depth.sh

to run manually,
%plot_horizontal_slice.py -b 33.35,-118 -u 34.35,-117 -e 1000 -d vs -c cvmh -a s -s 0.01 -o horizontal.png
%view_png.py -f horizontal.png

Related Entries