Skip to content

Commit

Permalink
more info
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed May 14, 2024
1 parent e555e11 commit 9447fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ function download(dsopendap::CDMDataset{TDS},variablename::Symbol;
fname_subset = joinpath(dsopendap.cachedir,fbasename * ".nc")

if isfile(fname_subset)
@info "$fname_subset is in cache"
@info "$fname_subset is in cache ($n0)"
else
# download to a temporary file in case
# the download fails
tmp = fname_subset * ".partial-" * randstring(12)
ds_subset = view(_ds; pairs(indices0)...)

@info "download $name in $fname_subset"
@info "download $variablename in $fname_subset ($n0)"
NCDataset(tmp,"c") do ds
NCDatasets.write(
ds,ds_subset,
Expand Down

0 comments on commit 9447fbf

Please sign in to comment.