MGH_INFLATE Name
MGH_INFLATE Purpose
Given an n-dimensional rectangular grid defined by n 1-dimensional arrays,
expand one of these arrays into n-dimensions.
Category
Finite-diffeence grids.
Calling Sequence
Result = MGH_INFLATE(dim, a, n)
Positional Parameters
dim (input, integer vector)
The dimensions of the output array. The number of elements in the
data array, x, must equal dim[n[, where n is the third positional
parameter, below.
a (input, numeric array)
A 1D array representing grid positions. The dimension
associated with these positions is specified by the
third positional parameter, n.
n (input, integer scalar)
The dimension number (1-based) associated with the data in x.
These data values are inflated over all the other dimensions.
Return Value
The function returns an array with the same type as x and the dimensions
specified by dim.
###########################################################################
This software is provided subject to the following conditions:
1. NIWA makes no representations or warranties regarding the
accuracy of the software, the use to which the software may
be put or the results to be obtained from the use of the
software. Accordingly NIWA accepts no liability for any loss
or damage (whether direct of indirect) incurred by any person
through the use of or reliance on the software.
2. NIWA is to be acknowledged as the original author of the
software where the software is used or presented in any form.
###########################################################################
Modification History
Mark Hadfield, 2003-09:
Written
Mark Hadfield, 2003-09:
Order of parameters changed. The array of output dimensions now
comes first.