Skip to content

Commit

Permalink
Merge pull request #127 from cgrdn/master
Browse files Browse the repository at this point in the history
dal floats, small deployment page changes
  • Loading branch information
cgrdn authored Feb 7, 2025
2 parents eb4904e + 114aded commit d3f3d0c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
41 changes: 31 additions & 10 deletions deployment.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,39 @@ plan = df.loc[df.Status == 'CONFIRMED'].drop('Status', axis=1).reset_index().d
plan_table = plan.drop(['IMEI', 'Model'], axis=1)
n_floats = recent.shape[0]
n_sbe = recent.loc[recent.Detail == 'ARVOR_SBE'].shape[0]
n_rbr = recent.loc[recent.Detail == 'ARVOR_RBR'].shape[0]
n_do = recent.loc[recent.Detail == 'ARVOR+DO'].shape[0]
n_deep = recent.loc[recent.Detail == 'ARVOR_D'].shape[0]
n_cts4 = recent.loc[recent.Detail == 'PROVOR_CTS4'].shape[0]+recent.loc[recent.Detail == 'PROVOR_CTS4+SUNA'].shape[0]
n_cts5 = recent.loc[recent.Detail == 'PROVOR_CTS5'].shape[0]
model_mapper = {
'ARVOR_SBE':'ARVOR-SBE',
'ARVOR+DO':'ARVOR-SBE with Oxygen',
'ARVOR_RBR':'ARVOR-RBR',
'ARVOR_D':'Deep ARVOR with Oxygen',
'PROVOR_CTS4':'PROVOR CTS4',
'PROVOR_CTS4+pH':'PROVOR CTS4 with pH',
'PROVOR_CTS5':'PROVOR CTS5',
'PROVOR_CTS5+pH':'PROVOR CTS5 with pH',
'PROVOR_CTS4+SUNA':'PROVOR CTS4 with Nitrate',
'PROVOR_CTS5+SUNA':'PROVOR CTS5 with Nitrate',
'APEX_SBE':'APEX-SBE',
'APEX_RBR':'APEX-RBR',
}
if n_floats == 0:
summary_string = 'So far in 2025 we have not deployed any floats.'
else:
summary_string = f'To date we have deployed {n_floats} floats in 2025: '
for flt in recent.Detail.unique():
n = recent.loc[recent.Detail == flt].shape[0]
if n > 0:
summary_string += f'{n} {model_mapper[flt]}, '
summary_string = summary_string[:-2]
summary_string += '.'
```

```{r map, layout="l-page-outset"}
pal <- colorFactor(
c("green", "purple", "blue", "yellow","green"),
levels = c("BIO", "IOS", "ONC", "Dal","SAEON")
c("green", "purple", "blue", "yellow", "green"),
levels = c("BIO", "IOS", "ONC", "Dal", "SAEON")
)
icons <- iconList(
OPERATIONAL = makeIcon("images/buoy.png", "images/buoy.png", 16, 16),
Expand Down Expand Up @@ -115,9 +136,9 @@ leaflet() %>%
)
```

## Deployments since Jan 1, 2024
## Deployments since Jan 1, 2025

To date we have deployed `r py$n_floats` floats in 2024: `r py$n_sbe` ARVOR-SBE, `r py$n_rbr` ARVOR-RBR, `r py$n_do` ARVOR+DO, `r py$n_deep` Deep ARVOR+DO, `r py$n_cts4` PROVOR CTS4, and `r py$n_cts5` PROVOR CTS5.
`r py$summary_string`

```{r table_1, layout="l-page-outset shaded"}
assign_country <- function(name) {
Expand Down
8 changes: 8 additions & 0 deletions deployment/canada_deployments.csv
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,11 @@ Argo Canada,Blair Greenan,IOS,CONFIRMED,PROVOR,PROVOR_CTS4,PAC,2025-07-10,50,-14
Argo Canada,Blair Greenan,IOS,CONFIRMED,PROVOR,PROVOR_CTS5,PAC,2025-07-12,50,-145,JOHN P. TULLY,,,
Argo ONC,Kohen Bauer,ONC,CONFIRMED,Deep ARVOR,ARVOR_D,PAC,2025-08-04,,,,,,
Argo ONC,Kohen Bauer,ONC,CONFIRMED,Deep ARVOR,ARVOR_D,PAC,2025-08-06,,,,,,
Argo ONC,Kohen Bauer,ONC,CONFIRMED,Deep ARVOR,ARVOR_D,PAC,2026-08-04,,,,,,
Argo ONC,Kohen Bauer,ONC,CONFIRMED,Deep ARVOR,ARVOR_D,PAC,2026-08-06,,,,,,
Argo ONC,Kohen Bauer,ONC,CONFIRMED,Deep ARVOR,ARVOR_D,PAC,2026-08-04,,,,,,
Argo Dalhousie,Katja Fennel,Dal,OPERATIONAL,PROVOR,PROVOR_CTS5,ATL,2025-10-04,56.5,-52.6,,,,
Argo Dalhousie,Katja Fennel,Dal,OPERATIONAL,PROVOR,PROVOR_CTS5,ATL,2025-10-05,56.6,-49.0,,,,
Argo Dalhousie,Katja Fennel,Dal,OPERATIONAL,PROVOR,PROVOR_CTS5,ATL,2025-10-06,58.4,-49.5,,,,
Argo Dalhousie,Katja Fennel,Dal,OPERATIONAL,PROVOR,PROVOR_CTS5,ATL,2025-10-07,56.5,-52.5,,,,
Argo Dalhousie,Katja Fennel,Dal,OPERATIONAL,PROVOR,PROVOR_CTS5,ATL,2025-10-08,56.6,-49.5,,,,

0 comments on commit d3f3d0c

Please sign in to comment.