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)