An article will take you to get the single factor pollution index and Carmelo pollution index (11 years of soil heavy metal pollution example explanation including code)

1. Topic analysis

Give the spatial distribution of 8 major heavy metal elements in the urban area, and analyze the pollution degree of heavy metals in different areas in the urban area

In the first question, according to the cubic equation interpolation method, the terrain contour map of the urban area and the spatial distribution map of heavy metal element pollution were simulated. Then the single-factor pollution index and the improved Carmelo pollution index evaluation method are used to evaluate the pollution degree of the urban area.

2. Code for spatial distribution of heavy metals

First of all, we establish the topography contour map and the functional area distribution map of the urban area from the geographical coordinates of the given sampling points. ==Due to the discreteness and randomness of the given data, what we get is a discrete point map. Such a picture cannot well present the overall situation of the distribution of heavy metals in this urban area. Therefore, we first grid the urban area, adopt Cubic (bi-cubic interpolation), perform interpolation based on known data, and repair the map.

Note that the interpolation here, cubic or v4 interpolation is optional, the real value of cubic will have many Nan values

When using graddata interpolation, pay attention to the selection of the coordinate range. The maximum value of x and y in the selection table is used as the limit value

%不同功能区的分布散点图
clear,clc

Guess you like

Origin blog.csdn.net/nanhuaibeian/article/details/107848444