UCVM Install
From SCECpedia
Contents
Terminal Message to User - Successful Installation Completes
Done installing UCVM! Thank you for installing UCVM. Once you have set these environment variables, return to the UCVM source directory and type make check This will run the UCVM unit and acceptance tests. If all tests pass. UCVM is correctly installed and ready to use on your computer. To try out ucvm, once the tests pass, move to the UCVM installation directory, and run an example query. As an example: cd /project/maechlin_162/ucvm_bin ./bin/ucvm_query -f ./conf/ucvm.conf -m cvms < ./tests/inputs/test_latlons.txt You will then see the following output: Using Geo Depth coordinates as default mode. -118.0000 34.0000 0.000 280.896 390.000 cvms 696.491 213.000 1974.976 none 0.000 0.000 0.000 crust 696.491 213.000 1974.976 -118.0000 34.0000 50.000 280.896 390.000 cvms 1669.540 548.000 2128.620 none 0.000 0.000 0.000 crust 1669.540 548.000 2128.620 -118.0000 34.0000 100.000 280.896 390.000 cvms 1683.174 603.470 2130.773 none 0.000 0.000 0.000 crust 1683.174 603.470 2130.773 -118.0000 34.0000 500.000 280.896 390.000 cvms 3097.562 1656.495 2354.105 none 0.000 0.000 0.000 crust 3097.562 1656.495 2354.105 -118.0000 34.0000 1000.000 280.896 390.000 cvms 3660.809 2056.628 2443.042 none 0.000 0.000 0.000 crust 3660.809 2056.628 2443.042 Installation complete. Installation log file saved at ./setup_log.sh
After Install Completes
- which ucvm_query’ to see if your environment is setup
- source conf/ucvm_env.sh script from either install directory or source directory
- ucvm_query -H
- installed_models.py
- delete src directory
- goto <install>/tests directory: CARC: /project/maechlin_162/ucvm_bin/tests
- ./run-testing
- Notes
Testing on CARC discovery: Download onto /project filesystem - 20 minutes Compiled on headnode - 20 minutes Tests run on headnode - 20 minutes
Test Additions
Confirm each commmand line parameter
(base) [maechlin@discovery2 ~]$ ucvm_query -H Usage: ucvm_query [-m models<:ifunc>] [-p user_map] [-c coordtype] [-f config] [-z zmin,zmax] [-b] < file.in Flags: -h This help message. -H Detail help message. -m Comma delimited list of crustal/GTL models to query in order of preference. GTL models may optionally be suffixed with ':ifunc' to specify interpolation function. -c Z coordinate mode: geo-depth (gd, default), geo-elev (ge). -f Configuration file. Default is ./ucvm.conf. -p User-defined map to use for elevation and vs30 data. -v Display model version information only. -z Optional depth range for gtl/crust interpolation. -b Optional output in json format -l Optional input lon,lat,Z(depth/elevation) Input format is: lon lat Z Output format is: lon lat Z surf vs30 crustal cr_vp cr_vs cr_rho gtl gtl_vp gtl_vs gtl_rho cmb_algo cmb_vp cmb_vs cmb_rho Notes: - If running interactively, type Cntl-D to end input coord list. Version: 19.4.0 Installed Resources: 1d : crustal model bbp1d : crustal model cmuetree : crustal model 1dgtl : gtl elygtl : gtl cvms : crustal model cvmh : crustal model cencal : crustal model cvmsi : crustal model albacore : crustal model cvms5 : crustal model cca : crustal model cs173 : crustal model cs173h : crustal model linear : ifunc ely : ifunc ucvm : map yong : map model_etree : model i/f model_patch : model i/f map_etree : map i/f