ropensci / smapr

An R package for acquisition and processing of NASA SMAP data
https://docs.ropensci.org/smapr
79 stars 25 forks source link

Extracting from a directory using extract_smap #71

Closed RomanChapman closed 1 year ago

RomanChapman commented 2 years ago

Just wondering if there is documentation (or functionality) for extracting previously downloaded HDF5 data from a directory using extract_smap(data, name, in_memory = FALSE)

mbjoseph commented 2 years ago

I believe you can do this by specifying overwrite=FALSE in your call to download_smap with a user specified dir. See for example: https://github.com/ropensci/smapr/blob/master/tests/testthat/test-extract_smap.R#L61-L69