Python proyect to plotting urban heat island.
Project description
ufro_uhi_plot
Python proyect to plotting urban heat island.
Install
pip install ufro_uhi_plot
How to use
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)
Successfully created the directory examples/generated maps
Plotting UHI Map of 2019-05-26
...
2019-05-26 00:59:35
2019-05-26 01:59:35
2019-05-26 02:59:35
2019-05-26 03:59:35
2019-05-26 04:59:35
2019-05-26 05:59:35
2019-05-26 06:59:35
2019-05-26 07:59:35
2019-05-26 08:59:35
2019-05-26 09:59:35
2019-05-26 10:59:35
2019-05-26 11:59:35
2019-05-26 12:59:35
2019-05-26 13:59:35
2019-05-26 14:59:36
2019-05-26 15:59:35
2019-05-26 16:59:35
2019-05-26 17:59:35
2019-05-26 18:59:35
2019-05-26 19:59:35
2019-05-26 20:59:35
2019-05-26 21:59:36
2019-05-26 22:59:35
2019-05-26 23:59:35
Plot completed 2019-05-26
Google Colab use
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ufro_uhi_plot-0.0.2.tar.gz.
File metadata
- Download URL: ufro_uhi_plot-0.0.2.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd213767fde5efbab77609ae356faf5a9c88d271d5b9b395b29143afd312e5ce
|
|
| MD5 |
36efeff579ac810f75674aabcd7b20ff
|
|
| BLAKE2b-256 |
c4d4677e381e6cf80ec272bddb076f0b20a4b1e2aefe9d628d3248f375e7f684
|
File details
Details for the file ufro_uhi_plot-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ufro_uhi_plot-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06398913e6133693b3934d0604e97f6f5feac60912d4eea4d7edf38e815781e7
|
|
| MD5 |
76a8fad71677411c25c2cb08aa0cdb9d
|
|
| BLAKE2b-256 |
494adaafdb6587eeeedf977d5acf50d0172a0a70a89ef3c7a3d03b89d23a5671
|