njtierney / geotargets

Targets extensions for geospatial data
https://njtierney.github.io/geotargets/
Other
60 stars 4 forks source link

Add `tar_terra_sds()` #94

Closed Aariq closed 2 months ago

Aariq commented 2 months ago

As was pointed out in #59, the inner workings for tar_terra_sds() and tar_terra_sprc() are 99% the same. This PR re-factors tar_terra_sprc() to create a stand-alone format function and corresponding standalone raw target function that work for either sds or sprc.

I'm considering combining tar_terra_sprc() and tar_terra_sds() into something like tar_terra_collection(name, command, type = c("sprc", "sds")) but I figured I'd submit the PR as is first to see what you think.