Skip to contents

A dataset containing the five nearest INMET weather stations for each Brazilian municipality based on the distance between the municipality centroid and the station location.

Usage

mun_stations

Format

A tibble with 27,850 rows and 4 variables:

state_muni

Brazilian state abbreviation.

code_ibge7

Seven-digit IBGE municipality code.

code_wmo

World Meteorological Organization (WMO) identifier of the INMET weather station.

distance

Distance between the municipality centroid and the station, in kilometers.

station_order

Rank of the station by proximity, where 1 indicates the nearest station.

Source

Distances were computed from municipality centroid coordinates and INMET station coordinates using the Haversine formula.

Details

Distances were calculated using the Haversine formula. Each municipality is associated with its five closest INMET stations, ordered by increasing distance.

The dataset was generated using the `nearest_stations()` function from the climateBR package, matching municipality centroids to the five closest INMET weather stations available in the package's `inmet_stations` dataset.

This dataset is based on the most recent version of the INMET station network available in the package. It is intended for analyses using recent observations. Because the INMET network changes over time (stations may be added or removed), this dataset should not be used to match historical data from earlier years. For historical analyses, users should create a year-specific municipality-to-station mapping using the corresponding historical INMET station

Examples

data(mun_stations)
head(mun_stations)
#> # A tibble: 6 × 5
#>   state_muni code_ibge7 code_wmo distance station_order
#>   <chr>           <dbl> <chr>       <dbl>         <int>
#> 1 RO            1100015 A939        138.              1
#> 2 RO            1100015 A938        217.              2
#> 3 RO            1100015 S104        218.              3
#> 4 RO            1100015 S101        248.              4
#> 5 RO            1100015 A963        285.              5
#> 6 RO            1100023 A940         10.8             1