forked from pool/python-netCDF4
Compare commits
49 Commits
Author | SHA256 | Date | |
---|---|---|---|
013e6bfc45 | |||
e0ccfc46a3 | |||
ce59306323 | |||
3568e2983d | |||
6955f0d719 | |||
88dc27c594 | |||
7f83e35015 | |||
99d76840eb | |||
a3312bb90d | |||
289f3e9caa | |||
13a85a7cf9 | |||
1950b57898 | |||
64ca7478db | |||
6e89d3d527 | |||
e86d080873 | |||
82ad4a137f | |||
55164dac06 | |||
517e1552e5 | |||
581e1c371b | |||
d10ab42e93 | |||
38f4fdd363 | |||
0c505d1f61 | |||
8d710c1649 | |||
3831b8f0e1 | |||
4b136770a8 | |||
72c6d399a8 | |||
af19a0e950 | |||
75d2f18243 | |||
1e429e98a2 | |||
6c2dfc7d6c | |||
|
918807d778 | ||
7d057bb808 | |||
fe551ac771 | |||
708db6d8b2 | |||
7e3731e59f | |||
|
9b437d38b8 | ||
403f989c44 | |||
|
fe089eb04e | ||
86f8c25f1c | |||
|
d393741ae3 | ||
927258a750 | |||
|
b93d1d84d3 | ||
ca711dc416 | |||
|
f6e75e17ff | ||
0e00154e78 | |||
|
457e07567c | ||
f6318ca11f | |||
08b61d4c39 | |||
c375b27a67 |
45
1322.patch
45
1322.patch
@@ -1,45 +0,0 @@
|
||||
From ea590c2f94b1ce93e6873cf712beb0e3d92b4e9b Mon Sep 17 00:00:00 2001
|
||||
From: Orion Poplawski <orion@nwra.com>
|
||||
Date: Wed, 8 May 2024 20:50:22 -0600
|
||||
Subject: [PATCH] Fix incompatbile pointer argument to nc_put_att_string()
|
||||
|
||||
---
|
||||
include/netCDF4.pxi | 2 +-
|
||||
src/netCDF4/_netCDF4.pyx | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/include/netCDF4.pxi b/include/netCDF4.pxi
|
||||
index 00d883662..9404171db 100644
|
||||
--- a/include/netCDF4.pxi
|
||||
+++ b/include/netCDF4.pxi
|
||||
@@ -263,7 +263,7 @@ cdef extern from "netcdf.h":
|
||||
size_t len, void *op) nogil
|
||||
int nc_get_att(int ncid, int varid, char *name, void *ip) nogil
|
||||
int nc_get_att_string(int ncid, int varid, char *name, char **ip) nogil
|
||||
- int nc_put_att_string(int ncid, int varid, char *name, size_t len, char **op) nogil
|
||||
+ int nc_put_att_string(int ncid, int varid, char *name, size_t len, const char **op) nogil
|
||||
int nc_def_opaque(int ncid, size_t size, char *name, nc_type *xtypep) nogil
|
||||
int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep) nogil
|
||||
int nc_put_att_opaque(int ncid, int varid, char *name,
|
||||
diff --git a/src/netCDF4/_netCDF4.pyx b/src/netCDF4/_netCDF4.pyx
|
||||
index 640ab6846..b957f4e35 100644
|
||||
--- a/src/netCDF4/_netCDF4.pyx
|
||||
+++ b/src/netCDF4/_netCDF4.pyx
|
||||
@@ -1796,7 +1796,7 @@ be raised in the next release."""
|
||||
string_ptrs[j] = strings[j]
|
||||
issue485_workaround(grpid, varid, attname)
|
||||
with nogil:
|
||||
- ierr = nc_put_att_string(grpid, varid, attname, N, string_ptrs)
|
||||
+ ierr = nc_put_att_string(grpid, varid, attname, N, <const char**>string_ptrs)
|
||||
finally:
|
||||
PyMem_Free(string_ptrs)
|
||||
else:
|
||||
@@ -1825,7 +1825,7 @@ be raised in the next release."""
|
||||
except UnicodeError:
|
||||
issue485_workaround(grpid, varid, attname)
|
||||
with nogil:
|
||||
- ierr = nc_put_att_string(grpid, varid, attname, 1, &datstring)
|
||||
+ ierr = nc_put_att_string(grpid, varid, attname, 1, <const char**>&datstring)
|
||||
else:
|
||||
with nogil:
|
||||
ierr = nc_put_att_text(grpid, varid, attname, lenarr, datstring)
|
BIN
netCDF4-1.6.5.tar.gz
(Stored with Git LFS)
BIN
netCDF4-1.6.5.tar.gz
(Stored with Git LFS)
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:797f0b25d87827fc6821e415d9e15a2068604b18c3be62563e72682bcba76548
|
||||
size 827730
|
3
netcdf4-1.7.2.tar.gz
Normal file
3
netcdf4-1.7.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a4c6375540b19989896136943abb6d44850ff6f1fa7d3f063253b1ad3f8b7fce
|
||||
size 835064
|
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 20:59:04 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.7.2:
|
||||
* add static type hints (PRs #1302, #1349)
|
||||
* Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module
|
||||
functions). (PR #1348)
|
||||
* Add Variable.get_fill_value and allow `fill_value='default'`
|
||||
to set `_FillValue` attribute using default fill values.
|
||||
* Fix NETCDF3 endian error (issue #1373, PR #1355).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 22 01:40:01 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Support both lowercased and unnormalized metadata directory names.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 30 13:10:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.7.1.post2:
|
||||
* ci fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 17 14:42:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
@@ -218,7 +240,7 @@ Thu May 21 10:56:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
Tue Nov 19 20:48:10 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- Update to 1.5.3:
|
||||
* make sure arrays are masked that are not filled when auto_fill is off
|
||||
* make sure arrays are masked that are not filled when auto_fill is off
|
||||
* python 3.8 binary wheels.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@@ -328,13 +350,13 @@ Thu May 17 09:57:50 UTC 2018 - tchvatal@suse.com
|
||||
* fix loading of enum type names (issue #775).
|
||||
* make sure missing_value applies only to scaled short integers if
|
||||
auto-scaling is on (issue #777).
|
||||
* automatically create views of compound types with character arrays as
|
||||
* automatically create views of compound types with character arrays as
|
||||
numpy strings (issue #773). Can be disabled using
|
||||
'set_auto_chartostring(False)'. Numpy structured
|
||||
array dtypes with 'SN' string subtypes can now be used to
|
||||
define netcdf compound types (they get converted to ('S1',N)
|
||||
character array types automatically).
|
||||
* always return masked array by default, even if there are no
|
||||
* always return masked array by default, even if there are no
|
||||
masked values (too surprising to get ndarray or MaskedArray depending
|
||||
on slice, issue #785).
|
||||
* treat valid_min/valid_max/_FillValue/missing_value as unsigned
|
||||
@@ -359,20 +381,20 @@ Thu Mar 1 22:03:20 UTC 2018 - sebix+novell.com@sebix.at
|
||||
a `ValueError` otherwise.
|
||||
* Allow _FillValue to be set for vlen string variables (issue #730).
|
||||
- update to version 1.3.0:
|
||||
* always search for HDF5 headers when building, even when nc-config is used
|
||||
* always search for HDF5 headers when building, even when nc-config is used
|
||||
(since nc-config does not always include the path to the HDF5 headers).
|
||||
Also use H5get_libversion to obtain HDF5 version info instead of
|
||||
H5public.h. Fixes issue #677.
|
||||
* encoding kwarg added to Dataset.__init__ and Dataset.filepath (default
|
||||
is to use sys.getfilesystemencoding()) so that oddball
|
||||
encodings (such as cp1252 on windows) can be handled in Dataset
|
||||
encodings (such as cp1252 on windows) can be handled in Dataset
|
||||
filepaths (issue #686).
|
||||
* Calls to nc_get_vars are avoided, since nc_get_vars is very slow (issue
|
||||
#680). Strided slices are now converted to multiple calls to
|
||||
nc_get_vara. This speeds up strided slice reads by a factor of 10-100
|
||||
(especially for NETCDF4/HDF5 files) in most cases. In some cases, strided reads
|
||||
using nc_get_vars are faster (e.g. strided reads over many dimensions
|
||||
such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
|
||||
such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
|
||||
var.use_nc_get_vars(True) will tell the library to use nc_get_vars instead
|
||||
of multiple calls to nc_get_vara, which was the default behaviour previous
|
||||
to this change.
|
||||
@@ -382,7 +404,7 @@ Thu Mar 1 22:03:20 UTC 2018 - sebix+novell.com@sebix.at
|
||||
* Improve timezone format parsing in netcdftime
|
||||
* make sure numpy datatypes used to define CompoundTypes have
|
||||
isalignedstruct flag set to True (issue #705), otherwise.
|
||||
segfaults can occur. Fix required raising them minimum numpy requirement
|
||||
segfaults can occur. Fix required raising them minimum numpy requirement
|
||||
from 1.7.0 to 1.9.0.
|
||||
* ignore missing_value, _FillValue, valid_range, valid_min and valid_max
|
||||
when creating masked arrays if attribute cannot be safely
|
||||
@@ -416,7 +438,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
|
||||
the chartostring utility function is used to convert the array of
|
||||
characters to an array of strings with one less dimension (the last
|
||||
dimension is interpreted as the length of each string) when reading the
|
||||
data. When writing the data, stringtochar is used to convert a numpy
|
||||
data. When writing the data, stringtochar is used to convert a numpy
|
||||
array of fixed length strings to an array of characters with one more
|
||||
dimension. chartostring and stringtochar now also have an 'encoding' kwarg.
|
||||
Automatic conversion to/from character to string arrays can be turned off
|
||||
@@ -433,7 +455,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
|
||||
issue #626). Test with python 3.6 using travis CI.
|
||||
|
||||
- Update to version 1.2.6
|
||||
* fix some test failures on big endian PPC64 that were due to
|
||||
* fix some test failures on big endian PPC64 that were due to
|
||||
errors in byte-swapping logic. Also fixed bug in enum
|
||||
code exposed on PPC64 (issue #608).
|
||||
* remove support for python 2.6 (it probably still will work for a while
|
||||
@@ -476,13 +498,13 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
|
||||
byte order before passing to netcdf-c library. Data read from variable
|
||||
with non-native byte order is also byte-swapped, so that dtype remains
|
||||
consistent with netcdf variable. Behavior now consistent with h5py.
|
||||
* raise warning for HDF5 1.10.x (issue #549), since backwards
|
||||
* raise warning for HDF5 1.10.x (issue #549), since backwards
|
||||
incompatible files may be created.
|
||||
* raise AttributeError instead of RuntimeError when attribute operation
|
||||
fails. raise IOError instead of RuntimeError when nc_create or
|
||||
fails. raise IOError instead of RuntimeError when nc_create or
|
||||
nc_open fails (issue #546).
|
||||
* Use NamedTemporaryFile instead of deprecated mktemp in tests
|
||||
(pull request #543).
|
||||
(pull request #543).
|
||||
* add AppVeyor automated windows tests (pull request #540).
|
||||
- Update to version 1.2.3.1
|
||||
* fix bug in setup.py (pull request #539, introduced in issue #518).
|
||||
@@ -503,15 +525,15 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
|
||||
NETCDF3_64BIT_DATA format and filepath Dataset method).
|
||||
* expose netcdftime.__version__ (issue #504).
|
||||
* fix potential memory leak in Dataset.filepath in attempt to fix
|
||||
mysterious segfaults on CentOS6 (issue #506). Segfaults
|
||||
mysterious segfaults on CentOS6 (issue #506). Segfaults
|
||||
can apparently still occur on systems like CentOS6 with old versions of glibc.
|
||||
- Update to version 1.2.2
|
||||
* fix failing tests on python 2.6 (issue #497). Change minimum required
|
||||
python from 2.5 to 2.6.
|
||||
* Potential memory leaks fixed by freeing string pointers internally allocated
|
||||
* Potential memory leaks fixed by freeing string pointers internally allocated
|
||||
in netcdf-c using nc_free_string. Also use nc_free_vlens to free space allocated
|
||||
for vlens inside netcdf-c (issue #495).
|
||||
* invoke str on filename argument to Dataset constructor, so pathlib
|
||||
* invoke str on filename argument to Dataset constructor, so pathlib
|
||||
instances can be used (issue #489).
|
||||
* don't use hardwired NC_MAX_DIMS or NC_MAX_VARS internally to allocate space
|
||||
for dimension or variable ids. Instead, find out the number of dims
|
||||
@@ -530,7 +552,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
|
||||
* add 'size' attribute to Dimension (same as len(d), where
|
||||
d is a Dimension instance, issue #477).
|
||||
* fix bug in nc3tonc4 with --unpackshort=1 (issue #474).
|
||||
* dates do not have to be contiguous, i.e. can be before and after the
|
||||
* dates do not have to be contiguous, i.e. can be before and after the
|
||||
missing dates in Gregorian calendar (pull request #476).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-netCDF4
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-netCDF4
|
||||
Version: 1.7.1.post1
|
||||
Version: 1.7.2
|
||||
Release: 0
|
||||
Summary: Python interface to netCDF 3 and 4
|
||||
License: HPND AND MIT
|
||||
@@ -111,6 +111,6 @@ popd
|
||||
%python_alternative %{_bindir}/nc4tonc3
|
||||
%python_alternative %{_bindir}/ncinfo
|
||||
%{python_sitearch}/netCDF4
|
||||
%{python_sitearch}/netCDF4-%{version}.dist-info
|
||||
%{python_sitearch}/net[Cc][Dd][Ff]4-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user