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
158e289b
Commit
158e289b
authored
2 months ago
by
Shavers, Nicholas H
Browse files
Options
Downloads
Patches
Plain Diff
import module syntax used i.e __init__.py
parent
8b9a79fc
No related branches found
No related tags found
1 merge request
!379
Netcdf mvp
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
geomagio/Controller.py
+3
-3
3 additions, 3 deletions
geomagio/Controller.py
geomagio/netcdf/__init__.py
+8
-0
8 additions, 0 deletions
geomagio/netcdf/__init__.py
with
11 additions
and
3 deletions
geomagio/Controller.py
+
3
−
3
View file @
158e289b
...
...
@@ -7,7 +7,6 @@ from typing import List, Optional, Tuple, Union
from
obspy.core
import
Stream
,
UTCDateTime
from
geomagio.netcdf.NetCDFFactory
import
NetCDFFactory
from
.algorithm
import
Algorithm
,
algorithms
,
AlgorithmException
,
FilterAlgorithm
from
.DerivedTimeseriesFactory
import
DerivedTimeseriesFactory
...
...
@@ -27,6 +26,7 @@ from . import temperature
from
.
import
vbf
from
.
import
xml
from
.
import
covjson
from
.
import
netcdf
class
Controller
(
object
):
...
...
@@ -550,7 +550,7 @@ def get_input_factory(args):
if
input_type
==
"
iaga2002
"
:
input_factory
=
iaga2002
.
IAGA2002Factory
(
**
input_factory_args
)
if
input_type
==
"
netcdf
"
:
input_factory
=
NetCDFFactory
(
**
input_factory_args
)
input_factory
=
netcdf
.
NetCDFFactory
(
**
input_factory_args
)
elif
input_type
==
"
imfv122
"
:
input_factory
=
imfv122
.
IMFV122Factory
(
**
input_factory_args
)
elif
input_type
==
"
imfv283
"
:
...
...
@@ -637,7 +637,7 @@ def get_output_factory(args):
elif
output_type
==
"
iaga2002
"
:
output_factory
=
iaga2002
.
IAGA2002Factory
(
**
output_factory_args
)
elif
output_type
==
"
netcdf
"
:
output_factory
=
NetCDFFactory
(
**
output_factory_args
)
output_factory
=
netcdf
.
NetCDFFactory
(
**
output_factory_args
)
elif
output_type
==
"
imfjson
"
:
output_factory
=
imfjson
.
IMFJSONFactory
(
**
output_factory_args
)
elif
output_type
==
"
covjson
"
:
...
...
This diff is collapsed.
Click to expand it.
geomagio/netcdf/__init__.py
0 → 100644
+
8
−
0
View file @
158e289b
"""
IO Module for NetCDF Format
"""
from
__future__
import
absolute_import
from
.NetCDFFactory
import
NetCDFFactory
__all__
=
[
"
NetCDFFactory
"
]
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