Commit 53bbcc5c authored by Bas Couwenberg's avatar Bas Couwenberg

New upstream version 1.5.0.1

parent 14339366
version 1.5.0.1 (tag v1.5.0.1rel)
==================================
* binary wheels for linux and macosx rebuilt against netcdf-c 4.6.3 (instead
of 4.4.1.1).
* add read-shared mode (mode='rs'). Significantly speeds up reads of NETCDF3
files (pull request #902).
version 1.5.0 (tag v1.5.0rel)
===============================
* added support for parallel IO in the classic netcdf-3 formats through the
......
......@@ -5,10 +5,14 @@
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/fl9taa9je4e6wi7n/branch/master?svg=true)](https://ci.appveyor.com/project/jswhit/netcdf4-python/branch/master)
[![PyPI package](https://badge.fury.io/py/netCDF4.svg)](http://python.org/pypi/netCDF4)
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/netCDF4/badges/version.svg)](https://anaconda.org/conda-forge/netCDF4)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2592291.svg)](https://doi.org/10.5281/zenodo.2592291)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2592291.svg)](https://doi.org/10.5281/zenodo.2592290)
## News
For details on the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).
04/02/2019: Version [1.5.0.1](https://pypi.python.org/pypi/netCDF4/1.5.0.1) released. Binary wheels for macos x
and linux rebuilt with netcdf-c 4.6.3 (instead of 4.4.1.1). Added read-shared capability for faster reads
of NETCDF3 files (mode='rs').
03/24/2019: Version [1.5.0](https://pypi.python.org/pypi/netCDF4/1.5.0) released. Parallel IO support for classic
file formats added using the pnetcdf library (contribution from Lars Pastewka, [pull request #897](https://github.com/Unidata/netcdf4-python/pull/897)).
......
This diff is collapsed.
"""
Version 1.4.3
Version 1.5.0.1
-------------
- - -
......@@ -1190,7 +1190,7 @@ except ImportError:
# python3: zip is already python2's itertools.izip
pass
__version__ = "1.5.0"
__version__ = "1.5.0.1"
# Initialize numpy
import posixpath
......@@ -2006,14 +2006,14 @@ strings.
`netCDF4.Dataset` constructor.
**`filename`**: Name of netCDF file to hold dataset. Can also
be a python 3 pathlib instance or the URL of an OpenDAP dataset. When memory is
set this is just used to set the `filepath()`.
be a python 3 pathlib instance or the URL of an OpenDAP dataset. When memory is
set this is just used to set the `filepath()`.
**`mode`**: access mode. `r` means read-only; no data can be
modified. `w` means write; a new file is created, an existing file with
the same name is deleted. `a` and `r+` mean append (in analogy with
serial files); an existing file is opened for reading and writing.
Appending `s` to modes `w`, `r+` or `a` will enable unbuffered shared
Appending `s` to modes `r`, `w`, `r+` or `a` will enable unbuffered shared
access to `NETCDF3_CLASSIC`, `NETCDF3_64BIT_OFFSET` or
`NETCDF3_64BIT_DATA` formatted files.
Unbuffered access may be useful even if you don't need shared
......@@ -2200,7 +2200,7 @@ strings.
# **this causes parallel mode to fail when both hdf5-parallel and
# pnetcdf are enabled - issue #820 **
#_set_default_format(format='NETCDF3_64BIT_OFFSET')
elif mode == 'r':
elif mode in ('r', 'rs'):
if memory is not None:
IF HAS_NC_OPEN_MEM:
# Store reference to memory
......@@ -2223,7 +2223,13 @@ strings.
elif diskless:
ierr = nc_open(path, NC_NOWRITE | NC_DISKLESS, &grpid)
else:
ierr = nc_open(path, NC_NOWRITE, &grpid)
if mode == 'rs':
# NC_SHARE is very important for speed reading
# large netcdf3 files with a record dimension
# (pull request #902).
ierr = nc_open(path, NC_NOWRITE | NC_SHARE, &grpid)
else:
ierr = nc_open(path, NC_NOWRITE, &grpid)
elif mode == 'r+' or mode == 'a':
if parallel:
IF HAS_PARALLEL4_SUPPORT or HAS_PNETCDF_SUPPORT:
......
......@@ -584,7 +584,7 @@ else:
setup(name="netCDF4",
cmdclass=cmdclass,
version="1.5.0",
version="1.5.0.1",
long_description="netCDF version 4 has many features not found in earlier versions of the library, such as hierarchical groups, zlib compression, multiple unlimited dimensions, and new data types. It is implemented on top of HDF5. This module implements most of the new features, and can read and write netCDF files compatible with older versions of the library. The API is modelled after Scientific.IO.NetCDF, and should be familiar to users of that module.\n\nThis project is hosted on a `GitHub repository <https://github.com/Unidata/netcdf4-python>`_ where you may access the most up-to-date source.",
author="Jeff Whitaker",
author_email="jeffrey.s.whitaker@noaa.gov",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment