Tutorials‎ > ‎

CSV Tutorial

In this tutorial we will look at how we can load comma separated value files (*.csv) into ParaViewGeo, since the process is slightly different than for other files.

The CSV Reader within ParaViewGeo is designed to support 2-dimensional plotting, but will not draw any links. If a csv file containing 3-dimensional data is loaded, ParaViewGeo may crash. Please note that until version 1.4.14, the application crashes when any csv file is loaded.

Since csv files are used for other data as well, there needs to be another way to load the information. If you want to load a point set, the answer is the PSF Reader.

The PSF Reader loads Point Set Files (*.psf) into the application. These files are identical in structure to comma separated files, but just have the different file extension.

Line sets can be loaded using the Line Network Reader for *.lnr files. This reader is not supported in all builds of ParaViewGeo, but the process for loading the file is the same as for the PSF Reader.


Loading a Point Set

  • From the sample data, try to load the csvtutorial.csv file.
    • ParaViewGeo will crash as soon as you click the Apply button.
    • Click on Don't Send if required.

  • Locate the csvtutorial.csv file on your computer, and rename the file to csvtutorial.psf.
    • For Windows, if you cannot see the file extension in the list, go to Tools > Folder Options and select the View tab. Scroll until you find an option called Hide extensions for known file types, take off the checkmark, and click apply; you should now see the file extension, allowing you to change it to psf.

  • Launch ParaViewGeo.
    • Click on File > Open and load the csvtutorial.psf file.
    • The Object Inspector displays the Properties that can be changed.
    • In the Separator field enter the character used as a column separator in the file; the default is comma.
      • Note that \t is used for Tab.
    • For this file, the comma separator is correct; click on the Preview button to see what the data would look like.
      • Here we can make sure that we entered the correct separator.


  • There are two tabs at the bottom; Points specifications and Properties.
    • The Properties tab lists the headers found in the file.
    • Use the drop-downs on the Points specifications tab to select the columns that contain the X, Y and Z coordinates if required (ParaViewGeo will default to select the first three columns in the file).


  • Click on Apply to finish loading the dataset.
    • The dataset appears in the render view; you may have to rotate the viewpoint to see it correctly.


We have now looked at how to load a CSV file by changing the file extension to PSF instead.

Click on the Disconnect icon and choose Discard to clear the pipeline.




Return To
Tutorials

Comments