the green in the city also affects the climate.

Several datasets on the subject are available on the open data portal of the Municipality of Madrid.

Check the section air quality of the Madrid Open Data Portal

if you know understand better the dataset of the air quality our suggestion is to check this section of Kaggle air quality madrid

The data is open data and is licensed under these conditions

The general conditions allow the reuse of data for commercial and non-commercial purposes. You have to cite the origin of the data as Madrid City Council and not suggest the Madrid City Council supports your work

Please read the complete license here in particular the section relative to the *Condiciones generales para la reutilización*