From a4c26ea58991f5a1ef3737dbd2814a5cd81e71cf Mon Sep 17 00:00:00 2001 From: Felix Cremer Date: Mon, 3 Mar 2025 12:22:11 +0100 Subject: [PATCH] Fix input folders and add start and end date to output path --- src/main.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.jl b/src/main.jl index c74affa..a6995d1 100644 --- a/src/main.jl +++ b/src/main.jl @@ -73,10 +73,10 @@ function main(; start_date::Date, end_date::Date, polarisation="VH", - orbit="D", + orbit="A", threshold=3.0, - folders=["V1M0R1", "V1M1R1", "V1M1R2"], - stack=:dae + folders=["V0M2R4", "V1M1R1", "V1M1R2", ], + stackstrategy=:lazyagg ) in(orbit, ["A", "D"]) || error("Orbit needs to be either A or D") if isdir(indir) && isempty(indir) @@ -106,9 +106,9 @@ function main(; for relorbit in relorbits filenames = allfilenames[findall(contains("$(relorbit)_E"), allfilenames)] - @time cube = gdalcube(filenames, stack) + @time cube = gdalcube(filenames, stackstrategy) - path = joinpath(YAXDefaults.workdir[], "$(tilefolder)_rqatrend_$(polarisation)_$(orbit)$(relorbit)_thresh_$(threshold)") + path = joinpath(YAXDefaults.workdir[], "$(tilefolder)_rqatrend_$(polarisation)_$(orbit)$(relorbit)_thresh_$(threshold)_start_$(start_date)_end_$end_date") @show path ispath(path * ".done") && continue ispath(path * "_zerotimesteps.done") && continue