Skip to content

laser.measles.demographics.admin_shapefile

laser.measles.demographics.admin_shapefile

Admin level shapefiles

laser.measles.demographics.admin_shapefile.AdminShapefile

Bases: BaseShapefile

Shapefile of administrative units.

Parameters:

Name Type Description Default
admin_level int

Admin level of the shapefile.

required
dotname_fields list[str]

List of fields to use for dotname. e.g., ["ADMIN0", "ADMIN1", "ADMIN2"]

required

laser.measles.demographics.admin_shapefile.AdminShapefile.add_dotname()

Add a DOTNAME to the shapefil (e.g., ADMIN0:ADMIN1:ADMIN2)

laser.measles.demographics.admin_shapefile.AdminShapefile.get_shapefile_parent()

Get the parent directory of the shapefile.

laser.measles.demographics.admin_shapefile.AdminShapefile.shape_subdivide(patch_size_km)

Subdivide the shapefile for a given administrative level into patches of approximately equal area.

Parameters:

Name Type Description Default
patch_size_km int

Size of the patch in square kilometers.

required