Skip to content

Commit

Permalink
Dev weather data (#24)
Browse files Browse the repository at this point in the history
* Include weather data from IDEAM

* draft satellite weather

Climate from NASA satellite images (MODIS)

* Update package dependencies

* Update WORDLIST

* Update imports

* Include weather from IDEAM

Include functions to
- Get IDEAM stations in a given ROI
- Retrieve data for IDEAM stations
- Aggregate data for each ROI or municipality
- Plot output

* Update CITATION.cff

* Update lintr

* Remove  unnecessary assertions

* Include multiple weather tags

Include the possibility to retrieve multiple tags to retrieve weather data

* Update paths for weather data download

* Update path

* Merge branch 'main' into dev-weather_data

* Update download function usage

* Update test-download_weather.R

* Update weather plot

* Update individual plot limits

* Update download_weather.R

* Update test cases

* Temporal fix on test

* Update lintr

* Change plot function

Plot function with ggplot

* Update CITATION.cff

* Update download_weather.R

* Remove ggplot dependency

* Update CITATION.cff

* Remove unnecessary comments

* Remove graphics

Remove automatic plots

* Update CITATION.cff

* Update documentation

* Update test-download_weather.R

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
jd-otero and actions-user authored Nov 30, 2023
1 parent cf1a6ec commit 55b9e4d
Show file tree
Hide file tree
Showing 12 changed files with 910 additions and 66 deletions.
105 changes: 41 additions & 64 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -184,30 +184,6 @@ references:
given-names: JJ
email: [email protected]
year: '2023'
- type: software
title: dplyr
abstract: 'dplyr: A Grammar of Data Manipulation'
notes: Imports
url: https://dplyr.tidyverse.org
repository: https://CRAN.R-project.org/package=dplyr
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: François
given-names: Romain
orcid: https://orcid.org/0000-0002-2444-4226
- family-names: Henry
given-names: Lionel
- family-names: Müller
given-names: Kirill
orcid: https://orcid.org/0000-0002-1416-3412
- family-names: Vaughan
given-names: Davis
email: [email protected]
orcid: https://orcid.org/0000-0003-4777-038X
year: '2023'
- type: software
title: httr
abstract: 'httr: Tools for Working with URLs and HTTP'
Expand All @@ -219,17 +195,6 @@ references:
given-names: Hadley
email: [email protected]
year: '2023'
- type: software
title: janitor
abstract: 'janitor: Simple Tools for Examining and Cleaning Dirty Data'
notes: Imports
url: https://sfirke.github.io/janitor/
repository: https://CRAN.R-project.org/package=janitor
authors:
- family-names: Firke
given-names: Sam
email: [email protected]
year: '2023'
- type: software
title: magrittr
abstract: 'magrittr: A Forward-Pipe Operator for R'
Expand All @@ -244,23 +209,6 @@ references:
given-names: Hadley
email: [email protected]
year: '2023'
- type: software
title: readr
abstract: 'readr: Read Rectangular Text Data'
notes: Imports
url: https://readr.tidyverse.org
repository: https://CRAN.R-project.org/package=readr
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Hester
given-names: Jim
- family-names: Bryan
given-names: Jennifer
email: [email protected]
orcid: https://orcid.org/0000-0002-6983-2759
year: '2023'
- type: software
title: readxl
abstract: 'readxl: Read Excel Files'
Expand Down Expand Up @@ -304,7 +252,7 @@ references:
orcid: https://orcid.org/0000-0001-8049-7069
year: '2023'
- type: software
title: stats
title: utils
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
Expand All @@ -315,31 +263,60 @@ references:
institution:
name: R Foundation for Statistical Computing
- type: software
title: stringr
abstract: 'stringr: Simple, Consistent Wrappers for Common String Operations'
title: lubridate
abstract: 'lubridate: Make Dealing with Dates a Little Easier'
notes: Imports
url: https://stringr.tidyverse.org
repository: https://CRAN.R-project.org/package=stringr
url: https://lubridate.tidyverse.org
repository: https://CRAN.R-project.org/package=lubridate
authors:
- family-names: Spinu
given-names: Vitalie
email: [email protected]
- family-names: Grolemund
given-names: Garrett
- family-names: Wickham
given-names: Hadley
email: [email protected]
year: '2023'
- type: software
title: tidyr
abstract: 'tidyr: Tidy Messy Data'
title: readr
abstract: 'readr: Read Rectangular Text Data'
notes: Imports
url: https://readr.tidyverse.org
repository: https://CRAN.R-project.org/package=readr
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Hester
given-names: Jim
- family-names: Bryan
given-names: Jennifer
email: [email protected]
orcid: https://orcid.org/0000-0002-6983-2759
year: '2023'
- type: software
title: dplyr
abstract: 'dplyr: A Grammar of Data Manipulation'
notes: Imports
url: https://tidyr.tidyverse.org
repository: https://CRAN.R-project.org/package=tidyr
url: https://dplyr.tidyverse.org
repository: https://CRAN.R-project.org/package=dplyr
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: François
given-names: Romain
orcid: https://orcid.org/0000-0002-2444-4226
- family-names: Henry
given-names: Lionel
- family-names: Müller
given-names: Kirill
orcid: https://orcid.org/0000-0002-1416-3412
- family-names: Vaughan
given-names: Davis
email: [email protected]
- family-names: Girlich
given-names: Maximilian
orcid: https://orcid.org/0000-0003-4777-038X
year: '2023'
- type: software
title: 'R: A Language and Environment for Statistical Computing'
Expand Down
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ Imports:
readxl,
rlang,
sf,
utils
utils,
lubridate,
readr,
dplyr
VignetteBuilder: knitr
Depends:
R (>= 3.2.0)
Expand Down
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
export("%>%")
export(download_demographic)
export(download_geospatial)
export(download_weather)
export(stations_in_roi)
export(weather_stations)
importFrom(magrittr,"%>%")
importFrom(rlang,.data)
Loading

0 comments on commit 55b9e4d

Please sign in to comment.