[Back to Interface] [Prev]

DFSDwriteslab/dswslab

intn DFSDwriteslab(int32 start[], int32 stride[], int32 count[], VOIDP data)

start IN:

Array containing the starting coordinates of the slab

stride IN:

Array containing the dimensions for subsampling

count IN:

Array containing the size of the slab

data IN:

Array to hold the floating point data to be written

Purpose

Writes a slab of data to a scientific dataset.

Return value

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

Description

The start indices are relative to 1. The rank of start must be the same as the number of dimensions of the specified variable. The elements of start must be no larger than the scientific dataset's dimensions in order. The stride feature is not currently implemented. For now just pass the start array as the argument for the stride parameter, where it will be ignored.

The rank of count must be the same as the number of dimensions of the specified variable. The elements of count must be no larger than the scientific dataset's dimensions in order. The order in which the data will be written into the specified hyperslab is with the last dimension varying fastest. The data should be of the appropriate type for the dataset. Note that neither the compiler nor HDF software can detect if the wrong type of data is used.

FORTRAN

integer function dswslab(start, stride, count, data)

integer start(*), stride(*), count(*)

character*(*) data



[Back to Interface] [Prev]

hdfhelp@ncsa.uiuc.edu
HDF Reference Manual - 07/29/98, NCSA HDF Development Group.