Skip to content

Commit 07ff66b

Browse files
committed
Make lower and upperbound kwargs
1 parent 251431b commit 07ff66b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rqatrend.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ using Distances
88
Compute the RQA trend metric for the datacube `cube` with the epsilon threshold `thresh`.
99
"""
1010
function rqatrend(cube; thresh=2, outpath=tempname() * ".zarr", overwrite=false, kwargs...)
11-
@show outpath
1211
mapCube(rqatrend, cube, thresh; indims=InDims("Time"), outdims=OutDims(; outtype=Float32, path=outpath, overwrite, kwargs...))
1312
end
1413

@@ -52,7 +51,7 @@ function rqatrend(pix_trend, pix, thresh=2, lowerbound=-5., upperbound=-0.5)
5251
pix_trend .= classify_rqatrend(rqatrend_impl(pix; thresh); lowerbound, upperbound)
5352
end
5453

55-
function classify_rqatrend(trend, lowerbound=Float32(-5.0), upperbound=Float32(-0.5))
54+
function classify_rqatrend(trend; lowerbound=Float32(-5.0), upperbound=Float32(-0.5))
5655
ctrend = clamp(trend, lowerbound, upperbound)
5756
rlength = upperbound - lowerbound
5857
return round(UInt8, 255-((ctrend - lowerbound) / rlength) * 255)

0 commit comments

Comments
 (0)