Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation #41

Merged
merged 19 commits into from
Apr 12, 2023
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Merge branch 'main' into joey-updatedocs
  • Loading branch information
jbisits committed Apr 12, 2023
commit f88acf2c50caa064642d422663e53fa3f2483809
11 changes: 5 additions & 6 deletions src/oceanvariabledistributions.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module RasterHistograms

using Rasters, StatsBase, MakieCore, DocStringExtensions
using Rasters, StatsBase, MakieCore, LinearAlgebra, DocStringExtensions
import LinearAlgebra.normalize!
import MakieCore.convert_arguments
import DimensionalData.dim2key
import Base.show
Expand Down Expand Up @@ -315,11 +316,9 @@ for information on the possible `mode`s and how they work.
"""
function LinearAlgebra.normalize!(arh::AbstractRasterHistogram; mode::Symbol = :pdf)

nm_raster_vec = [.!ismissing.(read(stack)[var]) for var ∈ keys(stack)]
intersection_non_missings = nm_raster_vec[1]
for nm_rs ∈ nm_raster_vec[2:end]
intersection_non_missings = intersection_non_missings .&& nm_rs .== 1
end
arh.histogram = LinearAlgebra.normalize(arh.histogram; mode)

return nothing

end

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.