==================
sampo_util csv2asd
==================

.. contents:: Contents
   :local:

Overview
========

.. warning::

   sampo_util csv2asd command is deprecated.

**sampo_util csv2asd** generates an ASD file from a CSV file.
Output attribute names, scales, and domains are inferred from each columns of CSV.

|

Synopsis
========
See sampo_util command help::

  $ sampo_util csv2asd --help

|


Examples
========
* Generating an ASD file from a CSV file.

  * Command::

      $ sampo_util csv2asd data.csv

  * Input::

      _sid,dayofweek,flowername,temperature,date,comment
      0,MON,Iris-setosa,23.5,2012-01-01T01:23:45.678+09:00,
      1,TUE,Iris-setosa,20.1,2012-01-01T01:23:45.678+09:00,"John, Doe"
      2,?,Iris-setosa,,,
      3,THU,Iris-setosa,22.1,2012-04-01T04:23:45.678-10:00,
      4,FRI,Iris-setosa,21,2012-06-01T06:23:45.678Z,
      5,SAT,Iris-versicolor,24.1,2012-06-01T06:23:45.678Z,"Jacob, Smith"
      6,SUN,Iris-versicolor,21.5,2012-08-01T06:23:45.678Z,
      7,MON,Iris-versicolor,19.2,2012-09-01T06:23:45.678Z,"Ethan, Johnson"
      8,TUE,Iris-virginica,22.3,2012-04-01T06:23:45.678Z,

  * Output::

      _sid: {scale: INTEGER}
      dayofweek: {domain: [TUE, MON, THU, FRI, SAT, SUN], scale: NOMINAL}
      flowername: {domain: [Iris-setosa, Iris-versicolor, Iris-virginica], scale: NOMINAL}
      temperature: {scale: REAL}
      date: {scale: DATE}
      comment: {domain: ['Jacob, Smith', 'John, Doe', 'Ethan, Johnson'], scale: NOMINAL}

|

Input Format
============

See `CSV File Specification <../../input/csv.html>`_ .

|

Output Format
=============

See `ASD File Specification  <../../input/asd.html#asd-file>`_.
