README.md

README

This package is a collection of functions/workflows used for downloading datasets hosted online. So far there's only one...

Download NASA GES DISC data

This function requires a .txt file generated through the NASA GES DISC webset (https://disc.gsfc.nasa.gov/), seen here:

Click on "Subset/Get
Data"

Select "Instructions for downloading"

Click on item #2 "Download the list of links" to download the .txt
file containing download URLs

# Single-threaded:
modelCollect::download_GESDISC(path        = "C:/path/to/file.txt",
                               dest_folder = "C:/path/to/save/folder/")

# Multi-threaded:
library(parallel)
cl <- parallel::makeCluster(4)
modelCollect::download_GESDISC(path        = "C:/path/to/file.txt",
                               dest_folder = "C:/path/to/save/folder/",
                               cl          = cl)
  # warning: The NASA GES DISC may stop downloads when >5 requests are made simultaneously.  5 or less cores are suggested.


ssaxe-usgs/modelCollect documentation built on Aug. 20, 2019, 9:44 a.m.