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
d964a28b
Commit
d964a28b
authored
4 years ago
by
Cain, Payton David
Committed by
Jeremy M Fee
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix imports
parent
67609f56
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/prepfiles.py
+7
-9
7 additions, 9 deletions
bin/prepfiles.py
geomagio/pcdcp/__init__.py
+8
-1
8 additions, 1 deletion
geomagio/pcdcp/__init__.py
with
15 additions
and
10 deletions
bin/prepfiles.py
+
7
−
9
View file @
d964a28b
from
__future__
import
absolute_import
from
os
import
path
import
os
import
sys
from
datetime
import
datetime
from
dateutil.relativedelta
import
relativedelta
import
sys
from
os
import
path
import
os
from
obspy.core
import
UTCDateTime
# ensure geomag is on the path before importing
...
...
@@ -14,11 +13,13 @@ except ImportError:
script_dir
=
path
.
dirname
(
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
path
.
normpath
(
path
.
join
(
script_dir
,
"
..
"
)))
from
geomagio.residual
import
WebAbsolutesFactory
,
CalFileFactory
from
geomagio.pcdcp.PCDCPFactory
import
PCDCPFactory
,
PCDCP_FILE_PATTERN
from
geomagio.edge.EdgeFactory
import
EdgeFactory
from
geomagio.pcdcp
import
PCDCPFactory
,
PCDCP_FILE_PATTERN
from
geomagio.residual
import
WebAbsolutesFactory
,
CalFileFactory
CAL_FILENAME_FORMAT
=
"
{OBSERVATORY}{YEAR}PCD.cal
"
MIN_TEMPLATE
=
"
file://c:/USGSDCP/%(OBS)s/
"
+
PCDCP_FILE_PATTERN
RAW_TEMPLATE
=
"
file://c:/RAW/%(OBS)s/
"
+
PCDCP_FILE_PATTERN
if
len
(
sys
.
argv
)
!=
4
:
cmd
=
sys
.
argv
[
0
]
...
...
@@ -79,9 +80,6 @@ min_timeseries = edge_factory.get_timeseries(
type
=
"
variation
"
,
)
RAW_TEMPLATE
=
"
file://c:/RAW/%(OBS)s/
"
+
PCDCP_FILE_PATTERN
MIN_TEMPLATE
=
"
file://c:/USGSDCP/%(OBS)s/
"
+
PCDCP_FILE_PATTERN
raw_factory
=
PCDCPFactory
(
observatory
=
OBSERVATORY
,
channels
=
channels
,
...
...
This diff is collapsed.
Click to expand it.
geomagio/pcdcp/__init__.py
+
8
−
1
View file @
d964a28b
...
...
@@ -3,9 +3,16 @@
from
__future__
import
absolute_import
from
.PCDCPFactory
import
PCDCPFactory
from
.PCDCPFactory
import
PCDCP_FILE_PATTERN
from
.StreamPCDCPFactory
import
StreamPCDCPFactory
from
.PCDCPParser
import
PCDCPParser
from
.PCDCPWriter
import
PCDCPWriter
__all__
=
[
"
PCDCPFactory
"
,
"
StreamPCDCPFactory
"
,
"
PCDCPParser
"
,
"
PCDCPWriter
"
]
__all__
=
[
"
PCDCPFactory
"
,
"
PCDCP_FILE_PATTERN
"
,
"
StreamPCDCPFactory
"
,
"
PCDCPParser
"
,
"
PCDCPWriter
"
,
]
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