unpack_SNODAS: Unpack SNODAS tarballs

View source: R/SNODAS_fun.R

unpack_SNODASR Documentation

Unpack SNODAS tarballs

Description

Unpacks all SNODAS tarballs in a directory

Usage

unpack_SNODAS(tar_dir = ".", out_dir = "data", rm_tar = TRUE)

Arguments

tar_dir

⁠[character = "."]⁠ The directory from which to unpack all SNODAS tarballs

out_dir

⁠[character = "."]⁠ The directory where outputs will be saved

rm_tar

⁠[logical = TRUE]⁠ Should tarball be deleted after unpacking?

Details

This function unpacks tarballs and returns SWE and snow depth files with new names in a user-defined directory.

Will probably end up getting called by a wrappper. TBD

Examples

## Not run: 

dd <- tempdir()

download_SNODAS(as.Date("2020-02-02"), out_dir = dd)
unpack_SNODAS(dd)


## End(Not run)

bsmity13/snowdl documentation built on Feb. 24, 2024, 9:03 p.m.