Newer
Older
Angular web applications for exploring hazard, disaggregations, ground motion models,
magnitude frequency distributions, and other earthquake hazard attributes.
The web applications utilize various web services from
[nshmp-haz](https://code.usgs.gov/ghsc/nshmp/nshmp-haz),
[nshmp-ws](https://code.usgs.gov/ghsc/nshmp/nshmp-ws),
[nshmp-ws-static](https://code.usgs.gov/ghsc/nshmp/nshmp-ws-static), and other sources.
The codebase, collectively called the USGS Earthquake Hazard Toolbox,
replaces the [Unified Hazard Toolbox (UHT)](https://earthquake.usgs.gov/hazards/interactive/).
The USGS Earthquake Hazard Toolbox can be found at <https://earthquake.usgs.gov/nshmp/>.
The current published version of the code is
[1.0.0](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tags/1.0.0) with IPDS record: IP-151856.
Suggested citation: Clayton, B.S., Powers, P.M., 2023, nshmp-apps:
USGS Earthquake Hazard Toolbox. U.S. Geological Survey
software release, doi: [10.5066/P9UAIISF](https://doi.org/10.5066/P9UAIISF).
- [Documentation and User guide](#documenation-and-user-guide)
- [Repository Documentation](#repository-documentation)
- [Angular USGS Earthquake Hazard Toolbox Documentation](#angular-usgs-earthquake-hazard-toolbox-documentation)
- [USGS Earthquake Hazard Toolbox Applications](#usgs-earthquake-hazard-toolbox-applications)
- [USGS Earthquake Hazard Toolbox Dashboard](#usgs-earthquake-hazard-toolbox-dashboard)
- [Hazard Applications](#hazard-applications)
- [Ground Motion Models Applications](#ground-motion-model-applications)
- [Source Model Applications](#source-model-applications)
- [Services Application](#services-application)
- [Commands](#commands)
Repository and Angular documentation:
### Repository Documentation
General documentation about this repository and development.
- <https://ghsc.code-pages.usgs.gov/nshmp/nshmp-apps/additional-documentation/repository-documentation.html>
### Angular USGS Earthquake Hazard Toolbox Documentation
Documentation on each application in the USGS Earthquake Hazard Toolbox.
- <https://ghsc.code-pages.usgs.gov/nshmp/nshmp-apps/apps>
The Angular applications collectivly create the
[USGS Earthquake Hazard Toolbox](https://earthquake.usgs.gov/nshmp/).
- Web application: <https://earthquake.usgs.gov/nshmp/>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/dashboard)
| | |
| --------------------------------------------- | ---------------------------------------------------- |
|  |  |
#### Hazard Applications
##### Disaggregation
- Web application: <https://earthquake.usgs.gov/nshmp/hazard/disagg>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/hazard/disagg)
| | |
| ----------------------------------------------- | ------------------------------------------------ |
|  |  |
##### Dynamic Hazard Calculations
- Web application: <https://earthquake.usgs.gov/nshmp/hazard/dynamic>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/hazard/dynamic)
| | |
| ------------------------------------------------------- | ------------------------------------------------------ |
|  |  |
##### Static Hazard
- Web application: <https://earthquake.usgs.gov/nshmp/hazard/static>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/hazard/static)
| | |
| ----------------------------------------------------- | --------------------------------------------------- |
|  |  |
#### Ground Motion Model Applications
##### Ground Motion vs. Distance
- Web application: <https://earthquake.usgs.gov/nshmp/gmm/distance>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/gmm/distance)
| | |
| --------------------------------------------------- | -------------------------------------------------- |
|  |  |
##### Ground Motion vs. Magnitude
- Web application: <https://earthquake.usgs.gov/nshmp/gmm/magnitude>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/gmm/magnitude)
| | |
| ----------------------------------------------------- | --------------------------------------------------- |
|  |  |
##### Response Spectra
- Web application: <https://earthquake.usgs.gov/nshmp/gmm/spectra>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/gmm/spectra)
| | |
| ----------------------------------------- | --------------------------------------------- |
|  |  |
#### Source Model Applications
- Web application: <https://earthquake.usgs.gov/nshmp/source/model-maps>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/source/model-maps)
| | |
| ---------------------------------------------------- | -------------------------------------------------------- |
|  |  |
##### Magnitude Frequency Distribution
- Web application: <https://earthquake.usgs.gov/nshmp/source/mfd>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/source/mfd)
| | |
| --------------------------------- | --------------------------------------------------- |
|  |  |
#### Services Application
- Web application: <https://earthquake.usgs.gov/nshmp/services>
- [Source code](https://code.usgs.gov/ghsc/nshmp/nshmp-apps/-/tree/main/projects/nshmp-apps/src/app/services)
| | |
| ------------------------------------------- | --------------------------------------------- |
|  |  |
- General NPM commands:
- Install dependencies: `npm ci`
- Lint: `npm run lint`
- Lint Fix: `npm run fix`
- Unit tests: `npm run test`
- Angular Commands
- Start application: `npm run start`
- Build application: `npm run build`
- Production build: `npm run build:prod`
- Serve production build locally: `npm run start:prod`
- Documentation Commands
- Build Compodocs: `npm run compodoc:build`
- Build and serve Compodocs: `npm run compodoc:start`