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

Implement tar_stars_* family of targets #14

Closed
njtierney opened this issue Mar 12, 2024 · 3 comments
Closed

Implement tar_stars_* family of targets #14

njtierney opened this issue Mar 12, 2024 · 3 comments
Labels
new package suggestion of a new spatial package to support priority: medium

Comments

@njtierney
Copy link
Owner

Related to #4

We need to list the datatypes from {stars} that we want to support

@brownag brownag mentioned this issue Mar 15, 2024
@brownag
Copy link
Contributor

brownag commented Mar 16, 2024

In #33 I started by implementing a function tar_stars() based on stars::write_stars() to support targets based on stars objects. I also added an extension to the tar_format() read function to support stars_proxy objects after @Aariq's suggestion

It is possible to store both raster and vector data in stars objects. For multidimensional arrays, which can be derived from vector data, a driver needs to be chosen that will support multidimensional array output (e.g. netCDF, Zarr).

stars::write_mdim() can be used to write using the GDAL Multidimensional Raster Data Model. https://gdal.org/user/multidim_raster_data_model.html.

I implemented a sketch of this in f74fe91 which implements the mdim argument to toggle the multidimensional API in tar_stars() and tar_stars_proxy()

We could add options specifically for "mdim"-related processing such as "gdal.mdim.driver", since the user may wish to be able to handle their multidimensional datasets differently than other 2D raster data or vector data.

@Aariq Aariq added the new package suggestion of a new spatial package to support label Mar 28, 2024
@Aariq
Copy link
Collaborator

Aariq commented May 14, 2024

Would this be closed by #33 or are there other tar_stars*() functions we're imagining?

@Aariq
Copy link
Collaborator

Aariq commented Jun 6, 2024

I'm going to close this. Feel free to open a follow-up issue if there are other tar_stars_* functions that are needed.

@Aariq Aariq closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new package suggestion of a new spatial package to support priority: medium
Projects
None yet
Development

No branches or pull requests

3 participants