-
Notifications
You must be signed in to change notification settings - Fork 4
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_stars()
#33
Add tar_stars()
#33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to clarify that this currently works for stars raster cubes, but might not work for vector cubes or stars.proxy objects. We might want to explore these other formats a bit and depending on the findings of that exploration, perhaps call this tar_stars_raster
even though both raster cubes and vector cubes have the same class (stars
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this, @brownag !
All looks great to me, here are some suggestions on pkg documentation and using rlang::check_installed()
- noticed while writing stars tests
Good point about vector cubes, we should work up an example for that in a new issue. We can hash it out before merging this PR if need be. In 0e20c17 I added support for
I think we should open an issue for this and look into some vector data cube examples--I am not a heavy user of stars, and can't say I have a ton of experience with that specific application--though I want to investigate now. As I understand it creating vector data cubes requires reading the vector data with |
- substitute in options, read/write functions following njtierney#43 - add support for reading netCDF via `stars::read_ncdf()` using njtierney#43 - consolidate option getter usage for njtierney#34
If you'd like, I can attempt to bring this up to speed with the master branch. That'll make it easier to review and discuss. |
Thanks for the offer, I've been trying to keep up with changes... and wanted to make sure I went over everything so got the new master branch merged in here. I am going to re-request review on this now. I think all prior comments/changes have been resolved and/or referred to in an open issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you re-run devtools::document() to update tar_stars.Rd
Co-authored-by: Eric R. Scott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending the changes from @Aariq and a minor change that I have about using @importFrom
and a request to add an example of stars into the README, I think this is looking good :)
Fantastic, thanks @brownag ! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Only other thing is can you update NEWS.md now that we have it?
Co-authored-by: Eric R. Scott <[email protected]>
Thanks, done! |
Merge commit '1816bcdd41bcdc6e7b770017db1cac9ecd074f46' #Conflicts: # DESCRIPTION # R/geotargets-option.R # R/tar-terra-rast.R # README.Rmd # README.md
Adds format methods
tar_stars()
,tar_stars_proxy()
for #14Adds {sf}, {stars} and {ncmeta} to suggests
When
mdim=TRUE
tar_stars()
andtar_stars_proxy()
can use the GDAL Multidimensional Raster Data Model as a backend viastars::read/write_mdim()
instead ofstars::read/write_stars()
When
ncdf=TRUE
"read" methods can be toggled to usestars::read_ncdf()
(instead ofstars::read_stars()
orstars::read_mdim()
) which requires {ncmeta}To be less repetitive I think
tar_stars_proxy()
could calltar_stars(proxy=TRUE)
but I still need to sort out how arguments would need to be deparsed to do this.