Difference between revisions of "Running UCVM on Discovery"

From SCECpedia
Jump to navigationJump to search
Line 20: Line 20:
 
<pre>
 
<pre>
 
on discovery..
 
on discovery..
 +
 +
>>alias 2project='cd /project/scec_609/chukwueb'
  
 
>>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..
  
TEST_UCVM_TARGET=...
 
 
UCVM_SRC_PATH=...
 
UCVM_SRC_PATH=...
 
UCVM_INSTALL_PATH=...
 
UCVM_INSTALL_PATH=...
Line 45: Line 46:
  
 
   >>conda activate ucvmPlotting
 
   >>conda activate ucvmPlotting
 +
 +
  >>2project
 +
  >>git clone https://github.com/SCECcode/ucvm_plotting.git
 +
  >>cd ucvm_plotting
 +
  >>./unpack-dist
  
 
NEXT:
 
NEXT:
  
>>cd $TEST_UCVM_TARGET
+
check if ucvm_plotting is there,
>>git clone https://github.com/SCECcode/ucvm_plotting.git
+
 
>>cd ucvm_plotting
+
>>2project
>>./unpack-dist
+
>>cd ucvm_plotting/ucvm_plotting
>>cd ucvm_plotting
 
 
>>./run_depth.sh
 
>>./run_depth.sh
  
 
to run manually,
 
to run manually,
 +
 
>>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
  
 
you can look at it with,
 
you can look at it with,
 +
 
>>view_png.py -f depth.png
 
>>view_png.py -f depth.png
 +
 +
another example,
 +
 +
>>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
 +
 +
 
</pre>
 
</pre>
  

Revision as of 15:08, 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
  • Create Plot using Discovery

UCVM Basin Query

Running UCVM Plotting on Discovery

on discovery..

>>alias 2project='cd /project/scec_609/chukwueb'

>>env |grep UCVM
should see setting of UCVM related environment variable like these..

UCVM_SRC_PATH=...
UCVM_INSTALL_PATH=...

>>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_depth_profile.py -s 33.8628,-118.2525 -b 0 -e 10000 -d vs,vp,density -v 100 -c cvmh -o depth.png

you can look at it with,

>>view_png.py -f depth.png

another example,

>>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