mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
parent
743d3ce37c
commit
841a26d566
1 changed files with 10 additions and 1 deletions
|
@ -45,7 +45,7 @@ class TribalOverlapETL(ExtractTransformLoad):
|
|||
]
|
||||
|
||||
# A Tribal area that requires some special processing.
|
||||
ANNETTE_ISLAND_TRIBAL_NAME = "Annette Island LAR"
|
||||
ANNETTE_ISLAND_TRIBAL_NAME = "Annette Island"
|
||||
|
||||
CRS_INTEGER = 3857
|
||||
TRIBAL_OVERLAP_CUTOFF = 0.995 # Percentage of overlap that rounds to 100%
|
||||
|
@ -102,6 +102,15 @@ class TribalOverlapETL(ExtractTransformLoad):
|
|||
df=self.tribal_gdf, tract_data=self.census_tract_gdf
|
||||
)
|
||||
|
||||
# Cleanup the suffixes in the tribal names
|
||||
tribal_overlap_with_tracts[field_names.TRIBAL_LAND_AREA_NAME] = (
|
||||
tribal_overlap_with_tracts[field_names.TRIBAL_LAND_AREA_NAME]
|
||||
.str.replace(" LAR", "")
|
||||
.str.replace(" TSA", "")
|
||||
.str.replace(" IRA", "")
|
||||
.str.replace(" AK", "")
|
||||
)
|
||||
|
||||
tribal_overlap_with_tracts = tribal_overlap_with_tracts.groupby(
|
||||
[self.GEOID_TRACT_FIELD_NAME]
|
||||
).agg(
|
||||
|
|
Loading…
Add table
Reference in a new issue