we needed to transfer categorical data (land cover) so I used the existing area_interpolate and added support for categorical variables. It measures a ratio of each unique category present in each polygon. See the example below.
@darribas and I thought it would be good to add it to tobler. Since it uses a lot of existing machinery, I just added a keyword to area_interpolate but can turn it into an independent function if that is preferable.
Hi,
we needed to transfer categorical data (land cover) so I used the existing
area_interpolate
and added support for categorical variables. It measures a ratio of each unique category present in each polygon. See the example below.@darribas and I thought it would be good to add it to tobler. Since it uses a lot of existing machinery, I just added a keyword to
area_interpolate
but can turn it into an independent function if that is preferable.