diff --git a/src/nc_date.jl b/src/nc_date.jl index a0ad1e7..3a1f3d7 100644 --- a/src/nc_date.jl +++ b/src/nc_date.jl @@ -1,6 +1,6 @@ nc_date(ds::NCdata) = ds["time"][:] -function nc_date(file::NCfiles; period=nothing) +function nc_date(file::AbstractString; period=nothing) nc_open(file) do ds dates = nc_date(ds) period === nothing && return dates @@ -10,6 +10,10 @@ function nc_date(file::NCfiles; period=nothing) end end +function nc_date(fs::Vector{<:AbstractString}; period=nothing) + map(f -> nc_date(f; period), fs) |> x -> vcat(x...) +end + function nc_calendar(file::AbstractString) nc_open(file) do ds # typeof(ds["time"][1])