Created
June 4, 2020 04:19
-
-
Save raymondben/6a00ccc14b27dfe441dc1c071ad3baf3 to your computer and use it in GitHub Desktop.
Use bowerbird to download AVISO FSLE files by ftp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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