Skip to content

Commit

Permalink
.lon and .lat refer to new lon/lat grids in VectorMask, keep old ones…
Browse files Browse the repository at this point in the history
… in olon and olat
  • Loading branch information
natgeo-wong committed Jul 16, 2024
1 parent cf3a556 commit f766d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extract/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ function VectorGrid(
else; mask[ii] = NaN
end
end
jj = .!isnan.(mask)

return VectorMask{FT}(lon,lat,mask)
return VectorMask{FT}(lon,lat,mask,lon[jj],lat[jj])

end

Expand Down

0 comments on commit f766d0f

Please sign in to comment.