pheromone_dispersion.deposition_coeff module
- pheromone_dispersion.deposition_coeff.deposition_coeff_from_land_occupation_data(path_data, file_name_data, land_occupation_to_deposition_coeff, msh)[source]
Derive the map of the deposition coefficient \(\tau_{loss}(x,y)\) given the land occupation data and the value of deposition coefficient with respect to the land occupation. Read the land occupation data, search the cells of the mesh contained in each polygon of the land occupation data and return the associated deposition coefficient map.
- Parameters:
path_data (
str) – Path to the folder that contains the land occupation data.file_name_data (
str) – Name of the file that contains the land occupation data.land_occupation_to_deposition_coeff (
dict) – Dictionary containing the deposition coefficient with respect to the land occupation.msh (
MeshRect2D) – The geometry of the domain.
- Returns:
The value of the deposition coefficient \(\tau_{loss}(x,y)\) at each cells of the mesh.
- Return type:
- Raises:
ValueError – if one of the land occupation has no deposition coefficient value, i.e. one of the land occupation keyword of the land occupation data is not a keyword of the dictionnary containing the deposition coefficient with respect to the land occupation as well
Notes
Ensure that points are indeed in one of the polygons.