Download By Site Coordinates (JSON)
Get broadband ground motions, response spectra, and metadata for site coordinates (JSON format).
Requested Parameters
Required Parameters:
Latitude
Specify the latitude of the site location. Example: 47.6
Longitude
Specify the longitude of the site location. Example: -122.3
Optional Parameters:
Unprocessed
Specify whether or not the broadbands should be unprocessed. Note that you can not specify Response Spectra calculations with unprocessed broadbands. Example: True
or False
Default: True
ResponseSpectra
Specify whether or not the spectral accelerations should be calculated and return. Example: True
or False
Default: False
GetDistanceToRupture
Specify whether or not the closest distance to rupture should be calculated and return. Example: True
or False
Default: False
SensitivityRuns
Download the sensitivity runs from Wirth et al. 2018 (instead of logic tree runs part of the Frankel et al. 2018 ). Example: True
or False
Default: False
Output
Web service response: JSON is organized by realization where each record contains the following fields:
Realization
realization id
StationCode
Unique station identifier
DistanceToClosestSite
Closest distance from the specified latitude and longitude to the station latitude and longitude
Timestep
Time step of acceleration history in seconds
CutOffTime
Time where the numerical instability occurs. If motions are processed then the acceleration history does not include content after the cutoff time
AccelerationHistory-EW
Acceleration history in the east-west direction (in units of g)
AccelerationHistory-NS
Acceleration history in the north-south direction (in units of g)
AccelerationHistory-Vert
Acceleration history in the down-up direction (in units of g)
SpetralAcceleration-EW
Spectral accelerations in the east-west direction (in units of g)
SpetralAcceleration-NS
Spectral accelerations in the north-south direction (in units of g)
Period
Periods of spectral accelerations (in seconds)
ClosestDistanceToRupture
Closest distance to fault rupture plane (in km)
Example
Request (run time 2-3 minutes per request)
To access the acceleration histories (JSON format) for a particular location, paste the following URL into the browser address bar:
https://m9-broadband-download-rwqks6gbba-uc.a.run.app/getMotionFromLatLon?Latitude=47.6062&Longitude=-122.3321
To get unprocessed acceleration histories (JSON format) for a particular location, paste the following URL into the browser address bar:
https://m9-broadband-download-rwqks6gbba-uc.a.run.app/getMotionFromLatLon?Latitude=47.6062&Longitude=-122.3321&Unprocessed=True
To get response spectra (JSON format) for a particular location, paste the following URL into the browser address bar:
https://m9-broadband-download-rwqks6gbba-uc.a.run.app/getMotionFromLatLon?Latitude=47.6062&Longitude=-122.3321&ResponseSpectra=True
To download JSON file (broadband.json) with acceleration histories for a particular location from the command prompt (terminal):
curl "https://m9-broadband-download-rwqks6gbba-uc.a.run.app/getMotionFromLatLon?Latitude=47.6062&Longitude=-122.3321" --output broadband.json
Response
[ { "Realization": "csz003", "StationCode": "A11923", "DistanceToClosestSite": 0.464591, "TimeStep": 0.02, "CutOffTime": 305.60001, "AccelerationHistory-EW": [ 0.0, 0.0, 0.0, 0.0, 0.0, ..., ], "AccelerationHistory-NS": [ 0.0, 0.0, 0.0, 0.0, 0.0, ..., ], "AccelerationHistory-Vert": [ 0.0, 0.0, 0.0, 0.0, 0.0, ..., ], }, { "Realization": "csz004", ... }, ... ]