Skip to content
Snippets Groups Projects
Unverified Commit c37057f4 authored by Jeremy M Fee's avatar Jeremy M Fee Committed by GitHub
Browse files

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
No related tags found
No related merge requests found
......@@ -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-stdin`
`--output-stdout`
Write to standard output
`--output-url URLTEMPLATE`
......
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment