Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Motley  >  MGH_REPRODUCE

MGH_REPRODUCE

MGH_REPRODUCE

Name


  MGH_REPRODUCE

Purpose


  Replicate by example: replicates a scalar value into an array
  (or scalar) with size & dimensions copied from a template
  array. Useful for generating structure arrays in procedures.

Category


  Array manipulation. Structures.

Calling Sequence


  Result = MGH_REPRODUCE(value, template)

Positional Parameters


  value (input, any type and size)
    Data to be replicated. Dimensions are ignored and only the first
    element is used.
  template (input, any type and size)
    Supplies dimensions.

Return Value


  This function returns a variable with the same type as Value and the
  same organisation as Template.
###########################################################################
  Copyright (c) 1993-2013 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, Oct 1993:
    Written, based on ideas in one of Bill Thompson's procedures.
  Mark Hadfield, Jun 1995:
    Modified to treat one-element template arrays correctly.
  Mark Hadfield, 2003-08:
    Simplified this routine substantially using newer IDL type inquiry and
    creation functions.
  Mark Hadfield, 2013-10:
    Reformatted.



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