Skip to content

Commit b3e6575

Browse files
committed
Fix default arg
1 parent c1f86ce commit b3e6575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ArgParse.parse_item(::Type{Date}, x::AbstractString) = Date(x)
2929

3030
"--orbit", "-o"
3131
help = "One of: Orbit number, 'A' for ascending, 'D' for descending, '*' for all orbits"
32-
default = "A"
32+
default = "D"
3333

3434
"--out-dir", "-d"
3535
help = "Path to output zarr dataset"
@@ -53,7 +53,7 @@ ArgParse.parse_item(::Type{Date}, x::AbstractString) = Date(x)
5353

5454
"--folders", "--folder"
5555
help = "subfolders taken into account"
56-
default = ["V01R01", "V0M2R4", "V1M0R1", "V1M1R1", "V1M1R2"]
56+
default = ["V1M0R1", "V1M1R1", "V1M1R2"]
5757
arg_type = String
5858
nargs = '*'
5959
end
@@ -98,12 +98,12 @@ function main(;
9898
corruptedfiles = "corrupted_tiles.txt"
9999
# TODO save the corrupt files to a txt for investigation
100100
for tilefolder in tiles
101-
102101
filenamelist = [glob("$(sub)/*$(continent)*20M/$(tilefolder)/*$(polarisation)_$(orbit)*.tif", indir) for sub in folders]
103102
allfilenames = collect(Iterators.flatten(filenamelist))
104103

105104
relorbits = unique([split(basename(x), "_")[5][2:end] for x in allfilenames])
106105
@show relorbits
106+
107107
for relorbit in relorbits
108108
filenames = allfilenames[findall(contains("$(relorbit)_E"), allfilenames)]
109109
@time cube = gdalcube(filenames, stack)

0 commit comments

Comments
 (0)