• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

PYTHON D522 Geocomputation with Python Chapman and Hall CRC The Python Series-25.pdf latest update with complete solutions 100 % correct & verified

Document preview thumbnail
Vista previa 2 fuera de 6 páginas

PYTHON D522 Geocomputation with Python Chapman and Hall CRC The Python S latest update with complete solutions 100 % correct & verified

Vista previa del contenido

geometry id population
149 POLYGON ((1990143 158 NaN
4848536, 2090…

Figure 3.14 shows the final result grid with the incongruently-joined population
attribute from nz.


base = grid.plot(
column='population',
edgecolor='black',
legend=True,
cmap='Reds'
);
nz.plot(ax=base, color='none', edgecolor='grey', legend=True);

, Figure 3.14: The nz layer and a regular grid of rectangles: final result


We can demonstrate that, expectedly, the summed population in nz and grid is
identical, even though the geometry is different (since we created grid to completely
cover nz), by comparing the .sum of the population attribute in both layers.


nz['Population'].sum()




np.float64(4787200.0)



grid['population'].sum()




np.float64(4787199.999999998)

The procedure in this section is known as an area-weighted interpolation of a
spatially extensive (e.g., population) variable. In extensive interpolation, we assume
that the variable of interest represents counts (such as, here, inhabitants) uniformly
distributed across space. In such case, each part of a given polygon captures the
respective proportion of counts (such as, half of a region with N inhabitants contains
N/2 inhabitants). Accordingly, summing the parts gives the total count of the total
area.

An area-weighted interpolation of a spatially intensive variable (e.g., population
density) is almost identical, except that we would have to calculate the weighted
.mean rather than .sum, to preserve the average rather than the sum. In intensive
interpolation, we assume that the variable of interest represents counts per unit area,
i.e., density. Since density is (assumed to be) uniform, any part of a given polygon
has exactly the same density as that of the whole polygon. Density values are
therefore computed as weighted averages, rather than sums, of the parts. Also, see the
‘Area-weighted interpolation’ section in Pebesma and Bivand (2023).

Información del documento

Subido en
29 de agosto de 2026
Número de páginas
6
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Brainarium
3.8
(342)
Vendido
2081
Seguidores
1049
Artículos
24600
Última venta
22 horas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes