>  Docs Center  >  Libraries  >  Motley  >  MGH_TF_LATITUDE
Libraries

MGH_TF_LATITUDE

MGH_TF_LATITUDE

Name


  MGH_TF_LATITUDE

Purpose


  This function is designed for use with the TICKFORMAT property of IDLgrAxis.
  It adds 'S' and 'N' suffices appropriately.

Category


  Miscellaneous
  Object graphics

Calling Sequence


  Result = MGH_TF_LATITUDE(Direction, Index, Value)

Inputs


  Direction: Axis direction, required by the TICKFORMAT interface but ignored.
  Index: Axis index, required by the TICKFORMAT interface but ignored.
  Value: The real value to be formatted.

Keyword Parameters


  DATA (input, scalar structure):
    Specify this keyword to control the output. The value should be
    a structure with one or more of the tags "format" and
    "round". The default is equivalent to {format: '', round: 0}.

Return Value


  The function returns a scalar string representing the input
  value. If data.round is set to a 'true' value then this is
  rounded. The format is controlled by data.format. If this is not
  supplied a default format is generated by FORMAT_AXIS_VALUES.
###########################################################################
  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, Jun 1998:
    Written.
  Mark Hadfield, Feb 2000:
    Added format control via the DATA keyword.
  Mark Hadfield, May 2001:
    Added rounding via the "round" tag in DATA. I might generalise
    this some day.
  Mark Hadfield, 2002-10:
    Added rounding via the "round" tag in DATA. I might generalise
    this some day.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us