home *** CD-ROM | disk | FTP | other *** search
- 3.1 NCSA HDF Vset
-
-
- Vset Utilities 3.1
-
-
- National Center for Supercomputing Applications
-
- November 1990
-
-
-
-
-
-
-
-
-
- Chapter 3 Vset Utilities
-
-
-
- Chapter Overview
- vshow
- Synopsis
- vshow Description
- Bugs
- vmake
- Synopsis
- vmake Description
- Creating New Vgroups
- Creating New Vdatas
- Creating Links
- Bugs
-
- Chapter Overview
-
- This chapter describes the utilities available in NCSA HDF Vset.
-
-
- vshow
-
- vshow lists vset information in an HDF file.
-
-
- Synopsis
- Ñ vshow file [options]
-
-
- vshow Description
- For a HDF file containing vset elements, vshow lists and displays
- information on all the vgroups in that file, in the order stored,
- followed by the vdatas.
-
- Options:
- - dumps all the data stored in ALL vdatas, without
- formatting.
-
- + as for the '-' option, but formatted, i.e. each record of a vdata
- is separated from the other, on a new line.
-
- -n dumps data for the vdata with reference number n,
- unformatted.
-
- +n dumps data for the vdata with reference number n,
- formatted.
-
- Information about vdatas that are not linked to any vgroup are
- preceded by an "L".
-
- vshow is primarily used to examine the contents of vsets. But
- vshow is also useful for converting vsets in HDF files into ASCII.
- The utility outputs full data dumps of vdatas through standard
- output, but outputs general information through standard error.
-
- Hence,
-
- vshow myfile.hdf +4 > text.file
-
- will create an ASCII file containing formatted ASCII data from the
- vdata with reference number 4.
-
-
- Bugs
- For full vdata dump, you must specify only one vdata or all vdatas.
-
-
- vmake
-
- vmake creates vgroups, and vdatas and links them in an HDF file.
-
-
- Synopsis
- Ñ vmake file vgroup-name
- creates a vgroup.
-
- Ñ vmake file vdata-name format
- creates a vdata.
-
- Ñ vmake file -l vgroup-ref ref1 ref2...refn
- links vgroups and vdatas.
-
-
- vmake Description
- vmake is a general utility for generating vsets in an HDF file.
- You may use vmake in three different ways: (1) for creating new
- vgroups, (2) for storing data into new vdatas, and (3) for creating
- links among vgroups and vdatas.
-
- Invoking vmake with no arguments provides help.
-
- Return value: If vmake is successful it prints a positive number;
- otherwise, a negative number is printed.
-
-
- Creating New Vgroups
- vmake creates a new vgroup, named vgroup-name in the HDF file
- file. This new vgroup will not overwrite any information within
- the file, if that file exists. If it doesn't, vmake creates a new file.
- Upon successful creation, the program prints the reference number
- of that vgroup.
-
-
- Creating New Vdatas
- vmake creates a new vdata, named vdata-name in the HDF file
- file, and converts and stores ASCII data *from standard input*
- in the vdata according to field specifications in format.
-
- format has the form field1=conv,field2=conv,..
-
- where
-
- field1, field2
-
- denotes fields you would define for that vdata (e.g., PX for
- floating-point x-values, PLIST for connectivity data).
-
- conv
-
- is a single character specifying the field type. Thus, it is one of
- the following:
-
- f - float
- d - integer
- l - long
- c - character.
-
- Each field type may be optionally preceded by a repetition-number,
- i.e., the number of data items of the same type that together
- comprise one instance of the field. For example, the repetition
- number "3" in PLIST=3d specifies that each instance of the field
- called PLIST will consist of 3 integers.
-
- Note that a stream of ASCII data from standard input is expected.
-
- Examples:
-
- vmake vset.hdf "coordinates" "PX=f,PY=f,PZ=f"
- < pos.dat
-
- will create a vdata named "coordinates" containing 3 fields
- "PX","PY" and "PZ", each of type float. In this case, a stream of
- ASCII floating-point numbers is read from the ASCII file pos.dat.
-
- myprog | vmake vset.hdf "simulation5" "DENSITY=f"
-
- will create a vdata named simulation5 containing a single field
- of type float named DENSITY. In this case, the output from the
- program myprog (a stream of ASCII floating-point numbers) is
- piped into vmake.
-
-
- Creating Links
- vmake in this context allows one or several vdatas or vgroups to be
- inserted (linked) to a vgroup. All vgroups and vdata are identified
- by their reference numbers.
-
- vgroup-ref is the reference number of the vgroup into which the
- other vgroups or vdatas are to be inserted.
-
- ref1 ref2...refn are the reference numbers of those vgroups or
- vdatas to be inserted.
-
- Reference numbers of existing vgroups and vdatas can be
- displayed using vshow.
-
- vmake permits the creation of empty vgroups, but not empty
- vdatas.Vgroups and vdatas may be created in any order by the
- user. However, to perform linking, the vgroups and vdatas
- involved must already exist.
-
-
- Bugs
- vmake does not check for cycles, and will happily allow you to
- insert a vgroup into itself.
-
- It is legal to create multiple vgroups or vdatas with identical
- names.
-
-
-