Byte, Int, Float


Synopsis

cast a Node_Data Data_Array to be of type byte, int, or float


group Byte<NEcolor2=0xffff00> { /* byte data array */
Data_Array node_data {
byte values[nvals][veclen]; /* array itself */
byte+opt null_value; /* value assumed to be NULL data */
byte min => cache(min_array(magnitude(values), null_flag,
null_value));
/* min value of the data in each array */
byte max => cache(max_array(magnitude(values), null_flag,
null_value));
/* max value of the data in each array */
byte min_vec[veclen] => cache(min_array(values, null_flag,
null_value));
/* min extent of the data in each array */
byte max_vec[veclen] => cache(max_array(values, null_flag,
null_value));
/* max extent of the data in each array */
};
};


 

group Int<NEcolor2=0xff> { /* int data array */
Data_Array node_data {
int values[nvals][veclen]; /* array itself */
int+opt null_value; /* value assumed to be NULL data */
int min => cache(min_array(magnitude(values), null_flag,
null_value));
/* min value of the data in each array */
int max => cache(max_array(magnitude(values), null_flag,
null_value));
/* max value of the data in each array */
int min_vec[veclen] => cache(min_array(values, null_flag,
null_value));
/* min extent of the data in each array */
int max_vec[veclen] => cache(max_array(values, null_flag,
null_value));
/* max extent of the data in each array */
};
};


 


 

group Float<vpcol2=0xff00> {/* float data array */
Data_Array node_data {
float values[nvals][veclen]; /* array itself */
float+opt null_value; /* value assumed to be NULL data */
float min => cache(min_array(magnitude(values), null_flag,
null_value));
/* min value of the data in each array */
float max => cache(max_array(magnitude(values), null_flag,
null_value));
/* max value of the data in each array */
float min_vec[veclen] => cache(min_array(values,
null_flag, null_value));
/* min extent of the data in each array */
float max_vec[veclen] => cache(max_array(values,
null_flag, null_value));
/* max extent of the data in each array */
};
};

 

Description

Byte, Int, and Float are field subtypes that will conveniently transform all apropos subobjects in a Node_Data Data_Array to the corresponding type.

For example, saying

Field_Unif+Byte

types the field as containing byte Node_Data.

Files

v/fld.v

See also

Not applicable.