RealtimeStorm.plot_forecast_realtime¶
- RealtimeStorm.plot_forecast_realtime(track_labels='fhr', cone_days=5, domain='dynamic_forecast', ax=None, cartopy_proj=None, save_path=None, ssl_certificate=None, **kwargs)[source]¶
Plots the latest available official forecast. Available for both NHC and JTWC sources.
- Parameters
track_labels (str) – Label format for forecast dots. Scroll down to notes for available options.
cone_days (int) – Number of days to plot the forecast cone. Default is 5 days. Can select 2, 3, 4 or 5 days.
domain (str) – Domain for the plot. Default is “dynamic_forecast”. Please refer to Map Domain Options for available domain options.
ax (axes) – Instance of axes to plot on. If none, one will be generated. Default is none.
cartopy_proj (ccrs) – Instance of a cartopy projection to use. If none, one will be generated. Default is none.
save_path (str) – Relative or full path of directory to save the image in. If none, image will not be saved.
- Other Parameters
ssl_certificate (str, optional)
If jtwc is set to True, and jtwc_source is set to “jtwc”, use this argument to provide the path to a valid SSL certificate in case the default one is expired.
prop (dict) – Customization properties of NHC forecast plot. Please refer to plot_nhc_forecast or scroll down below for available options.
map_prop (dict) – Customization properties of Cartopy map. Please refer to Map prop for available options.
- Returns
ax – Instance of axes containing the plot is returned.
Notes
The following properties are available for customizing
track_labels
.Value
Description
""
No label
"fhr"
Forecast hour (e.g., 60). Default option.
"fhr_wind_mph"
Forecast hour and sustained wind in mph.
"fhr_wind_kt"
Forecast hour and sustained wind in knots.
"valid_utc"
Valid time in UTC.
"valid_edt"
Valid time in Eastern time (EDT).
"valid_cdt"
Valid time in Central time (CDT).
"valid_mdt"
Valid time in Mountain time (MDT).
"valid_pdt"
Valid time in Pacific time (PDT).
"valid_hst"
Valid time in Hawaii time (HST).
The following properties are available for plotting NHC forecasts, via
prop
.Property
Description
cone_lw
Center line width for the cone of uncertainty. Default is 2.0.
cone_alpha
Transparency for the cone of uncertainty. Default is 0.6.
cone_res
Grid resolution for the cone of uncertainty in degrees. Default is 0.05.