Skip to content

Instantly share code, notes, and snippets.

@raymondben
Created June 4, 2020 04:19
Show Gist options
  • Save raymondben/6a00ccc14b27dfe441dc1c071ad3baf3 to your computer and use it in GitHub Desktop.
Save raymondben/6a00ccc14b27dfe441dc1c071ad3baf3 to your computer and use it in GitHub Desktop.
Use bowerbird to download AVISO FSLE files by ftp
##remotes::install_github("AustralianAntarcticDivision/blueant")
library(blueant)
data_dir <- tempfile() ## destination dir, change as needed
dir.create(data_dir) ## must exist
## "FSLE NRT" for near-real-time, "FSLE DT" for delayed-time
src <- sources("FSLE NRT") %>% bb_modify_source(user = "your_aviso_username", password = "your_password")
result <- bb_get(src, local_file_root = data_dir, verbose = TRUE)
## by default it'll download the entire collection. If only a subset of years is required, modify the method in the
## source configuaration e.g.
src <- bb_modify_source(src, method = list(accept_follow = "/(2019|2020)"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment