Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws-static
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-ws-static
Commits
56c72a97
Commit
56c72a97
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add netcdf data class for ground motions
parent
18e9ac34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!128
Production Release | nshmp-ws-static
,
!127
Resolves - Handle Multiple NetCDF Files for AASHTO Service
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/aashto/src/main/java/gov/usgs/earthquake/nshmp/netcdf/data/NetcdfDataGroundMotions.java
+29
-0
29 additions, 0 deletions
...earthquake/nshmp/netcdf/data/NetcdfDataGroundMotions.java
with
29 additions
and
0 deletions
src/aashto/src/main/java/gov/usgs/earthquake/nshmp/netcdf/data/NetcdfDataGroundMotions.java
0 → 100644
+
29
−
0
View file @
56c72a97
package
gov.usgs.earthquake.nshmp.netcdf.data
;
import
gov.usgs.earthquake.nshmp.geo.Location
;
import
gov.usgs.earthquake.nshmp.geo.Region
;
import
gov.usgs.earthquake.nshmp.geo.Regions
;
/**
* NetCDF data container for ground motions (AASHTO) data.
*
* @author U.S. Geological Survey
*/
public
class
NetcdfDataGroundMotions
extends
NetcdfData
{
private
final
Region
region
;
public
NetcdfDataGroundMotions
(
NetcdfData
netcdfData
)
{
super
(
NetcdfData
.
Builder
.
copyOf
(
netcdfData
));
region
=
Regions
.
createRectangular
(
"Region"
,
minimumBounds
(),
maximumBounds
());
}
/**
* Whether a location is contained in the bounds.
*
* @param location The location to test
*/
public
boolean
contains
(
Location
location
)
{
return
region
.
contains
(
location
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment