Commit ·
be63294
1
Parent(s): 88cd75b
fix some labels and plot
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def filter_map(uhi, longitude, latitude):
|
|
| 14 |
This function generates a map based on uhi prediction
|
| 15 |
'''
|
| 16 |
#set up custom data
|
| 17 |
-
data = [uhi, longitude, latitude]
|
| 18 |
|
| 19 |
# Create the plot
|
| 20 |
fig = go.Figure(go.Scattermapbox(
|
|
@@ -150,7 +150,7 @@ def load_interface():
|
|
| 150 |
# set inputs and outputs for the model
|
| 151 |
longitude = gr.Number(label="Longitude", precision=5, info="The Longitude of the location")
|
| 152 |
latitude = gr.Number(label="Latitude", precision=5, info="The Latitude of the location")
|
| 153 |
-
|
| 154 |
m100_Ground_Elevation = gr.Number(label="100m Ground Elevation", precision=5, info="The average Ground Elevation in a 100m Buffer Zone")
|
| 155 |
avg_wind_speed = gr.Number(label="Avg Wind Speed [m/s]", precision=5, info="The average Wind Speed at the location")
|
| 156 |
wind_direction = gr.Number(label="Wind Direction [degrees]", precision=5, info="The average Wind Direction at the location")
|
|
@@ -171,7 +171,7 @@ def load_interface():
|
|
| 171 |
m300_NDBI = gr.Number(label="300m NDBI", precision=5, info="The average Normalized Difference Built-up Index in a 300m Buffer Zone")
|
| 172 |
m300_Building_Density = gr.Number(label="300m Building Density", precision=5, info="The average Building Density in a 300m Buffer Zone")
|
| 173 |
solar_flux = gr.Number(label="Solar Flux [W/m^2]", precision=5, info="The average Solar Flux at the location")
|
| 174 |
-
inputs = [longitude, latitude,
|
| 175 |
traffic_volume, m150_Ground_Elevation, relative_humidity, m150_NDVI,
|
| 176 |
m150_NDBI, m300_SI, m300_NPCRI, m300_Coastal_Aerosol, m300_Total_Building_Area_m2,
|
| 177 |
m300_Building_Construction_Year, m300_Ground_Elevation, m300_Building_Height, m300_Building_Count,
|
|
|
|
| 14 |
This function generates a map based on uhi prediction
|
| 15 |
'''
|
| 16 |
#set up custom data
|
| 17 |
+
data = [[uhi, longitude, latitude]]
|
| 18 |
|
| 19 |
# Create the plot
|
| 20 |
fig = go.Figure(go.Scattermapbox(
|
|
|
|
| 150 |
# set inputs and outputs for the model
|
| 151 |
longitude = gr.Number(label="Longitude", precision=5, info="The Longitude of the location")
|
| 152 |
latitude = gr.Number(label="Latitude", precision=5, info="The Latitude of the location")
|
| 153 |
+
m150_NPCRI = gr.Number(label="150m NPCRI", precision=5, info="The average Normalized Difference Vegetation Index in a 150m Buffer Zone")
|
| 154 |
m100_Ground_Elevation = gr.Number(label="100m Ground Elevation", precision=5, info="The average Ground Elevation in a 100m Buffer Zone")
|
| 155 |
avg_wind_speed = gr.Number(label="Avg Wind Speed [m/s]", precision=5, info="The average Wind Speed at the location")
|
| 156 |
wind_direction = gr.Number(label="Wind Direction [degrees]", precision=5, info="The average Wind Direction at the location")
|
|
|
|
| 171 |
m300_NDBI = gr.Number(label="300m NDBI", precision=5, info="The average Normalized Difference Built-up Index in a 300m Buffer Zone")
|
| 172 |
m300_Building_Density = gr.Number(label="300m Building Density", precision=5, info="The average Building Density in a 300m Buffer Zone")
|
| 173 |
solar_flux = gr.Number(label="Solar Flux [W/m^2]", precision=5, info="The average Solar Flux at the location")
|
| 174 |
+
inputs = [longitude, latitude, m150_NPCRI, m100_Ground_Elevation, avg_wind_speed, wind_direction,
|
| 175 |
traffic_volume, m150_Ground_Elevation, relative_humidity, m150_NDVI,
|
| 176 |
m150_NDBI, m300_SI, m300_NPCRI, m300_Coastal_Aerosol, m300_Total_Building_Area_m2,
|
| 177 |
m300_Building_Construction_Year, m300_Ground_Elevation, m300_Building_Height, m300_Building_Count,
|