If you want to use Glob.jl then something like this can be useful
for name in glob("Model_Synthetic_Star_/*", "Data_Weight")
# load first portion of data using `name` of the file
end
for name in glob("Weight_Synthetic_Star_/*", "Data_Weight")
# load second portion of data
end
First argument of glob defines search paths and second argument defines root (and all paths are calculated relative to this root).
Thank you for your suggestion.
I developed this code. I would like to enter inside of it, but I have an error.
using Glob
using EasyFITS
for names in glob("model/*")
for name in glob("weight/*")
DATA = read(FitsArray, names)
WEIGHT = read(FitsArray, name)
DATA = names[:,:,:]
WEIGHT= name[:,:,:]
end
end