c_stnode - Returns the data type and shape vector at a specified node given the index of the class, site, and data type

SYNTAX

#include "statio.h"

FUNCTION c_stnode (fd, ic, is, id, data_type, shape)

     long               *fd;
     long               *ic;
     long               *is;
     long               *id;
     char               *data_type;
     long                shape[9];

PARAMETERS

fd (input, integer)

File descriptor of an opened statistics file. The file descriptor is set by stopen and should not be altered.

ic (input, integer)

The class index of the node. See c_stget() for description of parameter ic.

is (input, integer)

The site index of the node. See c_stget() for description of parameter is.

id (input, integer)

The index of the data item.

data_type (output, character, length (1:26))

The data type of the data found. See c_stget() for a description on parameter data_type.

shape (output, integer array)

The shape vector of data found. See c_stget() for a description on parameter shape.

DESCRIPTION

The c_stnode() routine is typically called repetitively to get all the data types at a given node. Put the call to c_stnode() in a loop incrementing id after each call. This will get all the data types at a particular node. The parameter id should start out with the value 1.

RETURN VALUE

c_stnode() returns

     E_SUCC  (0) --> successful read
     E_NODT  (4) --> no more data items in node (no message)
     E_NOCL  (2) --> class ic not found (no message)
     E_NOSI  (3) --> site is not found (no message)
     E_GNLIO (1) --> general I/O error (no message)