Changelog
Source:NEWS.md
climateBR 0.2.5
Minor release: the README and vignettes were revised.
-
rain_stations— thefrist_yearcolumn was renamed tofirst_year.
climateBR 0.2.0
CRAN release: 2026-08-19
This release adds a new function, replaces the existing datasets with cleaner and more concise versions, and fixes several bugs in downloading data and building the INMET dataset.
New function
-
nearest_stations()— computes the distances between municipalities and INMET stations and returns the stations closest to each municipality.
Datasets
-
inmet_stations— a revised version ofrain_stations. The older dataset listed INMET stations by year from 2000 to 2024, so the same station appeared many times. The new version uses the most recent station information (through 2026) and has one row per station. -
mun_stations—mun_stations_distancecontains municipality-to-station distances for every other year from 2008 to 2024. The newmun_stationscontains the distances computed withnearest_stations()and theinmet_stationsdataset. -
municipality— a new dataset with basic information on Brazilian municipalities: IBGE and TSE codes, state, and centroid latitude and longitude. -
floods_rs— theid_whocolumn was renamed tocode_wmo.
Bugfixes and Quality of Life
- Fixed: blank CSV files from 2026 caused
build_inmet_dataset()to fail. - Fixed: the
datavariable had a different type in recent years, which produced an inconsistent partitioned dataset inbuild_inmet_dataset()and caused errors inread_inmet(). - Added the
yearsandpartitioning_byparameters tobuild_inmet_dataset(). - Added a progress bar to the
download_inmet()andbuild_inmet_dataset()functions.
climateBR 0.1.0
CRAN release: 2026-08-07
Initial CRAN submission.
-
Functions:
-
download_inmet()— downloads historical weather station data from INMET. -
build_inmet_dataset()— converts raw CSV files into partitioned Arrow/Parquet datasets. -
read_inmet()— queries large INMET datasets efficiently. -
kriging_inmet()— performs ordinary kriging interpolation.
-