MGH_SCALAR
Name
MGH_SCALAR
Purpose
This function converts a one-element array into a scalar.
Passing a multi-element array results in an error.
Calling Sequence
result = mgh_scalar(a)
Positional Parameters
a (input, array of any type)
An array representing values on the grid.
Return Value
The function returns the first (and only) element as a scalar.
###########################################################################
Copyright (c) 2015 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, 2015-01:
Written.