Skip to content

Commit

Permalink
phase space embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmedina committed Sep 6, 2024
1 parent ed543db commit 1acb87a
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/cumu_chl-max_TN_otb-subsegments.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ epcwq3.sub <- epcwq3[ which( epcwq3$param=="Chla"
& epcwq3$subseg==subseg
), ]
epcwq3.sub$month <- floor_date( epcwq3.sub$date, unit = 'month' )
chldat <- epcwq3.sub |> group_by(month) |> summarise( chl = max(value) ) |> as.data.frame()
chldat <- epcwq3.sub |> group_by(month) |> dplyr::summarise( chl = max(value) ) |> as.data.frame()
chldat$chl <- chldat$chl |> log10()
wqdat <- inner_join( chldat, loaddat, by = 'month' )

Expand Down
4 changes: 2 additions & 2 deletions R/cumu_chl-max_TN_otb.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ epcwq3.sub <- epcwq3[ which( epcwq3$param=="Chla"
# & epcwq3$subseg==subseg
), ]
epcwq3.sub$month <- floor_date( epcwq3.sub$date, unit = 'month' )
chldat <- epcwq3.sub |> group_by(month) |> summarise( chl = max(value) ) |> as.data.frame()
chldat <- epcwq3.sub |> group_by(month) |> dplyr::summarise( chl = max(value) ) |> as.data.frame()
chldat$chl <- chldat$chl |> log10()
wqdat <- inner_join( chldat, loaddat, by = 'month' )

Expand Down Expand Up @@ -75,7 +75,7 @@ plot( mean ~ TN, data = chl_TN, las = 1,
ylim = c(0,2.5), yaxt = 'n',
ylab = "Chlorophyll a (ug/L)", xlab = "", xlim = c(10,200)
)
mtext( "TN load (tons/month)", side = 1, line = 2, cex = 0.7 )
mtext( "TN load (tons/month)", side = 1, line = 2, cex = 1 )
axis( 2, at = 0:3, las = 1,
labels = c( 10^0, 10^1, 10^2, 10^3 ) )
# abline( h = axTicks(2), col = rgb(0,0,0,0.1) )
Expand Down
2 changes: 1 addition & 1 deletion R/cumu_chl-mean_TN_otb-subsegments.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ epcwq3.sub <- epcwq3[ which( epcwq3$param=="Chla"
& epcwq3$subseg==subseg
), ]
epcwq3.sub$month <- floor_date( epcwq3.sub$date, unit = 'month' )
chldat <- epcwq3.sub |> group_by(month) |> summarise( chl = mean(value) ) |> as.data.frame()
chldat <- epcwq3.sub |> group_by(month) |> dplyr::summarise( chl = mean(value) ) |> as.data.frame()
chldat$chl <- chldat$chl |> log10()
wqdat <- inner_join( chldat, loaddat, by = 'month' )

Expand Down
4 changes: 2 additions & 2 deletions R/cumu_chl-mean_TN_otb.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ epcwq3.sub <- epcwq3[ which( epcwq3$param=="Chla"
# & epcwq3$subseg==subseg
), ]
epcwq3.sub$month <- floor_date( epcwq3.sub$date, unit = 'month' )
chldat <- epcwq3.sub |> group_by(month) |> summarise( chl = mean(value) ) |> as.data.frame()
chldat <- epcwq3.sub |> group_by(month) |> dplyr::summarise( chl = mean(value) ) |> as.data.frame()
chldat$chl <- chldat$chl |> log10()
wqdat <- inner_join( chldat, loaddat, by = 'month' )

Expand Down Expand Up @@ -75,7 +75,7 @@ plot( mean ~ TN, data = chl_TN, las = 1,
ylim = c(0,2.5), yaxt = 'n',
ylab = "Chlorophyll a (ug/L)", xlab = "", xlim = c(10,200)
)
mtext( "TN load (tons/month)", side = 1, line = 2, cex = 0.7 )
mtext( "TN load (tons/month)", side = 1, line = 2, cex = 1 )
axis( 2, at = 0:3, las = 1,
labels = c( 10^0, 10^1, 10^2, 10^3 ) )
# abline( h = axTicks(2), col = rgb(0,0,0,0.1) )
Expand Down
Binary file added data/embed_pyro_otb.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_ce.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_cw.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_ne.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_nw.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_se.RData
Binary file not shown.
Binary file added data/embed_pyro_otb_sw.RData
Binary file not shown.
10 changes: 10 additions & 0 deletions data/pyro_routine.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name,lat,lon
TB Pyrodinium Station 01,28.02,-82.675
TB Pyrodinium Station 02,27.972,-82.673
TB Pyrodinium Station 03,27.98,-82.62
TB Pyrodinium Station 04,27.949,-82.561
TB Pyrodinium Station 05,27.957,-82.622
TB Pyrodinium Station 06,27.942,-82.675
TB Pyrodinium Station 07,27.9055,-82.6046
TB Pyrodinium Station 08,27.9244,-82.5496
TB Pyrodinium Station 09,27.86111,-82.58911
Binary file modified data/ssa_pyro_otb_ne.RData
Binary file not shown.
Binary file modified figs/cumu_chl-max_TN_otb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/cumu_chl-mean_TN_otb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figs/ssa_pyro_plots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1acb87a

Please sign in to comment.