So. I have this function that reads my .h5 file, and to those inputs I apply some processes. Then make figures and save .jld2 files:
#Read data
strainrate, time, htime, offset, atrib = rdas("test/SR_DS_2023-04-11_13-54-42_UTC.h5");
# Cut the "bad" Channels from the DAS data.
slice_strainrate,slice_time,slice_htime,slice_offset = slicedas(strainrate,time,htime,offset; tmin=0, tmax=60, xmin=18, xmax=24);
# plot
c,viz = viewdas(strainrate, time, offset; cm=:RdBu_11, climit=(-1e4,1e4))
save("HighF.png",viz.scene)
Nothing fancy, but I need to run this many times and I would like to input the .h5 file name from the terminal as arg1 and then run the rest. Then I can incorporate it into my bash scripts