Datasets catalog¶
Census population by municipality (INEGI)¶
pop2000, pop2010 and pop2020: population of each municipality from the
Integración Territorial (ITER) of the Censos de Población y Vivienda 2000,
2010 and 2020. They come with the package.
| Dataset | Municipalities | Columns |
|---|---|---|
pop2000 |
2,443 | CVEGEO, pobtot, pobfem, pobmas |
pop2010 |
2,456 | CVEGEO, total, sex and 13 age groups by sex (44 columns) |
pop2020 |
2,469 | CVEGEO, total, sex and 13 age groups by sex (44 columns) |
Age groups (each with _f and _m for women and men): p_0a2, p_3ymas,
p_5ymas, p_12ymas, p_15ymas, p_18ymas, p_3a5, p_6a11, p_8a14,
p_12a14, p_15a17, p_18a24, p_60ymas, and p_15a49_f (women of 15 to
49 years). The total of pop2020 is 126,014,024 inhabitants.
Source: INEGI, ITER.
CONAPO reconstruction and projections 1990-2040¶
conapop: 252,450 rows, one per municipality, sex (sexo) and year (ano,
1990-2040), with the population in five-year age groups (pob_00_04 to
pob_85_mm) and the total (pob_total). Keys cvegeo, nom_ent,
nom_mun. Downloaded the first time (8.5 MB).
Source: CONAPO, Reconstrucción y proyecciones de la población de los municipios de México 1990-2040.
Population in 400 m H3 hexagons (Kontur)¶
| Dataset | Hexagons | Columns | Size |
|---|---|---|---|
hdx_pop2021 |
362,028 | population, geometry |
23 MB |
hdx_pop2022 |
463,830 | h3, population, geometry |
37 MB |
hdx_pop2023 |
456,514 | h3, population, geometry |
28 MB |
H3 hexagons of resolution 8 (about 400 m) in EPSG:4326, with the estimated number of inhabitants. Downloaded the first time.
Source: Kontur Population, Humanitarian Data Exchange. License: CC BY 4.0.
LandScan Global (1 km, 2000-2026)¶
popmex.get_landscan() downloads, only the first time, the LandScan
population raster of Mexico (pop_LandScan.tif, 41 MB, EPSG:4326), the same
file used by popmex (R), and returns its path. It has one band per year:
pop_2000 to pop_2024 and pop_2026 (26 bands); popmex.landscan_years()
lists them.
popmex.landscan_population(gdf, year, id_col) sums the cells of a year
inside each polygon (a cell counts when its centre falls inside), with the
same result as terra::extract(..., fun = sum) in R: 2,368,289 inhabitants
for the 106 municipalities of Yucatán in 2020. It needs rasterio
(pip install rasterio).
Source: LandScan Global, Oak Ridge National Laboratory. License: CC BY 4.0.