Sending data using "sdftodv"

Once DV is running, the easiest way to load data is by using the sdftodv command, which sends data files that are in the SDF file format to the DV server. Prior to using sdftodv from a remote location, one needs to specify the internet address of the machine on which DV is running, for example:

> setenv DVHOST

Also, if the DV was started with a port number other than the default of 5005, one must set the DVPORT environment variable as was done when starting the DV.

The simplest usage for sdftodv is

> sdftodv [-i 'ivec'] <sdf_file_name> ...

The 'ivec' is an optional index vector, that can be used to control which data sets within the sdf files are to be sent.  For example

> sdftodv ./DV/data/2d_example.sdf

will send the entire file '2d_example.sdf' (which is located in the 'data' subdirectory of the standard DV distribution). To send the first 3 data sets, followed by the remaining even numbered ones from 6 onwards, enter

> sdftodv  -i '1-3,4-*/2' ./DV/data/2d_example.sdf

Note that the entire index vector must be placed in quotes to prevent the shell from interpreting any special characters.

Home         Previous        Next