[Top] [Prev] [Next] [Bottom]

DFSDsetdatastrs/dssdast

intn DFSDsetdatastrs(char *label, char *unit, char *format, char *coordsys)
label

IN:

Label describing the data

unit

IN:

Unit to be used with the data

format

IN:

Format to be used in displaying the data

coordsys

IN:

Coordinate system of the data

Purpose

Sets the label, unit, format, and coordinate system for the next dataset written to file.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Example

In this example a 200 x 300 data array is written to a file called 'myfile.hdf', together with label, unit, and format information about the data. In this example we assume that the coordsys parameter is of no interest to the user, so the empty string (" ") is given as the fourth parameter to DFSDsetdatastrs.

       float32 press1[200][300];
       int dims[2];
       ...
       dims[0] = 200;
       dims[1] = 300;

       DFSDsetdims(2, dims);
       DFSDsetdatastrs ("pressure 1", "Pascals", "E15.9", " ");
       DFSDadddata("myfile.hdf", 2, dims, press1);
 
FORTRAN

integer function dssdast(label, unit, format, coordsys)

character* (*) label, unit, format, coordsys



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.