noaa-onms / climate-dashboard

dashboard of climate indicators across sanctuaries
https://noaa-onms.github.io/climate-dashboard/
MIT License
1 stars 0 forks source link

SST anomaly / marine heat wave - borrow from Enrique's coralNet #8

Open 7yl4r opened 1 year ago

7yl4r commented 1 year ago

Copy over ideas from MBON CoralNet Dashboard.

@eqmh showed the dashboard for the MAKENKE.Rmd. Lots of good content also based on flexdashboard that could be copy-pasted into this project.

Summary of this dashboard:

bbest commented 1 year ago
image

source: MAKENKE.Rmd#LL112C1-L126C4

Climatología

## subset SST for last year
SST.lastyear = SST %>% filter(year(time)==max(year(time)))

## make the plot
pp = ggplot(SST.clim, aes(yDay, SST.mean))
pp = pp + geom_line() + geom_smooth(span=0.25, se=FALSE, colour="steelblue") +  
  geom_ribbon(aes(ymin=SST.q25, ymax=SST.q75), fill="steelblue", alpha=0.5) +
  geom_line(data=SST.lastyear, aes(yday(time), SST), colour="red") + 
  ylab("Temperatura del mar superficial °C") + xlab("Día del año") + 
  theme_bw(base_size = 9) 
ggplotly(pp) %>% plotly::config(displayModeBar = F) 
bbest commented 1 year ago

Differences:

  1. Above: temperature is real value on y-axis, and deviation is shown as inflection
  2. Below: temperature difference on y-axis, so mean is flat line

And daily climatology over a period of a year above (compared to what long-term mean as sinusoidal curve) vs continuous (compared to long-term):

https://noaa-onms.github.io/cinms/

image
bbest commented 1 year ago

To also check out, these marine heat wave packages:

dotis commented 1 year ago

Here's another similar plot.

https://climatereanalyzer.org/clim/sst_daily/

This shows data from all years and then the most recent years in a different color.

oisst2 1_world2_sst_day

7yl4r commented 1 year ago

I used the code from Enrique's to add a similar plot using the heat wave data here, but ran into library import issues when knitting. Changes are on the annual_plot branch until these issues are resolved