def create_location_type_endpoints_detection(tree_data: List[Dict[str, Any]], year: str) -> None: # *** # dat = _location_type(tree_data) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_location_type", year) # *** # dat = _osm_keys(tree_data) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_osm_keys", year)
def create_location_type_endpoints_inventory( tree_data_2017: List[Dict[str, Any]], tree_data_2020: List[Dict[str, Any]]) -> None: # *** # dat = _location_type(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_location_type") dat = _location_type(tree_data_2017) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count_location_type") # *** # dat = _osm_keys(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_osm_keys") dat = _osm_keys(tree_data_2017) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count_osm_keys")
def create_agegroup_endpoints_inventory( tree_data_2017: List[Dict[str, Any]], tree_data_2020: List[Dict[str, Any]]) -> None: # *** # dat = _count_trees(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count") dat = _count_trees(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_with_predictions") # *** # dat = _count_trees(tree_data_2017, False) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count") dat = _count_trees(tree_data_2017, True) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count_with_predictions") # *** # dat = _count_age_group_by_district(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "districts") dat = _count_age_group_by_district(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "districts_with_predictions") # *** # dat = _count_age_group_by_genus(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "genus") dat = _count_age_group_by_genus(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "genus_with_predictions") # *** # dat = _count_age_group_by_object_type(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "object_type") dat = _count_age_group_by_object_type(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "object_type_with_predictions")
def create_districts_endpoints_inventory(tree_data_2017: List[Dict[str, Any]], tree_data_2020: List[Dict[str, Any]]) -> None: # *** # dat = _count_trees(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count") # *** # dat = _count_trees(tree_data_2017) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count") # *** # dat = _count_district_by_genus(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "genus") dat = _count_district_by_genus(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "genus_with_predictions") dat = _count_district_by_genus(tree_data_2017, False) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_genus") dat = _count_district_by_genus(tree_data_2017, True) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_genus_with_predictions") # *** # dat = _count_district_by_age_group(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "age_groups") dat = _count_district_by_age_group(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "age_groups_with_predictions") dat = _count_district_by_age_group(tree_data_2017, False) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_age_groups") dat = _count_district_by_age_group(tree_data_2017, True) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_age_groups_with_predictions") # *** # # dat = _count_neighbours_radius_50(tree_data_2020) # write_endpoint_data(dat, ENDPOINT_GROUP, "density_neighbours_radius_50") # *** # dat = _count_district_by_object_type(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "object_type")
def create_genus_endpoints_inventory( tree_data_2017: List[Dict[str, Any]], tree_data_2020: List[Dict[str, Any]]) -> None: # *** # dat = _count_trees(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count") dat = _count_trees(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "tree_count_with_prediction") # *** # dat = _count_trees(tree_data_2017, False) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count") dat = _count_trees(tree_data_2017, True) write_endpoint_data(dat, ENDPOINT_GROUP, "cut_tree_count_with_prediction") # *** # dat = _count_genus_by_district(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "district") dat = _count_genus_by_district(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "district_with_prediction") # *** # dat = _count_genus_by_age_group(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "age_groups") dat = _count_genus_by_age_group(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "age_groups_with_prediction") # *** # dat = _bole_radius_count_year_planting(tree_data_2020, False) write_endpoint_data(dat, ENDPOINT_GROUP, "ground_truth_bole_radius_year_planting") dat = _bole_radius_count_year_planting(tree_data_2020, True) write_endpoint_data(dat, ENDPOINT_GROUP, "regression_bole_radius_year_sprout")
def create_meta_endpoints_inventory( tree_data_2017: List[Dict[str, Any]], tree_data_2020: List[Dict[str, Any]]) -> None: # *** # dat = _districts_suburbs(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "districts_suburbs") # *** # dat = _suburb_district(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "suburbs_districts") # *** # dat = _genus_name_german(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "genus_name_german") # *** # dat = _genus_name_german_genus(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "name_german_genus") # *** # dat = _genus_species_name_german(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "genus_species_name_german") # *** # dat = _species_name_german(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "species_name_german") # *** # dat = _species_name_german_genus(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "species_name_german_genus") dat = _species_name_german_species(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "species_name_german_species") # *** # dat = _genus_species_name_german_tree(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "taxonomy") # *** # dat = _district_data_completeness(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "district_data_completeness") dat = _suburb_data_completeness(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "suburb_data_completeness") # *** # dat = _completeness(tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "data_completeness") # *** # dat = _overall_count(tree_data_2017, tree_data_2020) write_endpoint_data(dat, ENDPOINT_GROUP, "overall_tree_count")