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.
As was pointed out in #59, the inner workings for
tar_terra_sds()
andtar_terra_sprc()
are 99% the same. This PR re-factorstar_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()
andtar_terra_sds()
into something liketar_terra_collection(name, command, type = c("sprc", "sds"))
but I figured I'd submit the PR as is first to see what you think.