Skip to content

Commit

Permalink
Add fudge factor for getting proper F-Values
Browse files Browse the repository at this point in the history
  • Loading branch information
suobset committed Dec 8, 2023
1 parent d8bf9fb commit 6be5771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/odin_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Add actual ODIN choropleth layer to the map
folium.Choropleth(
geo_data=counties,
name='Actual ODIN',
name='Actual ODIN (Higher = More Overburden)',
data=actual_odin,
columns=['FIPS', 'F-VALUES'], # Update column names
key_on='feature.id', # Adjust this according to your GeoJSON structure
Expand All @@ -42,7 +42,7 @@
# Add predicted ODIN choropleth layer to the map
folium.Choropleth(
geo_data=counties,
name='Predicted ODIN',
name='Predicted ODIN (Higher = More Overburden)',
data=predicted_odin,
columns=['FIPS', 'F-VALUES'], # Update column names
key_on='feature.id', # Adjust this according to your GeoJSON structure
Expand All @@ -56,7 +56,7 @@
).add_to(m)

# Create a new DataFrame without values over 1.2
filtered_dataframe = predicted_complete[predicted_complete['F-VALUES'] <= 0.8]
filtered_dataframe = predicted_complete[predicted_complete['F-VALUES'] <= 0.1]

# Create a new column for fill_color based on the condition
filtered_dataframe['fill_color'] = filtered_dataframe['F-VALUES']
Expand All @@ -73,7 +73,7 @@
line_opacity=0.2,
nan_fill_color='gray', # Set color for null values
nan_fill_opacity=0.5, # Set opacity for null values
bins=[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
#bins=[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
legend_name='Power Burden',
tooltip=folium.GeoJsonTooltip(fields=['name'], labels=False)
).add_to(m)
Expand Down

0 comments on commit 6be5771

Please sign in to comment.