From 60e0e8971ed980fd47430e02762c270a76643f0c Mon Sep 17 00:00:00 2001 From: Joaquim Date: Tue, 29 Apr 2025 11:40:22 +0100 Subject: [PATCH] Fix one more situation where sp_indices had been broken --- src/spectral_indices.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectral_indices.jl b/src/spectral_indices.jl index 8bcba3e..34d892b 100644 --- a/src/spectral_indices.jl +++ b/src/spectral_indices.jl @@ -786,7 +786,7 @@ function sp_indices(bnd1, bnd2, bnd3=nothing; index::String="", kwargs...) end end - if (isa(bnd1, GMT.GMTimage) || isa(bnd1, GMT.GMTgrid) || isa(parent(bnd1), GMTimage)) # Last one is when slice is a SubArray{... + if (isa(bnd1, GMT.GMTimage) || isa(bnd1, GMT.GMTgrid) || isa(parent(bnd1), GItype)) # Last one is when slice is a SubArray{... if (ismask || classes !== nothing) I = mat2img(mask, isa(bnd1, GMT.GMTimage) ? bnd1 : parent(bnd1)) I.layout="BRPa"