Python proyect to plotting urban heat island.
pip install ufro_uhi_plot
Import Uhi from the package
from ufro_uhi_plot.uhi import Uhi
Instantiate the Uhi Class
file_path = "examples/data_example.csv"
station_label = "Vivienda.ID"
datetime_label = "Fecha"
temperature_label = "Pm25"
latitude_label = "Latitud"
longitude_label = "Longitud"
uhi = Uhi(file_path,station_label,datetime_label,temperature_label,latitude_label,longitude_label)
Plot the images according your preferences
output_folder="examples/generated maps"
days_array = ["2019-05-26"]
extent = [-72.69,-72.53,-38.78,-38.68]
prefix_file = "contamination map"
unit = "ug/m³"
mapbox_username = #<insert your mapbox's username>
mapbox_token= #<insert your mapbox's token>
uhi.plotImagesPerDaysArray(output_folder,days_array,extent,prefixFile=prefix_file,hasLimits=True,Z_UNIT=unit,mapbox_username=mapbox_username,mapbox_token=mapbox_token)
If you have a problem with Google Colab you can install binary shapely in a jupyter notebox that fix this.
!pip uninstall shapely --yes
!pip install shapely --no-binary shapely