ISIS 3 Application Documentation
Convert a CSV file to a table and attach it to a cube
Overview
|
Parameters
|
Example 1 |
Description
This application converts a CSV file to a table and attaches it to a cube
The first row of the CSV will be used as the fieldnames for the table.
The contents of the CSV file will be converted to floating point numbers
before they are inserted into the table.
Categories
Applications
History
Jesse Mapel | 2018-09-04 |
Original version
|
|
Parameter Groups
Files
Name
|
Description
|
csv | Input CSV filename |
label | Input table label PVL filename |
to | Output cube filename |
Table
Name
|
Description
|
tablename | The name of the table |
|
Files:
csv
Description
Input CSV filename. The first row of this file will be used as the
table field names.
Type
| filename |
File Mode
| input |
Filter
|
*.csv
|
Files:
label
Description
Input table label PVL filename. This is expected to be a flat PVL
file where all of the keywords and their values will be added to
the tabel label.
Type
| filename |
File Mode
| input |
Internal Default
| None |
Filter
|
*.pvl
|
Files:
to
Description
Output cube filename that the table will be attached to
Type
| cube |
File Mode
| output |
Filter
|
*.cub
|
Table:
tablename
Description
A table will be created with this name on the output cube using the
data from the CSV file. If a table with this name already exists on
the cube it will be overwritten.
Example 1
Write a simple table
Description
Write a simple csv file to a cube.
Command Line
csv2table csv=test.csv tablename=TestTable to=isisTruth.cub
In this example, csv2table will write a table called TestTable on
isisTruth.cub with the contents of test.csv.
|