Open asinghvi17 opened 2 months ago
This is in the process of changing a lot for the better with Rasters.create
.
Its been around for a wile for internal use but I've made it a lot better and exported in https://github.com/rafaqz/Rasters.jl/pull/695
The idea is a unified interface for creating a Raster in memory or on disk, and some goodies like a function to apply to it while its open for the first time, initialising fill
values, etc.
The main stalling point on me just merging that PR is maskingval
is not a great keyword for the user-facing missingval
in the case there are two (mostly it will be missing
but could be e.g. NaN
or 0x00
for performance).
(Its in that PR because fixing all those keywords forced my hand to actually make create
general and work everywhere it needs to, and some questions like this came in at the same time so it may as well be exported and/or documented)
A basic version of this will go into geocompjl, but I'm not sure where the rest should lie.
It would be cool to have a tutorial that shows all the different things you can do (and have to be careful of) when building a raster from scratch.
missingval
before you reproject - I ran into this issue when trying to reproject a manually constructed rasterI will try to write this tutorial but would appreciate any suggestions!
cc @alex-s-gardner @haakon-e @tiemvanderdeure (just the people I'm aware of who may have built rasters from scratch and can contribute pain points)