Skip to main content

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 a script in a jupyter notebox that fix this.

!pip install import-ipynb
import import_ipynb
!wget https://raw.githubusercontent.com/raguileoam/Colab/master/CartopyColab.ipynb
from CartopyColab import cartopy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ufro_uhi_plot-0.0.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ufro_uhi_plot-0.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file ufro_uhi_plot-0.0.1.tar.gz.

File metadata

  • Download URL: ufro_uhi_plot-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.10

File hashes

Hashes for ufro_uhi_plot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c075bd32849f6eb4cd527bf32e5ecddc47eb88c459ea3cdd1cde997153b6f02f
MD5 c5f266a6295e1088a467d41351cf7f59
BLAKE2b-256 ff23fe56afb3a8c8fd0377a338a215ac2bee6242ca6e521277f29bd3ba8298a9

See more details on using hashes here.

File details

Details for the file ufro_uhi_plot-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ufro_uhi_plot-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.10

File hashes

Hashes for ufro_uhi_plot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d81abfc5c5e65c85cfdb6cc7864f2c6be3bb9ac16730575b8bb47a80ca1b228c
MD5 6f07700024093be66442b6108efe6862
BLAKE2b-256 a59940cbc8eafe68ad38eaf99432e04fb12b525e5559902aca69dde219a93def

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page