Skip to content

Make sure all raster data has Point Sampling #10

@mauro3

Description

@mauro3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions