UTM4NN576ZBJR4WMEQBUP26FG2JLNLRAQQWZJSHGT6VH2ABYSDWAC
DJBAVTVO6E7GXXX4I6J4IHXP6URTJ7W6BTGN5PN5R2W7CU7XC5PQC
QA2TJZRA7RYN5UMRDLXWASQBU7YXV63R2A33EVJME6FV4S67WY3AC
2UBDFCJH2BG6U6SY2YDJ7QK4JOLUJAHOYZS3YRQ7E7U4UGP4YR5QC
ROFI4OLA7JABVWRTJTZQ5GHKYLSO5QKFUDQHWHWP7OEYTGNBCLPQC
7KO4BAOG5HYRSQOFMJTT3AD4K4OPOICXTTVO7K3UPPA24TACMLUAC
X54TLSYE7DYWGLQUI7AIZOABUCQ7WTHFC6G62UBA7RJZK4AYOJGAC
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, needs to be label
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, for old opensounscape model needs to be label
x -> rename_column!(x, "Kiwi", "label") |> #for new model Kiwi needs to read as label
a=Glob.glob("*/*/preds-2024-08-29.csv")
b=Glob.glob("*/*/*/preds-2024-08-29.csv")
c=Glob.glob("*/*/*/*/preds-2024-08-29.csv")
predictions = glob("*/*/preds-2024-10-21.csv")
For Kahurangi (1) Data
a=glob("Manu*/['m','X']*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")
b=glob("Manu*/['m','X']*/*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")
c=glob("Manu*/['m','X']*/*/*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")
predictions = [a ; b ; c]
a=glob("Manu*/['m','X']*/*/preds4_Kahurangi_1-2_2024-10-29.csv")
b=glob("Manu*/['m','X']*/*/*/preds4_Kahurangi_1-2_2024-10-29.csv")
c=glob("Manu*/['m','X']*/*/*/*/preds4_Kahurangi_1-2_2024-10-29.csv")
predictions = [a ; b ; c]
a=glob("Manu*/['m','X']*/*/preds3_Kahurangi_1-2_2024-10-29.csv")
b=glob("Manu*/['m','X']*/*/*/preds3_Kahurangi_1-2_2024-10-29.csv")
c=glob("Manu*/['m','X']*/*/*/*/preds3_Kahurangi_1-2_2024-10-29.csv")
## or
predictions = Glob.glob("*/*/preds-2024-10-21.csv")
For Kahurangi (2) Data
predictions=glob("Manu*/m*/preds_Kahurangi_1-2_ST_2024-10-29.csv")
predictions=glob("Manu*/m*/preds4_Kahurangi_1-2_2024-10-29.csv")
predictions=glob("Manu*/m*/preds3_Kahurangi_1-2_2024-10-29.csv")
For Cobb
predictions=glob("Friends*/preds_Kahurangi_1-2_ST_2024-10-29.csv")
predictions=glob("Friends*/preds4_Kahurangi_1-2_2024-10-29.csv")
predictions=glob("Friends*/preds3_Kahurangi_1-2_2024-10-29.csv")
Flora
a=glob("*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")
b=glob("*/*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")
c=glob("*/*/*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")
predictions=[a;b;c]
# to delete empty preds.csv files, should be ok now with improved python script
for file in list
size = stat(file).size
if size < 10
println("Deleting $file - $size")
rm(file)
end
end
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, needs to be label
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, for old opensoundscape kiwi model needs to be label
x -> Skraak.rename_column!(x, "Kiwi", "label") |> #for new kiwi model needs to be label
##p = replace(pth, "/" => "--") #replace / with -- including trailing /
##name = "$p$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"
name = "$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))" #leave off path, not necesaray if unique file names
##name = "$location-$h-$trip_date-$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"
f = "Clips_$(today())"
if unique_file_names == true
name = "$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))" #leave off path, not necesaray if unique file names
else
p = replace(pth, "/" => "--") #replace / with -- including trailing /
name = "$p$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"
end
f = "Clips_$id_$(today())"