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
7e3eb744
Commit
7e3eb744
authored
8 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Plain Diff
Merge pull request
#102
from dcstewart-usgs/io_arguments
io arguments fix
parents
5d2292f2
09913fc8
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/Controller.py
+6
-3
6 additions, 3 deletions
geomagio/Controller.py
with
6 additions
and
3 deletions
geomagio/Controller.py
+
6
−
3
View file @
7e3eb744
...
...
@@ -263,6 +263,7 @@ def main(args):
observatory
=
args
.
observatory
,
type
=
args
.
type
,
interval
=
args
.
interval
)
# TODO remove magweb option
elif
args
.
input_iaga_magweb
:
inputfactory
=
iaga2002
.
MagWebFactory
(
observatory
=
args
.
observatory
,
...
...
@@ -284,14 +285,14 @@ def main(args):
inputfactory
=
imfv283
.
StreamIMFV283Factory
(
stream
=
open
(
args
.
input_imfv283_file
,
'
r
'
),
observatory
=
args
.
observatory
)
elif
args
.
input_imfv283_goes
is
not
None
:
elif
args
.
input_imfv283_goes
:
inputfactory
=
imfv283
.
GOESIMFV283Factory
(
directory
=
args
.
input_goes_directory
,
getdcpmessages
=
args
.
input_goes_getdcpmessages
,
observatory
=
args
.
observatory
,
server
=
args
.
input_goes_server
,
user
=
args
.
input_goes_user
)
elif
args
.
input_imfv283_stdin
is
not
None
:
elif
args
.
input_imfv283_stdin
:
inputfactory
=
imfv283
.
StreamIMFV283Factory
(
stream
=
sys
.
stdin
,
observatory
=
args
.
observatory
)
...
...
@@ -369,7 +370,7 @@ def main(args):
locationCode
=
locationcode
,
tag
=
args
.
output_edge_tag
,
forceout
=
args
.
output_edge_forceout
)
elif
args
.
output_plot
is
not
None
:
elif
args
.
output_plot
:
outputfactory
=
PlotTimeseriesFactory
()
else
:
print
>>
sys
.
stderr
,
"
Missing required output directive
"
...
...
@@ -527,6 +528,8 @@ def parse_args(args):
input_group
.
add_argument
(
'
--input-imfv283-file
'
,
help
=
'
Reads from the specified file.
'
)
input_group
.
add_argument
(
'
--input-imfv283-stdin
'
,
action
=
'
store_true
'
,
default
=
False
,
help
=
'
Pass in a file using redirection from stdin
'
)
input_group
.
add_argument
(
'
--input-imfv283-url
'
,
help
=
'
Example file://./
'
)
...
...
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