pyacs.gts.Sgts_methods.nearest module

pyacs.gts.Sgts_methods.nearest.nearest(self, site, n=1)[source]

Return the n nearest sites to the given site.

Parameters:
  • site (str) – Site code to search from.

  • n (int, optional) – Number of nearest sites to return. Default is 1.

Returns:

List of site codes (nearest first), or None if site not in Sgts.

Return type:

list