Skip to content
Draft
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
5dcb1f7
WIP: geometry lookup
asinghvi17 Jan 8, 2025
4bccf40
Multi/polygon writing
asinghvi17 Jan 9, 2025
6717902
Add crs, reproject
asinghvi17 Jan 9, 2025
8d6f670
Hook up CRS, export GeometryLookup
asinghvi17 Jan 10, 2025
b614376
add super basic tests
asinghvi17 Jan 10, 2025
5ec0af6
Merge branch 'main' into as/vectordatacubes
asinghvi17 Apr 22, 2025
ab7d427
move geometry_lookup to a folder
asinghvi17 Apr 22, 2025
1c55155
add overrides for zonal when it's passed a GeometryLookup or dim that…
asinghvi17 Apr 22, 2025
55cb66d
make zonal use the fast-path missing return only if skipmissing = true
asinghvi17 Apr 22, 2025
5f6b368
implement automatic spatial slicing for datacubes
asinghvi17 Apr 22, 2025
09d8ac3
add comments, set `spatialslices` to `_True` initially for assured const
asinghvi17 Apr 22, 2025
3757a35
fix geomlookup method
asinghvi17 Apr 22, 2025
aa1bcc5
wip fancy rebuild / dim detection
asinghvi17 Apr 22, 2025
debb290
implement isfalse
asinghvi17 Apr 22, 2025
16ef85b
add a missingval kwarg so we can fix things correctly
asinghvi17 Apr 22, 2025
af2e447
missingval support
asinghvi17 Apr 22, 2025
233018f
fix run: remove static, let threaded be anything for extensibility
asinghvi17 Apr 22, 2025
41ef26e
pass spatial slices through the geometrylookup zonal
asinghvi17 Apr 22, 2025
1b7d26c
disallow missings in geom lookup
asinghvi17 Apr 22, 2025
19775da
allow metadata kwarg to rebuild
asinghvi17 Apr 22, 2025
97474fe
plotting support for dim 1 vectordatacubes
asinghvi17 Apr 22, 2025
e1ab26d
default missingval is missing not nothing
asinghvi17 Apr 22, 2025
b0293ca
Geometry named dim
asinghvi17 Apr 22, 2025
dba05f3
harvest crs from collections
asinghvi17 Apr 22, 2025
1ba940b
move io to new file
asinghvi17 Apr 22, 2025
0237228
dispatch on Dimension not Dim
asinghvi17 Apr 22, 2025
b69192e
plot for skip missing
asinghvi17 Apr 22, 2025
0d31b48
fix crs
asinghvi17 Apr 22, 2025
9db69a1
use traittarget in io
asinghvi17 Apr 22, 2025
f123e70
move lookup methods to lookups.jl
asinghvi17 Apr 23, 2025
645e9dc
don't slice if the dims are already only x and y
asinghvi17 Apr 23, 2025
cee0dae
add tests but GeometryOps is broken for this one
asinghvi17 Apr 23, 2025
e600bed
better label in plot
asinghvi17 Apr 23, 2025
aed90c8
move reproject to methods
asinghvi17 Apr 23, 2025
5ecde8f
handle empty data, do not create trees for it
asinghvi17 Apr 23, 2025
07ba496
make geometry lookup an abstract merged
asinghvi17 Apr 23, 2025
4624c5a
enable lookups for per-dim touches and intervals
asinghvi17 Apr 23, 2025
f13d0db
add sources
asinghvi17 Apr 24, 2025
d0c68f1
rebuild stacks in regular zonal
asinghvi17 Apr 24, 2025
cd71100
updates for DD pr
asinghvi17 Apr 24, 2025
3bd7451
fix
asinghvi17 Apr 24, 2025
f89e23b
make crs better on rasters
asinghvi17 Apr 24, 2025
2e44421
allow Near on points
asinghvi17 Apr 24, 2025
2184b92
enable at on points / forward for other things
asinghvi17 Apr 24, 2025
88230bb
fix touches
asinghvi17 Apr 26, 2025
626b8ee
minor fixes
asinghvi17 Apr 26, 2025
899b36a
make extract multidimensional
asinghvi17 Apr 26, 2025
26ce1a0
make the change non breaking
asinghvi17 Apr 26, 2025
a97ae9f
Clean up lookups
asinghvi17 Apr 26, 2025
056cd0d
Update methods.jl
asinghvi17 Apr 27, 2025
3b052b9
Update zonal.jl
asinghvi17 Apr 27, 2025
629cf6a
only run zonal if not on fast, all-is-missing path
asinghvi17 Apr 29, 2025
4a56b50
basic netcdf io, could be more optimized / streamlike
asinghvi17 Apr 29, 2025
3c1cc29
fix
asinghvi17 Apr 29, 2025
71700f5
add some test files as text that can be fed into ncgen
asinghvi17 May 3, 2025
eb6fa75
add decoders for all geomtraits
asinghvi17 May 3, 2025
e9f5186
use the test files in nc_io.jl which should now be a test file
asinghvi17 May 3, 2025
e94b28b
fully implement, and "test" all six geom types
asinghvi17 May 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
Flatten = "4c728ea3-d9ee-5c9a-9642-b6f7d7dc04fa"
GeoFormatTypes = "68eda718-8dee-11e9-39e7-89f7f65f511f"
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f"
GeometryOps = "3251bfac-6a57-4b6d-aa61-ac1fef2975ab"
GeometryOpsCore = "05efe853-fabf-41c8-927e-7063c8b9f013"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Missings = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
Expand All @@ -25,6 +26,7 @@ ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
SortTileRecursiveTree = "746ee33f-1797-42c2-866d-db2fce69d14d"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[weakdeps]
Expand Down Expand Up @@ -69,6 +71,7 @@ GeoDataFrames = "0.3"
GeoFormatTypes = "0.4"
GeoInterface = "1.0"
GeometryBasics = "0.4"
GeometryOps = "0.1.19"
GeometryOpsCore = "0.1.1"
Makie = "0.20, 0.21, 0.22"
Missings = "0.4, 1"
Expand All @@ -83,6 +86,7 @@ Reexport = "0.2, 1.0"
SafeTestsets = "0.1"
Setfield = "0.6, 0.7, 0.8, 1"
Shapefile = "0.10, 0.11"
SortTileRecursiveTree = "0.1.1"
Statistics = "1"
StatsBase = "0.34"
Test = "1"
Expand Down
8 changes: 7 additions & 1 deletion src/Rasters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Adapt,
FillArrays,
Flatten,
GeoInterface,
GeometryOps,
GeometryOpsCore,
OffsetArrays,
ProgressMeter,
Expand All @@ -29,6 +30,7 @@ import Adapt,
RecipesBase,
Reexport,
Setfield,
SortTileRecursiveTree,
Statistics

Reexport.@reexport using DimensionalData, GeoFormatTypes
Expand Down Expand Up @@ -62,7 +64,7 @@ export Planar, Spherical
export AbstractRaster, Raster
export AbstractRasterStack, RasterStack
export AbstractRasterSeries, RasterSeries
export Projected, Mapped
export Projected, Mapped, GeometryLookup
export Band
export missingval, boolmask, missingmask, replace_missing, replace_missing!,
aggregate, aggregate!, disaggregate, disaggregate!, mask, mask!,
Expand All @@ -76,6 +78,7 @@ export Extent, extent
const DD = DimensionalData
const DA = DiskArrays
const GI = GeoInterface
const GO = GeometryOps
const LA = Lookups

# DimensionalData documentation urls
Expand Down Expand Up @@ -119,6 +122,9 @@ const RasterSeriesOrStack = Union{AbstractRasterSeries,AbstractRasterStack}
include("utils.jl")
include("skipmissing.jl")

include("geometry_lookup/geometry_lookup.jl")
include("geometry_lookup/methods.jl")

include("table_ops.jl")
include("create.jl")
include("read.jl")
Expand Down
Loading
Loading