diff --git a/src/BiasCorrection/QDM.jl b/src/BiasCorrection/QDM.jl index a79600f..af4b420 100644 --- a/src/BiasCorrection/QDM.jl +++ b/src/BiasCorrection/QDM.jl @@ -86,8 +86,8 @@ function QDM_mov!(y_adj::AbstractVector{T}, year_beg = max(year - half, year_min) year_end = min(year + half, year_max) - inds_target = years == year - inds_mov = years in year_beg:year_end + inds_target = years .== year + inds_mov = year_beg .<= years .<= year_end _y_target = y_pred[inds_target] _y_mov = y_pred[inds_mov] @@ -106,6 +106,7 @@ function QDM_mov!(y_adj::AbstractVector{T}, end +# inds: spatial index function QDM_main(arr_obs::AbstractArray{T,3}, arr_calib::AbstractArray{T,3}, arr_pred::AbstractArray{T,3}, dates; diff --git a/src/utilize/nc_aggregate.jl b/src/utilize/nc_aggregate.jl index 735ed3a..76a7adb 100644 --- a/src/utilize/nc_aggregate.jl +++ b/src/utilize/nc_aggregate.jl @@ -13,7 +13,7 @@ function nc_aggregate(f::AbstractString, fout=nothing; by="year", fun=mean, fout === nothing && (fout = "$outdir/$(basename(f))") if isfile(fout) && !overwrite - println("[ok] file downloaded already!") + println("[ok] file already finished!") return end verbose && (println("[running] : $(basename(fout))"))