StormWMS
Storm WMS Analysis¶
add_time_wms_layer allows you to use WMS data from NASA GIBS to analyse things such as precipitation, vegetation indices and population at the time of a hurricane. You can also change the date of the WMS layer by using the date widget at the top right of the map.
In [ ]:
Copied!
import geogo
import geogo
Air Temperature:
In [ ]:
Copied!
m = geogo.Map()
m.add_time_wms_layer(
layers="MODIS_Aqua_L3_Land_Surface_Temp_Daily_Day", time="2024-09-25", name="NASA"
)
m
m = geogo.Map()
m.add_time_wms_layer(
layers="MODIS_Aqua_L3_Land_Surface_Temp_Daily_Day", time="2024-09-25", name="NASA"
)
m
In [ ]:
Copied!
m = geogo.Map()
m.add_time_wms_layer(
layers="AIRS_L2_Temperature_500hPa_Day", time="2024-09-25", name="NASA"
)
m.add_tropycal_storm(("helene", 2024))
m
m = geogo.Map()
m.add_time_wms_layer(
layers="AIRS_L2_Temperature_500hPa_Day", time="2024-09-25", name="NASA"
)
m.add_tropycal_storm(("helene", 2024))
m
Precipitation:
In [ ]:
Copied!
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
custom_legend allows the user to input their own legend for the NASA GIBS data.
In [ ]:
Copied!
m = geogo.Map()
custom_legend = {
"0.0 - 0.2": "#edf8fb",
"0.2 - 0.5": "#b2e2e2",
"0.5 - 1.0": "#66c2a4",
"1.0 - 2.0": "#2ca25f",
"2.0 - 5.0": "006d2c",
"5.0 - 10.0": "#fd8d3c",
">10": "#bd0026",
}
m.add_shp(
url,
zoom_to_layer=False,
name="U.S. States",
style={"color": "black", "fillOpacity": 0},
hover_style={},
)
m.add_storm_wg()
m.add_time_wms_layer(
layers="AMSRU2_Surface_Precipitation_Day",
time="2024-09-25",
name="NASA",
custom_legend=custom_legend,
)
m
m = geogo.Map()
custom_legend = {
"0.0 - 0.2": "#edf8fb",
"0.2 - 0.5": "#b2e2e2",
"0.5 - 1.0": "#66c2a4",
"1.0 - 2.0": "#2ca25f",
"2.0 - 5.0": "006d2c",
"5.0 - 10.0": "#fd8d3c",
">10": "#bd0026",
}
m.add_shp(
url,
zoom_to_layer=False,
name="U.S. States",
style={"color": "black", "fillOpacity": 0},
hover_style={},
)
m.add_storm_wg()
m.add_time_wms_layer(
layers="AMSRU2_Surface_Precipitation_Day",
time="2024-09-25",
name="NASA",
custom_legend=custom_legend,
)
m
Vegetation Indices
In [ ]:
Copied!
m = geogo.Map()
custom_legend = {
"Bare soil / snow": "#f7fcb9",
"Sparse Vegetation": "#addd8e",
"Moderate Vegetation": "#41ab5d",
"Dense vegetation": "#238b45",
"Very Dense Vegetation": "#005a32",
}
m.add_time_wms_layer(
layers="MODIS_Aqua_L3_EVI_16Day",
time="2024-10-20",
name="NASA",
custom_legend=custom_legend,
)
m.add_shp(
url,
zoom_to_layer=False,
name="U.S. States",
style={"color": "black", "fillOpacity": 0},
hover_style={},
)
m.add_storm_wg()
m
m = geogo.Map()
custom_legend = {
"Bare soil / snow": "#f7fcb9",
"Sparse Vegetation": "#addd8e",
"Moderate Vegetation": "#41ab5d",
"Dense vegetation": "#238b45",
"Very Dense Vegetation": "#005a32",
}
m.add_time_wms_layer(
layers="MODIS_Aqua_L3_EVI_16Day",
time="2024-10-20",
name="NASA",
custom_legend=custom_legend,
)
m.add_shp(
url,
zoom_to_layer=False,
name="U.S. States",
style={"color": "black", "fillOpacity": 0},
hover_style={},
)
m.add_storm_wg()
m