>  Docs Center  >  Libraries  >  Motley  >  MGH_TF_LONGITUDE

MGH_TF_LONGITUDE

MGH_TF_LONGITUDE

Name


  MGH_TF_LONGITUDE

Purpose


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

Category


  Miscellaneous
  Object graphics

Calling Sequence


  Result = MGH_TF_LONGITUDE(Direction, Index, Value)

Positional Parameters


  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
    Specify this keyword to control the format. The keyword value
    should be a structure with tags "format" and/or "round". All
    other tags are ignored. The default is equivalent to {format:
    '', round: 0}.

Return Value


  The function returns a scalar string. 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, 1998-06:
    Written.
  Mark Hadfield, 2000-02:
    Added format control via the DATA keyword.
  Mark Hadfield, 2001-05:
    Added rounding via the "round" tag in DATA. I might generalise
    this some day.
  Mark Hadfield, 2002-02:
    Changed the default number-to-string conversion function from
    FORMAT_AXIS_VALUES to MGH_FORMAT_FLOAT. The former is inappropriate
    as it is designed for array inputs (where it can use information
    about the differences between consecutive values). For scalar values
    with typical longitude values it rounds excessively.



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