Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
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
Container Registry
Model registry
Operate
Environments
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 Geomagnetism Program
geomag-algorithms
Commits
d3698a09
Commit
d3698a09
authored
9 years ago
by
Hal Simpson
Browse files
Options
Downloads
Patches
Plain Diff
made changes for new interval specific metadata
parent
62fb154f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/edge/ObservatoryMetadata_test.py
+18
-13
18 additions, 13 deletions
geomagio/edge/ObservatoryMetadata_test.py
with
18 additions
and
13 deletions
geomagio/edge/ObservatoryMetadata_test.py
+
18
−
13
View file @
d3698a09
...
...
@@ -7,10 +7,6 @@ import obspy.core
METADATA
=
{
'
BOU
'
:
{
'
data_interval_type
'
:
{
'
minute
'
:
'
filtered 1-minute (00:15-01:45)
'
,
'
second
'
:
'
Average 1-Second
'
},
'
metadata
'
:
{
'
station_name
'
:
'
Boulder
'
,
'
agency_name
'
:
'
United States Geological Survey (USGS)
'
,
...
...
@@ -24,20 +20,28 @@ METADATA = {
'
is_intermagnet
'
:
False
,
'
conditions_of_use
'
:
'
The Conditions of Use for data provided
'
+
'
through INTERMAGNET and acknowledgement templates
'
+
'
can be found at www.intermagnet.org
'
,
'
filter_comments
'
:
'
Vector 1-minute values are computed from
'
+
'
1-second values using the INTERMAGNET gaussian filter
'
+
'
centered on the minute. Scalar 1-minute values are
'
+
'
computed from 1-secondvalues using the INTERMAGNET
'
+
'
gaussian filter centered on the minute.
'
'
can be found at www.intermagnet.org
'
},
'
interval_specific
'
:
{
'
minute
'
:
{
'
data_interval_type
'
:
'
filtered 1-minute (00:15-01:45)
'
,
'
filter_comments
'
:
[
'
Vector 1-minute values are computed
'
+
'
from 1-second values using the INTERMAGNET gaussian
'
+
'
filter centered on the minute. Scalar 1-minute values
'
+
'
are computed from 1-second values using the
'
+
'
INTERMAGNET gaussian filter centered on the minute.
'
]
},
'
second
'
:
{
'
data_interval_type
'
:
'
Average 1-Second
'
}
}
}
}
DATA_INTERVAL_TYPE
=
{
'
minute
'
:
'
filtered 1-minute (00:29-01:30)
'
,
'
second
'
:
'
filtered 1-Second
'
'
minute
'
:
{
'
data_interval_type
'
:
'
filtered 1-minute (00:29-01:30)
'
}
,
'
second
'
:
{
'
data_interval_type
'
:
'
filtered 1-Second
'
}
}
...
...
@@ -63,4 +67,5 @@ def test_set_metadata():
observatorymetadata
.
set_metadata
(
stats
,
'
BOU
'
,
'
MVH
'
,
'
quasi-definitive
'
,
'
second
'
)
assert_equals
(
stats
[
'
declination_base
'
],
20000
)
assert_equals
(
stats
[
'
data_interval_type
'
],
'
filtered 1-Second
'
)
print
stats
assert_equals
(
stats
[
'
data_interval_type
'
],
'
Average 1-Second
'
)
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