For each index of dimensions 0..n-2, this function computes the minimum of the n-1 dimension


	function dim_min(
		x : numeric


An array of one or more numeric values of any dimensionality


The dim_min function computes the minimum of all elements of the n-1 dimension for each index of the dimensions 0..n-2. dim_min ignores missing values. The output dimensionality is the same as the first n-2 dimensions of the input.


The following is simplistic example that demonstrates how dim_min works. Try running this example and print out the values to get a better idea of how dim_min works.
; 	Create example array
	a = onedtond(ispan(1,150,1),(/3,5,10/))
; 	Assign dimension names
	a!0 = "time"
	a!1 = "latitude"
	a!2 = "longitude"
;  	Compute minimum of dimension longitude  at all time and latitude points
 	pxy = dim_min(a)
;       Compute minimum of dimension time  at all points latitude and longitude points
;	The following uses Named Subscripting to reorder the input array
;	such that time is the n-1 dimension.
	pyz = dim_min( a(latitude | :, longitude | : , time | :) )


Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?

$Revision: 1.5 $ $Date: 1998/06/15 21:29:06 $