Skip to content

Commit

Permalink
use unscaled data
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Apr 11, 2023
1 parent e48a183 commit 1c71966
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,20 +496,13 @@ function Base.write(dest::NCDataset, src::AbstractDataset;

cfvar = src[varname]
dimension_names = dimnames(cfvar)

var = if hasproperty(cfvar,:var)
cfvar.var
else
# TEST
cfvar
end

var = cfvar.var
# indices for subset
index = ntuple(i -> torange(get(idimensions,dimension_names[i],:)),length(dimension_names))

destvar = defVar(dest, varname, eltype(var), dimension_names; attrib = attribs(cfvar))
# copy data
destvar.var[:] = var[index...]
destvar.var[:] = cfvar.var[index...]
end

# loop over all global attributes
Expand Down

2 comments on commit 1c71966

@Alexander-Barth
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/81387

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.14 -m "<description of version>" 1c719662775e706c8c5d97518dea277399ca0692
git push origin v0.12.14

Please sign in to comment.