Skip to contents

If you need to query several municipalities, indicators and zonal statistics, we recommend to download and locally query the parquet files using the arrow package.

Query example

After downloading the parquets files, you can query them using the arrow package.

library(tidyverse)
library(arrow)

brdwgd <- open_dataset(sources = "/parquet/files/address/")

brdwgd %>%
  filter(code_muni %in% c(3105608, 3304557, 3136702)) %>%
  filter(name == "Tmax_mean") %>%
  filter(date >= as.Date("2008-01-01") & date <= as.Date("2008-12-31")) %>%
  select(code_muni, date, value) %>%
  collect()