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

Make sure all raster data has Point Sampling #10

Open
mauro3 opened this issue Feb 5, 2023 · 0 comments
Open

Make sure all raster data has Point Sampling #10

mauro3 opened this issue Feb 5, 2023 · 0 comments

Comments

@mauro3
Copy link
Collaborator

mauro3 commented Feb 5, 2023

Quite confusingly raster data can have point or interval sampling. That also impacts on what the coordinates refer to, https://github.com/eth-vaw-glaciology/GlacioTools.jl#raster-data-as-point-or-area-data----and----as-center-coordinates.

I propose that we exclusively use Point sampling. I have a made an assertion function which checks that that is the case:

function assert_Point(ra::Union{AbstractRaster, AbstractRasterStack})
which can be used like so:
return assert_Point(RasterStack(gas..., metadata=Rasters.metadata(nc), dims=(x, y))), nc

TODO:

  • bedmap2 is interval-like
  • most geotiffs are, me thinks
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

No branches or pull requests

1 participant