Releases: Alexander-Barth/NCDatasets.jl
Releases · Alexander-Barth/NCDatasets.jl
v0.14.6
v0.14.5
NCDatasets v0.14.5
Closed issues:
v0.14.4
v0.14.3
NCDatasets v0.14.3
v0.14.2
NCDatasets v0.14.2
Closed issues:
- NCDatasets v0.14.1 cannot create variable from an Int64 array with missing values if
fillvalue
is not specified (#246)
v0.14.1
NCDatasets v0.14.1
- Alternative masking values (experimental), see
https://alexander-barth.github.io/NCDatasets.jl/dev/other/#Fill-values-and-missing-values
v0.14.0
NCDatasets v0.14.0
Breaking changes
chunksize
is now a tuple of integers (was a vector of integers). On input (ofdefVar
andchunking
), a vector of integers is still accepted for compatibility.idimensions
key word argument is dropped from write. UseSubDatasets
instead to write a subset of a netcdf file.- The container type of dimensions and attributes (
Dimensions
andAttributes
) are now subtypes ofAbstractDict{Union{Symbol, AbstractString},Any}
.- Certain functions like
map
are explicitly disallowed forAbstractDict
. Calls likemap(fun,ds.dim)
wherefun
is a function andds
a netCDF datasets need to be replaced bymap(fun,collect(ds.dim))
. - The type of
Dict(ds.dim)
is nowDict{Union{Symbol, AbstractString},Any}
while it was aDict{Union{Symbol, String},Any}
before.
- Certain functions like
NCDatasets.CFVariable
was moved toCommonDataModel.CFVariable
.NCDatasets.NCDataset(var::NCDatasets.CFVariable)
is no longer supported, useNCDatasets.dataset(var::CommonDataModel.CFVariable)
instead.
Note
- If you notice other breaking changes please file an issue in order to either update the release notes or to fix an unintended change.
- Many functions and types not specific to NetCDF files (multi-files, views, and load by value) have been moved to CommonDataModel.jl
v0.13.2
v0.13.1
NCDatasets v0.13.1
v0.13.0
NCDatasets v0.13.0
NCDatasets uses now the DiskArray package which required some API changes.
In general, the array API of NCDatasets is now more similar to base Julia in particular:
ncvar[range_indices] = scalar
should now bencvar[range_indices] .= scalar
ncvar2D[:]
flattens the data in the 2D NetCDF variablencvar2D
. To read the full array one need to usencvar2D[:,:]
orArray(ncvar2D)
(similarly for 3D, 4D... arrays).- Accessing an array out of bounds, new returns a
DimensionMismatch
exception (previously aNCDatasets.NetCDFError
exception was returned) - To grow a NetCDF variable with unlimited dimension, the corresponding index of left-hand side of the assignment cannot be a colon, but should be a range. For example if
ncvar
is a NetCDF variable where the 2nd dimension is unlimited,ncvar[:,:] = zeros(2,3)
should now be replaced byncvar[:,1:3] = zeros(2,3)
Merged pull requests:
- DiskArrays for
Variable
's (#205) (@tcarion) - Fix checksum docstring (#213) (@navidcy)
- Correction of typos (#216) (@keduba)
- CompatHelper: add new compat entry for "DiskArrays" at version "0.3" (#229) (@github-actions[bot])
Closed issues:
- NCDatasets.jl v0.11+ does not work on PowerPC (#116)
- For compressed netcdf, extremely low speed in cdo operation (#206)
- LoadError: UndefVarError:
NetCDFError
not defined (#207) - [Suggestion] easier creation of time axis (#208)
- [enhancement] support empty array
var[ [] ]
(#209) - Using NCDatasets.jl in R (#210)
- No warning message when passing wrong keywords to
defVar
(#212) - @select not work for 4d array (#214)
- NCDatasets fails due to build issue on Julia 1.10 (#215)
- Significant performance gap between NetCDF.jl and NCDatasets.jl (#218)
- Write data fails when the number less than typemax(Datatype) (#226)
- Return type
Matrix{Union{Missing, Float32}}
(#227)