Download Rainfall, Temperature, and Wind Data from Brazil
Overview
Provides functions to download and import meteorological data from Brazil's National Institute of Meteorology (INMET) https://portal.inmet.gov.br.
This new release introduces a new function, revamps the existing datasets with cleaner and more concise versions, and, most importantly, fixes several bugs related to downloading data and building the INMET database.
New function
nearest_stations— helps users identify the distances between municipalities and INMET stations and determine which stations are closest to each municipality.
Datasets
inmet_stations— this dataset is essentially a revamped version of the previousrain_stationsdataset. The older dataset contained information on INMET stations available from 2000 to 2024, meaning that the same station could appear multiple times across different years. The new version uses the most recent station information available through 2026 and contains one observation per station, avoiding unnecessary repetition.mun_stations— the previousmun_stations_distancedataset contained the distances between municipalities and INMET stations for every two-year period from 2008 to 2024. This new version contains the distances calculated between municipalities and INMET stations using theinmet_stationsdataset and thenearest_stationsfunction.municipality— a brand-new dataset containing basic information on Brazilian municipalities, including IBGE and TSE municipality codes, state, and the latitude and longitude of each municipality's centroid.floods_rs— renamed the 'id_who' column to 'code_wmo'.
Bugfixes and Quality of Life
- Blank CSV files from 2026 could cause the
build_inmet_datasetprocess to fail. This bug has been fixed. - The
datavariable in the time series from later years were categorized differently, which could result in an inconsistent partitioned database when usingbuild_inmet_datasetand cause errors when runningread_inmet. - New parameters
yearsandpartitioning_by, have been added tobuild_inmet_dataset.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
- Added a progress bar to the
download_inmet()andbuild_inmet_dataset()functions.
From NEWS.md in the release
Install
Health
ERRORre-building of vignette outputsr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
r-devel-linux-x86_64-fedora-clang
Error(s) in re-building vignettes: --- re-building ‘introduction.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘introduction.Rmd’ --- re-building ‘kriging.Rmd’ using rmarkdown trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda' Content type 'application/octet-stream' length 8238032 bytes (7.9 MB) ================================================== downloaded 7.9 MB OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). --- re-building ‘nearest_station.Rmd’ using rmarkdown trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda' Content type 'application/octet-stream' length 8238032 bytes (7.9 MB) ================================================== downloaded 7.9 MB [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘nearest_station.Rmd’ SUMMARY: processing the following file failed: ‘kriging.Rmd’ Error: Vignette re-building failed. Execution halted
r-devel-linux-x86_64-fedora-gcc
Error(s) in re-building vignettes: --- re-building ‘introduction.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘introduction.Rmd’ Warning: elapsed-time limit of 1 hours reached for sub-process --- re-building ‘kriging.Rmd’ using rmarkdown trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda' Content type 'application/octet-stream' length 8238032 bytes (7.9 MB) ================================================== downloaded 7.9 MB --- re-building ‘nearest_station.Rmd’ using rmarkdown trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda' Content type 'application/octet-stream' length 8238032 bytes (7.9 MB) ================================================== downloaded 7.9 MB [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘nearest_station.Rmd’ SUMMARY: processing the following file failed: ‘kriging.Rmd’ Error: Vignette re-building failed. Execution halted
- ERROR11 OK, 2 ERRORNow
- ERROR4 OK, 2 ERROR2026-08-08
Documentation
- Help pages
- 11
- Examples that run
- 64%7 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 13
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
Commits over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/kaiorb52/climatebr on 2026-10-18.
GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow
Show all practicesHide 1 practice
Dependencies
Installing climateBR adds 50 packages (32 with compiled code, 61 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest
- 0.1.02026-08-07
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-08-07
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 1.5 MB / 6 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("climateBR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.