XYZ Files


These are some examples of XYZ files, a very simple format for recording points in 3D space.

An XYZ file has a simple structure:

Example XYZ File:


        #  Corners of a tetrahedron
        #
        0.0  0.0  0.0
        1.0  0.0  0.0
        0.0  1.0  0.0
        0.0  0.0  1.0
      

Related Data and Programs:

TABLE, a data directory which contains examples of TABLE files, a simple format for N points in M dimensions;

XY, a data directory which contains examples of XY files, a simple 2D graphics point format;

XYZL, a data directory which contains examples of XYZL files, a simple 3D graphics point and line format;

Programs to process an XYZ file:

SXYZ_DELAUNAY is a FORTRAN90 program which computes and plots the Delaunay triangulation of points on the unit sphere.

SXYZ_VORONOI is a FORTRAN90 program which computes and plots the Voronoi diagram of points on the unit sphere.

XYZ_TO_PDB, a FORTRAN90 program which reads an XYZ file of spatial coordinates, and rewrites the information as atomic coordinates in a PDB file.

Routines to read an XYZ file:

XYZ_IO is a FORTRAN90 library which reads and writes XYZ files.

Routines to write an XYZ file:

XYZ_IO is a FORTRAN90 library which reads and writes XYZ files.

Programs to convert an XYZ file to another format:

IVREAD is a FORTRAN90 program which can convert graphics information between various 3D formats.

Programs to convert a file to XYZ format:

IVREAD is a FORTRAN90 program which can convert graphics information between various 3D formats.

PDB_TO_XYZ, a FORTRAN90 program which copies the coordinates from the ATOM records of a PDB file into an XYZ file;

Programs to display an XYZ file:

POINTS_01_PLOT, a MATLAB program which reads an ASCII file containing points in the unit square, and makes an Encapsulated PostScript image;

POINTS_DISPLAY, a MATLAB program which reads a TABLE file containing the coordinates of points in 2D or 3D, and displays a plot of the points in a MATLAB graphics window;

POINTS_DISPLAY_OPEN_GL is a C++ program which reads a file containing 2D point coordinates, and displays an image of those points using OpenGL.

Sample XYZ files:

You can go up one level to the DATA page.


Last revised on 30 December 2008.