Difference between revisions of "UCVM Plotting on Discovery"

From SCECpedia
Jump to navigationJump to search
Line 19: Line 19:
 
== Configure Xwindows on Discovery ==
 
== Configure Xwindows on Discovery ==
 
*[[Export_XWindows_to_Client]]
 
*[[Export_XWindows_to_Client]]
 
== Create Plot using Discovery ==
 
Assuiming plotting has been setup for your account, you can Setup the plotting environment,
 
*%conda env list
 
*%conda activate ucvmPlotting
 
*%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
 
 
...
 
 
%conda deactivate
 
  
 
== Setting up Plotting Environment for the first time ==
 
== Setting up Plotting Environment for the first time ==
Line 100: Line 82:
  
 
</pre>
 
</pre>
 +
 +
 +
== Create Plot using Discovery ==
 +
Assuiming plotting has been setup for your account, you can Setup the plotting environment,
 +
*%conda env list
 +
*%conda activate ucvmPlotting
 +
*%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
 +
 +
...
 +
 +
%conda deactivate
 +
  
 
== Related Entries ==
 
== Related Entries ==

Revision as of 18:19, 15 April 2021

Create Plot using Website - 1D Vertical Profile

Create 1D vertical profile for location in LA Basin (CSU Dominquez Hills):

  • 33.8628
  • -118.2525
  • 0-10k
  • 100m

Create Plot using Website:

Configure Xwindows on Discovery

Setting up Plotting Environment for the first time

conda environment

(base) mei@discovery1:/project/scec_608/mei$ conda env list
# conda environments:
#
forGeomodelgrids         /home1/mei/.conda/envs/forGeomodelgrids
py3ucvm                  /home1/mei/.conda/envs/py3ucvm
ucvmPlotting             /home1/mei/.conda/envs/ucvmPlotting
withPython2              /home1/mei/.conda/envs/withPython2
base                  *  /spack/apps/linux-centos7-x86_64/gcc-8.3.0/anaconda3-2019.10-bpb6unkhyvkirwkg44uqchcy5jyhzhvt

(base) mei@discovery1:/project/scec_608/mei$ conda activate ucvmPlotting

(ucvmPlotting) mei@discovery1:/project/scec_608/mei$ conda deactivate

(base) mei@discovery1:/project/scec_608/mei$ 

setting up ucvmPlotting with conda environment

Get a copy of ucvmPlotting.yml

%cp /project/scec_608/Mei/ucvmPlotting.yml .

%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


Create Plot using Discovery

Assuiming plotting has been setup for your account, you can Setup the plotting environment,

  • %conda env list
  • %conda activate ucvmPlotting
  • %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

...

%conda deactivate


Related Entries