>  Docs Center  >  Libraries  >  Motley  >  MGH_INFLATE

MGH_INFLATE

MGH_INFLATE

Name


  MGH_INFLATE

Purpose


  Given an n-dimensional rectangular grid defined by n one-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.
###########################################################################
  Copyright (c) 2003-2012 NIWA:
  http://www.niwa.co.nz/
  Licensed under the MIT open source license:
  http://www.opensource.org/licenses/mit-license.php
###########################################################################

Modification History


  Mark Hadfield, 2003-09:
    Written
  Mark Hadfield, 2003-09:
    Order of parameters changed. The array of output dimensions now
    comes first.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us