Table of Contents


snaphdf - convert snapshot to HDF SD


snaphdf [parameter=value]


snaphdf is a prototype program intended to test out conversion to some standardized HDF format. It is unclear at the time of this writing what this exactly is, any output generated with this program should self-destruct after you have read it.


The following parameters are recognized in any order if the keyword is also given:
Input file, in standard snapshot(5NEMO) formnat. No default.
Output file (currently an hdf SD). Note: Any existing output files will be overwritten. No default.
Times to select snapshot.


In the following example an 100 particle snapshot is created with the mkplummer(1NEMO) program, but instead of storing the data, it is piped (in the NEMO convention) into snaphdf. The tsd(1NEMO) is then used to view what is inside the dataset. Compare this with the output of the standard HDF program hdfls(1) .
    % mkplummer - 100 | snaphdf - p100.hdf
    % tsd p100.hdf
    Found 8 scientific data sets in p100.out
    1: (1)   -> [1 elements of type: 5 (FLOAT32)]
    2: (100)   -> [100 elements of type: 5 (FLOAT32)]
    3: pos(1)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]
    4: pos(2)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]
    5: pos(3)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]
    6: vel(1)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]
    7: vel(2)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]
    8: vel(3)(100) Virial  -> [100 elements of type: 5 (FLOAT32)]


Any existing output file will be overwritten, contrary to the NEMO convention. This is due to the use of the hdf library. We ought to call some file existance routine before...

See Also

tsd(1NEMO) , hdfls(1) , hdf(1)


Peter Teuben

Update History

24-dec-94    V1.0 Created    PJT

Table of Contents