leiap.mapping

This file contains functions for making maps

Functions

field_explorer(artifacts, points, …[, …]) Create bokeh map with summary information about all fields
single_field_map(field, fields_gdf[, …]) Make a map centered on a specified field
leiap.mapping.field_explorer(artifacts, points, fields_shp_path, html_file_out='')[source]

Create bokeh map with summary information about all fields

Parameters:
  • points (artifacts,) –
  • fields_shp_path (str) – Path to the shapefile of fields
  • html_file_out (str) – Path to save the output file
Returns:

Return type:

None

Notes

If you want to print the output in a Jupyter notebook, use

from bokeh.io import output_notebook; output_notebook()

before running the function.

leiap.mapping.single_field_map(field, fields_gdf, axis_len=500, save_path=None)[source]

Make a map centered on a specified field

Parameters:
  • field (str) – Survey field ID for field of interest
  • fields_gdf (geopandas GeoDataFrame) – geopandas GeoDataFrame of all fields
  • axis_len (int, optional) – Length of both x and y axes
  • save_path (str, optional) – If not None, location and filename for output
Returns:

field_map – Styled map of desired field

Return type:

matplotlib Figure