Skip to contents

Helper to download relevant BLE data

Usage

scrape_ble_lib(
  database_path,
  HUCID,
  is_quiet = FALSE,
  overwrite = overwrite,
  files = "m"
)

Arguments

database_path

Path to load data into. NOTE: Must be LOCAL path

HUCID

The huc8 ID as a string to try and scrape

is_quiet

flag to determine whether print statements are suppressed, TRUE to suppress messages and FALSE to show them, Default: FALSE

overwrite

overwrite flag for data already loaded in your path. TRUE to remove and re-download., Default: overwrite

files

a string encoding to determine what files to attempt to download, can contain 'm' for models, 's' for spatial data, and 'd' for documentation, Default: 'm'

Value

The requested BLE data as a scraped zip file

Details

Scraping data from https://ebfedata.s3.amazonaws.com/ based on pointers from https://webapps.usgs.gov/infrm/estBFE/. See also the Texas specific dashboard at https://www.arcgis.com/apps/dashboards/1e98f1e511fc40d3b08790a4251a64ee for more BLE base models.

Examples

if (FALSE) { # \dontrun{
if(interactive()){
 #EXAMPLE1
 database_path <- file.path("~/data/ras_catalog/")
 RRASSLER::scrape_ble_lib(database_path,'12090301',is_quiet = FALSE,overwrite = FALSE,files = "ms")
 }
} # }