Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tar_terra_sds() #94

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Add tar_terra_sds() #94

merged 4 commits into from
Sep 19, 2024

Conversation

Aariq
Copy link
Collaborator

@Aariq Aariq commented Sep 11, 2024

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.

@Aariq Aariq linked an issue Sep 11, 2024 that may be closed by this pull request
@Aariq Aariq linked an issue Sep 11, 2024 that may be closed by this pull request
Copy link
Owner

@njtierney njtierney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I think down the track these could be wrapped into a central function as you suggested - I think that is a good idea, but I wonder if we can have the best of both worlds where we can still have the convenience functions of tar_terr_sds() and tar_terra_sprc(), but these are powered under the hood by a larger function?

@Aariq Aariq merged commit 596bf4c into master Sep 19, 2024
7 checks passed
@Aariq Aariq deleted the tar_terra_sds branch September 19, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional GDAL write options not passed with tar_terra_sprc() create tar_terra_sds()
2 participants