Skip to content

Commit

Permalink
superscipt fix in percentiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmelo-Belo committed Sep 14, 2023
1 parent 3b8f276 commit 53e0c70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dashboard documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ It is important to acknowledge that within TropiDash, users may encounter a temp
Considering the information available from the presented dataset, we organize the dashboard section to display primary layers over a geographical map.

1. *The ensemble forecast tracks*: this layer groups all the ensemble members of the forecast track for the selected cyclone. Suppose the user plots five or fewer ensemble members for each forecasted position. In that case, clicking on the location displays the predicted mean sea level pressure at the hurricane's center and the maximum sustained wind speed. With six or more ensemble members selected, this option is not available anymore because it makes the coding process heavier.
2. *The average forecast track*: this layer displays the mean forecast track computed considering all the 52 ensemble members included in the forecast. Clicking on the mean locations, the user can also visualize the 10-th, 25-th, 50-th, 75-th, and 90-th percentiles for mean sea level pressure and maximum sustained wind speed of the ensemble forecasted tracks.
2. *The average forecast track*: this layer displays the mean forecast track computed considering all the 52 ensemble members included in the forecast. Clicking on the mean locations, the user can also visualize the 10<sup>th</sup>, 25<sup>th</sup>, 50<sup>th</sup>, 75<sup>th</sup>, and 90<sup>th</sup> percentiles for mean sea level pressure and maximum sustained wind speed of the ensemble forecasted tracks.
3. *The observed track*: this layer displays the observed track of the cyclone.
4. *The strike probability map*: this layer displays the map of the strike probability of the cyclone. The strike probability is the probability that a tropical cyclone will pass within a 300 km radius of a given location and within a time window of 48 hours. It quickly assesses high-risk areas, although with some uncertainty in the exact timing or position. Please find more information regarding the strike probability __[here](https://charts.ecmwf.int/products/medium-tc-genesis?base_time=202309140000&layer_name=genesis_ts&projection=opencharts_global&valid_time=202309170000)__.
10 changes: 5 additions & 5 deletions notebooks-examples-trials/tracks_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,11 @@ def plot_cyclone_tracks_ipyleaflet(ens_members, df_storm_forecast, df_storm_obse
color="black",
popup=widgets.HTML(value=f"<center><b>VT: {timesteps_avg[avg]} </b> </center>"
f"Percentiles: Pressure || Wind speed <br>"
f"10-th: {pressures_avg[avg][0]:.1f} hPa || {winds_avg[avg][0]:.2f} m/s <br>"
f"25-th: {pressures_avg[avg][1]:.1f} hPa || {winds_avg[avg][1]:.2f} m/s <br>"
f"50-th: {pressures_avg[avg][2]:.1f} hPa || {winds_avg[avg][2]:.2f} m/s <br>"
f"75-th: {pressures_avg[avg][3]:.1f} hPa || {winds_avg[avg][3]:.2f} m/s <br>"
f"90-th: {pressures_avg[avg][4]:.1f} hPa || {winds_avg[avg][4]:.2f} m/s"
f"10<sup>th</sup>: {pressures_avg[avg][0]:.1f} hPa || {winds_avg[avg][0]:.2f} m/s <br>"
f"25<sup>th</sup>: {pressures_avg[avg][1]:.1f} hPa || {winds_avg[avg][1]:.2f} m/s <br>"
f"50<sup>th</sup>: {pressures_avg[avg][2]:.1f} hPa || {winds_avg[avg][2]:.2f} m/s <br>"
f"75<sup>th</sup>: {pressures_avg[avg][3]:.1f} hPa || {winds_avg[avg][3]:.2f} m/s <br>"
f"90<sup>th</sup>: {pressures_avg[avg][4]:.1f} hPa || {winds_avg[avg][4]:.2f} m/s"
)
)
marker_avg.append(marker)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,11 @@
" color=\"black\",\n",
" popup=widgets.HTML(value=f\"<center><b>VT: {timesteps_avg[avg]} </b> </center>\"\n",
" f\"Percentiles: Pressure || Wind speed <br>\"\n",
" f\"10-th: {pressures_avg[avg][0]:.1f} hPa || {wind_speeds_avg[avg][0]:.2f} m/s <br>\"\n",
" f\"25-th: {pressures_avg[avg][1]:.1f} hPa || {wind_speeds_avg[avg][1]:.2f} m/s <br>\"\n",
" f\"50-th: {pressures_avg[avg][2]:.1f} hPa || {wind_speeds_avg[avg][2]:.2f} m/s <br>\"\n",
" f\"75-th: {pressures_avg[avg][3]:.1f} hPa || {wind_speeds_avg[avg][3]:.2f} m/s <br>\"\n",
" f\"90-th: {pressures_avg[avg][4]:.1f} hPa || {wind_speeds_avg[avg][4]:.2f} m/s\"\n",
" f\"10<sup>th</sup>: {pressures_avg[avg][0]:.1f} hPa || {wind_speeds_avg[avg][0]:.2f} m/s <br>\"\n",
" f\"25<sup>th</sup>: {pressures_avg[avg][1]:.1f} hPa || {wind_speeds_avg[avg][1]:.2f} m/s <br>\"\n",
" f\"50<sup>th</sup>: {pressures_avg[avg][2]:.1f} hPa || {wind_speeds_avg[avg][2]:.2f} m/s <br>\"\n",
" f\"75<sup>th</sup>: {pressures_avg[avg][3]:.1f} hPa || {wind_speeds_avg[avg][3]:.2f} m/s <br>\"\n",
" f\"90<sup>th</sup>: {pressures_avg[avg][4]:.1f} hPa || {wind_speeds_avg[avg][4]:.2f} m/s\"\n",
" )\n",
" )\n",
" marker_avg.append(marker)"
Expand Down

0 comments on commit 53e0c70

Please sign in to comment.