Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 602 Bytes

set_stnids.rst

File metadata and controls

20 lines (13 loc) · 602 Bytes

set_stnids

.. py:function:: set_stnids(gpt, ids)

    Creates a new :class:`Geopoints` with all the station id in ``gpt`` replaced by ``ids``.

    :param gpt: input geopoints
    :type gpt: :class:`Geopoints`
    :param ids: station ids to be written into ``gpt``
    :type ids: list of str
    :rtype: :class:`Geopoints`

    If ``ids`` is shorter than the geopoints count then only the first values that have a corresponding value in ``ids`` are changed.

    .. warning::
      :func:`set_stnids` only works for :class:`Geopoints` with 'ncols' type.


.. mv-minigallery:: set_stnids