JuliaDataCubes / EarthDataLab.jl

Julia interface for Reading from the Earth System Datacube
http://earthsystemdatacube.net
Other
33 stars 14 forks source link

Regions #70

Open mafla opened 6 years ago

mafla commented 6 years ago

I don't request to change this. Just to remember that I find it strange that regions are always "bounding boxes" and not just the regions. Rationale: If you want to compute a statistic over e.g. some SREX region like CEU (which is a triangle) it is indeed actually nice to see the data in the bounding box, but if I want to do some statistics on the whole thing you will need to go via the mapCube-type of aggregation instead of simply mapslicsing a mean.

meggart commented 5 years ago

Can we mark this as solved through the new shapefile interface? It would still be in the responsibility of the user to do the masking then. I could imagine having a list of pre-stored shapefiles and then we could provide a function like getregionmask("CEU") that returns the rasterized shape for CEU over even a function like maskregion("CEU") that turns values outside the region into missings. Any thoughts?

mafla commented 5 years ago

Sounds perfect! :+1: Need an example online ...