1. NAME statlim - Set or return a string with the current limits 2. SYNOPSIS [lim, str] = statlim(mode, lim, vars, stat ) 3. DESCRIPTION Set, update or display the current limits used for statistics. The limit array is described in stat(5m). 4. PARAMETERS mode Mode for updating limit array. If mode is -1,the limits for the variables specified in vars are set to [-Inf,+Inf,0]. If mode is 0,the limits for the variables specified in vars are set to [min,max,1],where min and max are taken from the statistics array stat. If mode is +1,the limits are set to the specified values listed in vars,in which case vars is an array with the following columns: 1. variable number 2. minimal value 3. maximal value 4. limit mode lim Limit array to be updated or displayed. vars optional If mode is -1 or 0,vars is a vector with the line indexes to the variables whose limits should be updated. If mode is +1,it is an array as described above. If empty,the limit array is returned as is together with the limit string. stat This parameter is required if mode is 0. 5. RETURNS lim The updated limit array str optional A formatted string specifying updated limits. 6. SEE ALSO flagdata(3m)stat(5m)statcalc(3m)statinit(3m)statlim(3m)stat_str(3m)statupd(3m) 7. AUTHORS Pierre Jaccard, Geophysical Institute, University of Bergen, 1999