setval [ parameter=value ] [ inputfile ... ]
Parameters are: include_vars, dim_indices, values.
setval is used to change the value of one or more variables at a single location specified by the dimension indices dim_indices. The dimension indices must be valid for all variables specifed and all the variables must be parallel. setval is only implemented for numeric data (e.g. string type is not allowed).
List of variables to have the associated value changed. If the list is prefixed with a minus sign, the listed variables are excluded from the subsets. Wildcards * and ? are allowed. The default is to include all variables.
List of dimension indices where the value is to be changed. For example, if the variable(s) is (are) 2-D, then one pair of line and sample indices needs to be specified. Indices use 1-relative indexing.
List of values. There needs to be one value for each variable listed, or a single value that will be assigned to all of the variables listed.
The example below sets the upper-left hand corner point (1,1) of the variable 'albedo' in the file image.tdf to 0.0.
% setval image.tdf
include_vars : char(255) ? [] albedo
dim_indices : int ( 5) ? 1 1
values : real(128) ? 0.
impasc, impbin, concatenate, printvar, newbadval, editvar.
Last Update: $Date: 1999/05/10 20:46:21 $