Web-browser application to view PyLith parameter JSON files created by
pylithinfo
or generated when running pylith
.
Download and unpack the tarball for the latest release. We recommend unpacking the tarball in the top-level PyLith directory.
tar -zxvf pylith_parameters-dist-vX.X.X.tgz
- Change to the pylith_parameters directory containing the index.html
file and start the web server. You can change the default port
(9000) for the web server using the
--port=PORT
command line argument topylith_paramviewer
.
cd pylith_parameters
pylith_paramviewer
- Point your web-browser to
http://127.0.0.1:9000
. - Load the sample JSON file
sample_parameters.json
or other file by clicking on theChoose File
button.
If you regenerate the JSON parameter file, simply click on the
Reload
button to reload the currently selected JSON parameter
file. The time stamp embedded in the parameter file corresponding to
the time it was generated is shown below the filename.
The Parameter tab (selected by default) displays the information about the parameters.
The left panel shows the hierarchy of parameters as a tree. You can
expand/collapse the tree by clicking on the triangles or Expand all
and Collapse all
buttons.
Selecting a component in the left panel by clicking on the component type (red text) will display detailed information about the component in the right panel.
The Version tab displays the version information for PyLith.
- Clone repository
git clone https://github.com/baagaard-usgs/pylith_parameters.git
cd pylith_parameters
-
Install dependencies
-
Install Node.js
-
Use node to install JavaScript libraries (dependencies)
-
Start development web server.
npm install
npm start