You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Philip Crotwell edited this page Sep 28, 2023
·
7 revisions
Using Seisplotjs
Depending on what you are trying to do, there are two main ways to use seisplotjs. Users just adding seismic data to a web page probably will just make use of the released standalone javascript file. More complicated uses, either web sites or using seisplotjs as a dependency for more development will probably benefit from NPM.
Standalone
Releases packaged as a standalone javascript library suitable for direct use in a browser can be found here: http://www.seis.sc.edu/downloads/seisplotjs/. This file can either be linked directly from your html page or downloaded and hosted on your server.
<script type="module">
import * as sp from "./seisplotjs_3.1.1_standalone.mjs";
\\ your code here
</script>
NPM
More complicated uses should get seisplotjs via NPM. Create a NPM project, basically a directory with a package.json and then
npm install --save seisplotjs
NPM will handle pulling in seisplotjs along
with the dependencies. See the NPM docs for more information.