Skip to content
Snippets Groups Projects
io.md 3.52 KiB
Newer Older
Jeremy M Fee's avatar
Jeremy M Fee committed
IO Formats
==========
Eddie McWhirter's avatar
Eddie McWhirter committed

Jeremy M Fee's avatar
Jeremy M Fee committed
#### EDGE
Specify an IP address or host name where your Edge lives along with a port.

Jeremy M Fee's avatar
Jeremy M Fee committed
#### Iaga2002
Specify the name of the file to read from.

`--input-iaga-magweb`
Data will be pulled from geomag.usgs.gov/data/magnetometer if it exists.

`--input-iaga-stdin`
Use redirection on the command line to send your data in.

`--input-iaga-url URL`
Use a file pattern to read from multiple IAGA2002 files.

`--output-iaga-file FILENAME`
Specify the name of the file to write to.

`--output-iaga-stdout`
Output will be send directly to the command line.

`--output-iaga-url URL`
Use a file pattern to write to multiple IAGA2002 files.

Jeremy M Fee's avatar
Jeremy M Fee committed
#### IMFV283
Hal Simpson's avatar
Hal Simpson committed

`--input-imfv283-file FILENAME`
Hal Simpson's avatar
Hal Simpson committed
Specify the name of the file to read from.

`--input-imfv283-stdin`
Hal Simpson's avatar
Hal Simpson committed
Use redirection on the command line to send your data in.

`--input-imfv283-url URL`
Hal Simpson's avatar
Hal Simpson committed
Use a file pattern to read IMFV283 file.

Hal Simpson's avatar
Hal Simpson committed
`--input-imfv283-goes`
Hal Simpson's avatar
Hal Simpson committed
Reads IMFV283 data from an internet goes server.

Jeremy M Fee's avatar
Jeremy M Fee committed
#### PCDCP

`--input-pcdcp-file FILENAME`
Specify the name of the file to read from.

`--input-pcdcp-stdin`
Use redirection on the command line to send your data in.

`--input-pcdcp-url URL`
Use a file pattern to read from multiple PCDCP files.

`--output-pcdcp-file FILENAME`
Specify the name of the file to write to.

`--output-pcdcp-stdout`
Output will be send directly to the command line.

`--output-pcdcp-url`
Use a file pattern to write to multiple PCDCP files.

Eddie McWhirter's avatar
Eddie McWhirter committed

Jeremy M Fee's avatar
Jeremy M Fee committed
## IO Methods
Eddie McWhirter's avatar
Eddie McWhirter committed
Several methods exist for retrieving and storing data.

Jeremy M Fee's avatar
Jeremy M Fee committed
#### Edge Server
Specify an IP address or host name where your Edge lives along with a port.
Eddie McWhirter's avatar
Eddie McWhirter committed

Jeremy M Fee's avatar
Jeremy M Fee committed
#### Single File
Eddie McWhirter's avatar
Eddie McWhirter committed

```
--input-iaga-file FILENAME
--input-imfv283-file FILENAME
--input-pcdcp-file FILENAME
--output-iaga-file FILENAME
--output-pcdcp-file FILENAME
```

Eddie McWhirter's avatar
Eddie McWhirter committed
Specify a single file name for the data to be read from or written to.

Jeremy M Fee's avatar
Jeremy M Fee committed
#### Multiple Files
```
--input-iaga-url
--input-imfv283-url
--input-pcdcp-url
--output-iaga-url
--output-pcdcp-url
```

Eddie McWhirter's avatar
Eddie McWhirter committed
URLs can be used to fetch or store groups of data using pattern matching. In
order to use a directory of files on a local machine, just specify "file://"
at the beginning of the pattern.

Patterns that will be matched with information from the data:
| Pattern           | Purpose                                                  |
| ----------------- | -------------------------------------------------------- |
| __%(i)s__         | interval abbreviation (sec, min, hor, etc.)              |
| __%(interval)s__  | interval name (second, minute, hour, etc.)               |
| __%(julian)s__    | julian day formatted as JJJ                              |
| __%(obs)s__       | lowercase observatory 3-letter code                      |
| __%(OBS)s__       | uppercase observatory 3-letter code                      |
| __%(t)s__         | type abbreviation (v, q, d, etc.)                        |
| __%(type)s__      | type name (variation, quasi-definitive, definitive, etc.)|
| __%(year)s__      | year formatted as YYYY                                   |
| __%(ymd)s__       | time formatted as YYYYMMDD                               |
Eddie McWhirter's avatar
Eddie McWhirter committed

Typical IAGA2002 files are stored as `file://./%(obs)s%(ymd)s%(t)%(i)s.%(i)s`
Eddie McWhirter's avatar
Eddie McWhirter committed

Typical PCDCP files are stored as `file://./%(OBS)s%(Y)s%(j)s.%(i)s`

Jeremy M Fee's avatar
Jeremy M Fee committed
#### Std In and Std Out
```
--input-iaga-stdin
--input-imfv283-stdin
--input-pcdcp-stdin
--output-iaga-stdout
--output-pcdcp-stdout
```
Eddie McWhirter's avatar
Eddie McWhirter committed

For standard in, pass the data in with redirection.