Skip to content

Commit

Permalink
Debug cos bounds isn't a thing in those functions
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Mar 4, 2024
1 parent fd5f305 commit 762d236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extract/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function RectGrid(

@info "$(modulelog()) - Creating vector of longitude indices to extract ..."
if iW < iE; iWE = vcat(iW:iE)
elseif iW > iE || (iW == iE && bounds[3] != bounds[4])
elseif iW > iE || (iW == iE && E != W)
iWE = vcat(iW:length(lon),1:iE); nlon[1:(iW-1)] .+= 360
else; iWE = [iW];
end
Expand Down Expand Up @@ -147,7 +147,7 @@ function PolyGrid(

@info "$(modulelog()) - Creating vector of longitude indices to extract ..."
if iW < iE; iWE = vcat(iW:iE)
elseif iW > iE || (iW == iE && bounds[3] != bounds[4])
elseif iW > iE || (iW == iE && E != W)
iWE = vcat(iW:length(lon),1:iE); nlon[1:(iW-1)] .+= 360
else; iWE = [iW];
end
Expand Down

0 comments on commit 762d236

Please sign in to comment.