The cluster analysis problem is formulated. As an example, the solution to the problem of airborne sounding of pollution spots on the swelling sea surface is considered. An efficient classification algorithm is proposed based on the source data conversion into a position coordinate system with the numbering of the Z-scanning type and the Hamming distance used as a metric.