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
d04b51f2
Commit
d04b51f2
authored
7 years ago
by
Hunsinger, Heather Elizabeth
Browse files
Options
Downloads
Patches
Plain Diff
Add json output to CLI and update docs
parent
331dcde1
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
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 @
d04b51f2
...
...
@@ -53,7 +53,7 @@ Interval specifies the amount of data in each url and defaults to 1 day.
### Output Format
`--output {binlog, edge, iaga2002, pcdcp, plot, temperature, vbf}`
`--output {binlog, edge, iaga2002,
imfjson,
pcdcp, plot, temperature, vbf}`
Specify output format.
...
...
@@ -66,6 +66,9 @@ Specify output format.
`iaga2002`
IAGA2002 format.
`imfjson`
IMFJSON format.
`pcdcp`
PCDCP format.
...
...
@@ -104,7 +107,7 @@ For output formats `binlog`, `iaga2002`, `pcdcp`, `temperature`, `vbf`
`--output-file FILE`
Write to a specific file.
`--output-std
in
`
`--output-std
out
`
Write to standard output
`--output-url URLTEMPLATE`
...
...
This diff is collapsed.
Click to expand it.
geomagio/Controller.py
+
4
−
0
View file @
d04b51f2
...
...
@@ -14,6 +14,7 @@ from . import TimeseriesUtility
from
.
import
binlog
from
.
import
edge
from
.
import
iaga2002
from
.
import
imfjson
from
.
import
pcdcp
from
.
import
imfv122
from
.
import
imfv283
...
...
@@ -378,6 +379,8 @@ def get_output_factory(args):
output_factory
=
binlog
.
BinLogFactory
(
**
output_factory_args
)
elif
output_type
==
'
iaga2002
'
:
output_factory
=
iaga2002
.
IAGA2002Factory
(
**
output_factory_args
)
elif
output_type
==
'
imfjson
'
:
output_factory
=
imfjson
.
IMFJSONFactory
(
**
output_factory_args
)
elif
output_type
==
'
pcdcp
'
:
output_factory
=
pcdcp
.
PCDCPFactory
(
**
output_factory_args
)
elif
output_type
==
'
temperature
'
:
...
...
@@ -766,6 +769,7 @@ def parse_args(args):
'
binlog
'
,
'
edge
'
,
'
iaga2002
'
,
'
imfjson
'
,
'
pcdcp
'
,
'
plot
'
,
'
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