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
c37057f4
Unverified
Commit
c37057f4
authored
7 years ago
by
Jeremy M Fee
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #198 from hschovanec-usgs/hschovanec-CLI-json
Add json output to CLI and update docs
parents
6e497e05
d04b51f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/io.md
+5
-2
5 additions, 2 deletions
docs/io.md
geomagio/Controller.py
+4
-0
4 additions, 0 deletions
geomagio/Controller.py
with
9 additions
and
2 deletions
docs/io.md
+
5
−
2
View file @
c37057f4
...
@@ -53,7 +53,7 @@ Interval specifies the amount of data in each url and defaults to 1 day.
...
@@ -53,7 +53,7 @@ Interval specifies the amount of data in each url and defaults to 1 day.
### Output Format
### Output Format
`--output {binlog, edge, iaga2002, pcdcp, plot, temperature, vbf}`
`--output {binlog, edge, iaga2002,
imfjson,
pcdcp, plot, temperature, vbf}`
Specify output format.
Specify output format.
...
@@ -66,6 +66,9 @@ Specify output format.
...
@@ -66,6 +66,9 @@ Specify output format.
`iaga2002`
`iaga2002`
IAGA2002 format.
IAGA2002 format.
`imfjson`
IMFJSON format.
`pcdcp`
`pcdcp`
PCDCP format.
PCDCP format.
...
@@ -104,7 +107,7 @@ For output formats `binlog`, `iaga2002`, `pcdcp`, `temperature`, `vbf`
...
@@ -104,7 +107,7 @@ For output formats `binlog`, `iaga2002`, `pcdcp`, `temperature`, `vbf`
`--output-file FILE`
`--output-file FILE`
Write to a specific file.
Write to a specific file.
`--output-std
in
`
`--output-std
out
`
Write to standard output
Write to standard output
`--output-url URLTEMPLATE`
`--output-url URLTEMPLATE`
...
...
This diff is collapsed.
Click to expand it.
geomagio/Controller.py
+
4
−
0
View file @
c37057f4
...
@@ -14,6 +14,7 @@ from . import TimeseriesUtility
...
@@ -14,6 +14,7 @@ from . import TimeseriesUtility
from
.
import
binlog
from
.
import
binlog
from
.
import
edge
from
.
import
edge
from
.
import
iaga2002
from
.
import
iaga2002
from
.
import
imfjson
from
.
import
pcdcp
from
.
import
pcdcp
from
.
import
imfv122
from
.
import
imfv122
from
.
import
imfv283
from
.
import
imfv283
...
@@ -378,6 +379,8 @@ def get_output_factory(args):
...
@@ -378,6 +379,8 @@ def get_output_factory(args):
output_factory
=
binlog
.
BinLogFactory
(
**
output_factory_args
)
output_factory
=
binlog
.
BinLogFactory
(
**
output_factory_args
)
elif
output_type
==
'
iaga2002
'
:
elif
output_type
==
'
iaga2002
'
:
output_factory
=
iaga2002
.
IAGA2002Factory
(
**
output_factory_args
)
output_factory
=
iaga2002
.
IAGA2002Factory
(
**
output_factory_args
)
elif
output_type
==
'
imfjson
'
:
output_factory
=
imfjson
.
IMFJSONFactory
(
**
output_factory_args
)
elif
output_type
==
'
pcdcp
'
:
elif
output_type
==
'
pcdcp
'
:
output_factory
=
pcdcp
.
PCDCPFactory
(
**
output_factory_args
)
output_factory
=
pcdcp
.
PCDCPFactory
(
**
output_factory_args
)
elif
output_type
==
'
temperature
'
:
elif
output_type
==
'
temperature
'
:
...
@@ -766,6 +769,7 @@ def parse_args(args):
...
@@ -766,6 +769,7 @@ def parse_args(args):
'
binlog
'
,
'
binlog
'
,
'
edge
'
,
'
edge
'
,
'
iaga2002
'
,
'
iaga2002
'
,
'
imfjson
'
,
'
pcdcp
'
,
'
pcdcp
'
,
'
plot
'
,
'
plot
'
,
'
temperature
'
,
'
temperature
'
,
...
...
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