Next Previous Contents

5. Data commands

(see also partibrains.c::specks_read)

lines starting with # will be skipped. The following commands can be placed in a data file, as opposed to a VIRDIR command;

read file

read a speck formatted file. Recursive, commands can nest. (strtok ok??)

include file

read a speck formatted file.

ieee [-t time] file

read a IEEEIO formatted file, with optional timestep number (0 based). Support for this must be explicitly compiled into the program.

object ObjectName

parti_object()

sdb [-t time] file

read an SDB (binary) formatted file, with optional timestep number (0 based).

sdbvars var

Select var (any of: mMcrogtxyzSn)

box[es] ....

Select a box, using

xmin ymin zmin xmax ymax zmax

xmin,xmax ymin,ymax zmin,zmax

xcen,ycen,zcen xrad,yrad,zrad

[-t time] [-n boxno] [-l level] xcen,ycen,zcen xrad,yrad,zrad

annot [-t timestep] string ...

size float

scale float

tfm

something> must contain * h p r

eval command

execute a VIRDIR command

feed command

execute a VIRDIR command

VIRDIR command

execute a VIRDIR command

ignorefirst, ignorepgc

filepath path

A colon separate list of directories in which datafiles will be searched for. If preceded with the + symbol, this list will be appended to the current filepath.

texture [-lmnMDB] txno file.sgi

-l(inear)

-m(ipmap)

-n(earest)

-M(odulate)

-D(ecal)

-B(lend)

polyorivar

texturevar

texturevarord

coord name ... 16 world-to-coord tfm floats (GL order)

dataset indexno datasetname

indexno is an integer, 0 being the first one.

datavar indexno string float float

datatime indexno

Xpos Ypos Zpos Var1 ....

These lines, with XYZ positions in the first 3 columns, will make up the bulk of the dataset. The 4th and subsequent columns contain the values of the datavariables as named with the datavar commands.


Next Previous Contents