-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add histogram fitting for Raster
data structures and break code into submodules
#33
Conversation
Codecov Report
@@ Coverage Diff @@
## main #33 +/- ##
===========================================
- Coverage 100.00% 93.81% -6.19%
===========================================
Files 2 2
Lines 123 291 +168
===========================================
+ Hits 123 273 +150
- Misses 0 18 +18
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Add temporary compat for DimensionalData.jl
Temporarily add DimensionalData to deps so compat is used
Once tests have been updated for the new way the |
Raster
data structuresRaster
data structures and break code into submodules
Codecov is less because of the |
This PR
adds methods tocreates the new modulefit
from StatsBase.jl forRaster
s,RasterStack
s andRasterSeries
sRasterHistogras
. There is an abstract typeAbstracRasterHistogram
and a mutable type for generating aHistogram
from aRaster
,RasterStack
, orRasterSeries
. TheRasterLayerHistogram
is 1 dimensional while theRasterStackHistogram
andRasterSeriesHistogram
can be N-dimensional where N is the number of layers. The types are mutable so that theHistogram
(that is fit using StastBase.jl) can benormalize
d and updated in theAbstractRasterHistogram
.There are functions to calculate area and volume weights based on the dimensions of
Raster
source.The code is also organised into submodules so only parts of the package that are necessary to ones use can be loaded.
Closes #35