Load and create NetCDF files in Julia
chunksize
is now a tuple of integers (was a vector of integers). On input (of defVar
and chunking
), a vector of integers is still accepted for compatibility.idimensions
key word argument is dropped from write. Use SubDatasets
instead to write a subset of a netcdf file.Dimensions
and Attributes
) are now subtypes of AbstractDict{Union{Symbol, AbstractString},Any}
.
map
are explicitly disallowed for AbstractDict
. Calls like map(fun,ds.dim)
where fun
is a function and ds
a netCDF datasets need to be replaced by map(fun,collect(ds.dim))
.Dict(ds.dim)
is now Dict{Union{Symbol, AbstractString},Any}
while it was a Dict{Union{Symbol, String},Any}
before.NCDatasets.CFVariable
was moved to CommonDataModel.CFVariable
. NCDatasets.NCDataset(var::NCDatasets.CFVariable)
is no longer supported, use NCDatasets.dataset(var::CommonDataModel.CFVariable)
instead.Merged pull requests:
Closed issues:
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 be ncvar[range_indices] .= scalar
ncvar2D[:]
flattens the data in the 2D NetCDF variable ncvar2D
. To read the full array one need to use ncvar2D[:,:]
or Array(ncvar2D)
(similarly for 3D, 4D... arrays).DimensionMismatch
exception (previously a NCDatasets.NetCDFError
exception was returned)ncvar
is a NetCDF variable where the 2nd dimension is unlimited, ncvar[:,:] = zeros(2,3)
should now be replaced by ncvar[:,1:3] = zeros(2,3)
Merged pull requests:
Variable
's (#205) (@tcarion)Closed issues:
NetCDFError
not defined (#207)var[ [] ]
(#209)defVar
(#212)Matrix{Union{Missing, Float32}}
(#227)