Reading Data from ASCII Tables

The ASCII Table reader reads in a flat ascii file with one record per line. Each line of the file is identified as a record or non-record. Autoplot URIs are the name of the ascii file and parameters that specify how to parse the file, listed below. A GUI is also provided that allows the URI to be created graphically. This does not provide access to all the available controls, but is much easier to use.

ftp://nssdcftp.gsfc.nasa.gov/spacecraft_data/omni/omni2_1963.dat&column=field17
ftp://nssdcftp.gsfc.nasa.gov/spacecraft_data/omni/omni2_$Y.dat?time=field0&timeFormat=$Y+$d+$H&column=field17
http://goes.ngdc.noaa.gov/data/avg/2004/A1050412.TXT?skip=23&timeFormat=$y$m$d+$H$M&column=E1&time=YYMMDD

ftp://nssdcftp.gsfc.nasa.gov/spacecraft_data/omni/omni2_$Y.dat?column=field17&timerange=1963&timeFormat=$Y+$j+$H&time=field0&validMax=999

ASCII Table Data Source Editor Panel

A GUI editor can be used to make it easier to read in data. A table is displayed showing how the reader would parse the file. Darker lines that are not broken into columns are lines identified as non-records, such as header lines. Here is an explaination of the controls:

header tab: identify records and non-records.


Skip Lines: the number of lines to skip before attempting to parse records. Press "Select" then click on the first parseable line.
Comment Prefix: lines starting with this are treated as non-records.

times tab: specify how times are parsed


Time Format: format for interpretting times. For example "$Y $m $d" means the first three fields are interpretted as year, month, and day. "$Y$m$d" means the first field is an 8-digit date. Press "Select" and highlite the fields in one of the records. This will copy the fields up into the Time Format text field. Then in the text field, highlite each field and use the droplist to identify the field type. Note if the field is already ISO8601 compliant, the parser should not need the time format to be specified.

data: identify data to plot and interdependence.


Column: the column to plot. Note if the first record is column labels, then these labels can be used to identify columns. Press "Select", then click on a field to select the column. If a several adjacent fields are selected, then a rank 2 table is plotted (e.g. as a spectrogram)
Depends On: the column that tags the column to plot. This is the independent parameter upon which the dependent parameter depends. Press "Select" then click on the field to select the column.
Time checkbox: identify the "Depends On" as times.

Formatting to ASCII Tables

Data can also be formatted to ascii tables. Presently data is formatted to a comma-separated-values (csv) file, and no formatting options are provided. Use Autoplot's "File->Export Data", then select a file name with a .csv, .dat, or .txt extension. this page in the wiki