# GeoPhys 
This set of utilities is used to extract geophysical information from the NCM (Boyd, 2020)
including, for example, S-wave, P-wave, and density profiles, as well as attributes for ground
motions models including *V*S30, *Z*1.0, and *Z*2.5. Running the code in either MATLAB or
This set of utilities is used to extract geophysical information from the NCM (Boyd, 2020)
including, for example, S-wave, P-wave, and density profiles, as well as attributes for ground
motions models including *V*S30, *Z*1.0, and *Z*2.5. Running the code in either MATLAB or
@@ -21,19 +23,23 @@ Python requires all of the NCM databases:
* MineralPhysicsDatabase.nc
These codes are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (https://doi.org/10.5066/P9T96Q67)
These codes are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (<https://doi.org/10.5066/P9T96Q67>)
## Python
See the [README](geophys/README.md) file in the [geophys](geophys) directory for instructions
on installing the database and running in Python.
## Matlab
See the [README](matlab/README.md) file in the [matlab](matlab) directory for running in MATLAB.
## Help
Any questions regarding the code can be directed to olboyd@usgs.gov.
## References
*Boyd, O.S., 2020, Calibration of the U.S. Geological Survey
National Crustal Model: U.S. Geological Survey Open-File
# GeoPhys Python routines 
This set of utilities is used to extract geophysical profiles from the NCM (Boyd, 2020). Running the code requires the NCM Calibration dataset (https://doi.org/10.5066/P9GO3CP8), NCM Geologic Framework databases (https://doi.org/10.5066/P9SBQENM), NCM thermal model, NCM_TemperatureGrids.nc (https://doi.org/10.5066/P935DT1G), and the NCM Petrologic and Mineral Physics database (https://doi.org/10.5066/P9HN170G). These codes and datasets are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (https://doi.org/10.5066/P9T96Q67)
This set of utilities is used to extract geophysical profiles from the NCM (Boyd, 2020). Running the code requires the NCM Calibration dataset (<https://doi.org/10.5066/P9GO3CP8>), NCM Geologic Framework databases (<https://doi.org/10.5066/P9SBQENM>), NCM thermal model, NCM_TemperatureGrids.nc (<https://doi.org/10.5066/P935DT1G>), and the NCM Petrologic and Mineral Physics database (<https://doi.org/10.5066/P9HN170G>). These codes and datasets are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (<https://doi.org/10.5066/P9T96Q67>)
Profiles can be returned from roughly -126 degrees to -100 degrees longitude and 22 to 53 degrees latitude. If the requested location is outside of the bounds of the NCM, a message to that effect will be returned.
...
...
@@ -9,19 +10,23 @@ Profiles can be returned from roughly -126 degrees to -100 degrees longitude and
# GeoPhys MATLAB routines 
This program is used to extract geophysical profiles from the NCM (Boyd, 2020). Running the code requires the NCM Calibration dataset (https://doi.org/10.5066/P9GO3CP8), NCM Geologic Framework databases (https://doi.org/10.5066/P9SBQENM), NCM thermal model, NCM_TemperatureGrids.nc (https://doi.org/10.5066/P935DT1G), and the NCM Petrologic and Mineral Physics database (https://doi.org/10.5066/P9HN170G). These codes and datasets are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (https://doi.org/10.5066/P9T96Q67)
This program is used to extract geophysical profiles from the NCM (Boyd, 2020). Running the code requires the NCM Calibration dataset (<https://doi.org/10.5066/P9GO3CP8>), NCM Geologic Framework databases (<https://doi.org/10.5066/P9SBQENM>), NCM thermal model, NCM_TemperatureGrids.nc (<https://doi.org/10.5066/P935DT1G>), and the NCM Petrologic and Mineral Physics database (<https://doi.org/10.5066/P9HN170G>). These codes and datasets are part of an effort to produce a three dimensional national crustal model for use with seismic hazard studies. (<https://doi.org/10.5066/P9T96Q67>)
Profiles can be returned from roughly -126 degrees to -100 degrees longitude and 22 to 53 degrees latitude. If the requested location is outside of the bounds of the NCM, a message to that effect will be returned.
## Installation
Within matlab, add to your path the location of the GeoPhys matlab scripts. The LoadNCMData.m script assumes that the databases (mentioned above) are installed in NCMBase/database where NCMBase is ../../(Location of LoadNCMData.m). For example, GeoPhys.m might be located in Path/NCM/GeoPhys/matlab. The database directory would then be in Path/NCM/database. LoadNCMData.m can be edited to allow for a different location of the database.
## Example
See example.m for an example.
## Help
Please see or query the code for help.
**matlab>> help GeoPhys**
...
...
@@ -17,6 +21,7 @@ Please see or query the code for help.
Any questions regarding the code and data can be directed to olboyd@usgs.gov.
## References
*Boyd, O.S., 2020, Calibration of the U.S. Geological Survey
National Crustal Model: U.S. Geological Survey Open-File