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

Provide conversion of sits objects to/from other R packages #1313

Open
gilbertocamara opened this issue Mar 21, 2025 · 3 comments
Open

Provide conversion of sits objects to/from other R packages #1313

gilbertocamara opened this issue Mar 21, 2025 · 3 comments
Assignees
Milestone

Comments

@gilbertocamara
Copy link
Contributor

Describe the requested improvement
Users would benefit from the capacity to convert of sits objects to/from other R spatial packages, such as terra, stars and sf. Converting from a stars object to a sits cube could facilitate user experience, particularly for local files.

Associated sits API function
sits_cube()
sits_as_sf()

Additional context
Progress on this work should be reported to @mdsumner @edzer @loreabad6 @Nowosad @mpadge @Nowosad @alexgleith

@gilbertocamara
Copy link
Contributor Author

For information to @mdsumner @edzer @loreabad6 @Nowosad @mpadge @Nowosad @alexgleith:

sits_as_sf() is already available in version 1.5.3-dev (development version)

@gilbertocamara gilbertocamara changed the title Provide conversion of sits objects to other R packages Provide conversion of sits objects to/from other R packages Mar 21, 2025
@gilbertocamara
Copy link
Contributor Author

For information to @mdsumner @edzer @loreabad6 @Nowosad @mpadge @Nowosad @alexgleith:

sits_as_stars() is already available in version 1.5.3-dev (development version)

@gilbertocamara
Copy link
Contributor Author

For information to @mdsumner @edzer @loreabad6 @Nowosad @mpadge @Nowosad @alexgleith:

sits now provides functions sits_as_sf, sits_as_stars and sits_as_terra to convert from sits objects to stars, terra, and sf one. As suggested by @edzer, we will also include a st_as_stars.raster_cube function so that stars users can directly import data cubes from sits

The new functions can be assessed and tested in the "dev" version:

devtools::install_github("e-sensing/sits@dev")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

3 participants