# starsim_data > Demographic data and contact matrices for disease modeling with Starsim ## Docs ### API Reference #### Dataclasses > Data-holding classes - [registry.Dataset](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.Dataset) - [registry.Source](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.Source) #### Functions > Public functions - [load](https://starsimhub.github.io/starsim_data/api/loaders.html#starsim_data.loaders.load): Load data for a location - [fetch](https://starsimhub.github.io/starsim_data/api/fetching.html#starsim_data.fetching.fetch): Fetch a store this package publishes but does not bundle, caching it for next time - [download](https://starsimhub.github.io/starsim_data/api/downloading.html#starsim_data.downloading.download): Download UN WPP data that is not packaged, caching it for next time - [plot](https://starsimhub.github.io/starsim_data/api/plotting.html#starsim_data.plotting.plot): Plot data for a location, as a quick check before it goes into a model - [choropleth](https://starsimhub.github.io/starsim_data/api/plotting.html#starsim_data.plotting.choropleth): Draw a filled map of an administrative value -- the geometry version of `plot(which='nodes')` - [provenance](https://starsimhub.github.io/starsim_data/api/loaders.html#starsim_data.loaders.provenance): Return where a dataset came from: source, license, citation and build details - [registry.datasets](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.datasets) - [registry.dataset](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.dataset) - [registry.unregister_dataset](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.unregister_dataset) - [registry.get_layout](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.get_layout) - [registry.data_dir](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.data_dir) - [registry.refresh](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.refresh) - [load_nodes](https://starsimhub.github.io/starsim_data/api/nodes.html#starsim_data.nodes.load_nodes): Load the node table for a location: centroids, areas, p-codes and hierarchy - [distances](https://starsimhub.github.io/starsim_data/api/nodes.html#starsim_data.nodes.distances): Great-circle distances between node centroids -- the input a gravity model needs - [adjacency](https://starsimhub.github.io/starsim_data/api/nodes.html#starsim_data.nodes.adjacency): Which administrative units share a border: a square boolean matrix - [node_name](https://starsimhub.github.io/starsim_data/api/nodes.html#starsim_data.nodes.node_name): Render an administrative unit's name in this package's canonical style - [download_shapes](https://starsimhub.github.io/starsim_data/api/shapes.html#starsim_data.shapes.download_shapes): Download administrative boundaries with full geometry from their publisher, and cache them - [list_shape_sources](https://starsimhub.github.io/starsim_data/api/shapes.html#starsim_data.shapes.list_shape_sources): Return the boundary sources as a dataframe: coverage, levels and license - [download_nodes](https://starsimhub.github.io/starsim_data/api/rasters.html#starsim_data.rasters.download_nodes): The node table with `population` filled in, from WorldPop, at any level and year - [download_raster](https://starsimhub.github.io/starsim_data/api/rasters.html#starsim_data.rasters.download_raster): Download a WorldPop 1 km gridded-population raster for a country, and cache it - [aggregate_raster](https://starsimhub.github.io/starsim_data/api/rasters.html#starsim_data.rasters.aggregate_raster): Sum a raster inside each polygon: zonal statistics, keyed by an attribute - [rescale_to_national](https://starsimhub.github.io/starsim_data/api/rasters.html#starsim_data.rasters.rescale_to_national): Scale node populations so they sum to this package's national WPP total - [list_datasets](https://starsimhub.github.io/starsim_data/api/loaders.html#starsim_data.loaders.list_datasets): Return the available datasets: contact sources plus WPP demographic series - [list_locations](https://starsimhub.github.io/starsim_data/api/loaders.html#starsim_data.loaders.list_locations): Return the sorted locations available in dataset `which` - [list_revisions](https://starsimhub.github.io/starsim_data/api/loaders.html#starsim_data.loaders.list_revisions): Return the bundled UN WPP revisions, oldest first; the last is the default - [list_fetchable](https://starsimhub.github.io/starsim_data/api/fetching.html#starsim_data.fetching.list_fetchable): Return the datasets `fetch()` can retrieve: the stores published with this package - [list_downloadable](https://starsimhub.github.io/starsim_data/api/downloading.html#starsim_data.downloading.list_downloadable): Return the datasets `download()` can retrieve - [resolve](https://starsimhub.github.io/starsim_data/api/locations.html#starsim_data.locations.resolve): Resolve a location string to its canonical key - [location_info](https://starsimhub.github.io/starsim_data/api/locations.html#starsim_data.locations.location_info): Return the metadata row for a location, as a `sciris.objdict` - [list_all_locations](https://starsimhub.github.io/starsim_data/api/locations.html#starsim_data.locations.list_all_locations): Return every canonical location name known to the package, sorted - [parse_level](https://starsimhub.github.io/starsim_data/api/locations.html#starsim_data.locations.parse_level): Parse an administrative level into an integer - [register_dataset](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.register_dataset): Add a dataset to the registry - [register_layout](https://starsimhub.github.io/starsim_data/api/registry.html#starsim_data.registry.register_layout): Register a function that turns a stored array into a dataframe - [cache_dir](https://starsimhub.github.io/starsim_data/api/cache.html#starsim_data.cache.cache_dir): Return the directory where downloaded data is cached - [cache_info](https://starsimhub.github.io/starsim_data/api/cache.html#starsim_data.cache.cache_info): Return a dataframe of what is currently cached: file, size, source URL and date - [cache_provenance](https://starsimhub.github.io/starsim_data/api/cache.html#starsim_data.cache.cache_provenance): Return the recorded provenance for a cached file, or None if there is none - [cached_download](https://starsimhub.github.io/starsim_data/api/cache.html#starsim_data.cache.cached_download): Download `url` into the cache, or return the existing path if already cached - [clear_cache](https://starsimhub.github.io/starsim_data/api/cache.html#starsim_data.cache.clear_cache): Delete cached downloads. Bundled data is never touched