netCDF4 1.2.3__tar.gz → 1.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of netCDF4 might be problematic. Click here for more details.

Files changed (88) hide show
  1. netCDF4-1.2.5/.travis.yml +46 -0
  2. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/Changelog +43 -0
  3. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/MANIFEST.in +5 -3
  4. {netCDF4-1.2.3.1/netCDF4.egg-info → netCDF4-1.2.5}/PKG-INFO +8 -1
  5. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/README.md +11 -1
  6. netCDF4-1.2.5/appveyor.yml +73 -0
  7. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/docs/netCDF4/index.html +387 -351
  8. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4/_netCDF4.c +18511 -15041
  9. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4/_netCDF4.pyx +302 -147
  10. {netCDF4-1.2.3.1 → netCDF4-1.2.5/netCDF4.egg-info}/PKG-INFO +8 -1
  11. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4.egg-info/SOURCES.txt +5 -3
  12. netCDF4-1.2.5/netcdftime/__init__.py +8 -0
  13. netCDF4-1.2.5/netcdftime/_netcdftime.c +35225 -0
  14. netCDF4-1.2.3.1/netcdftime/netcdftime.py → netCDF4-1.2.5/netcdftime/_netcdftime.pyx +610 -59
  15. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/setup.py +10 -3
  16. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_atts.py +31 -13
  17. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_cdf5.py +1 -1
  18. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_compound_alignment.py +1 -1
  19. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_compoundatt.py +1 -1
  20. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_compoundvar.py +1 -1
  21. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_compression.py +1 -1
  22. netCDF4-1.2.5/test/tst_dap.py +33 -0
  23. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_dims.py +1 -1
  24. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_diskless.py +2 -2
  25. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_endian.py +41 -2
  26. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_enum.py +1 -1
  27. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_fancyslicing.py +1 -1
  28. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_grps.py +2 -2
  29. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_grps2.py +1 -1
  30. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_masked.py +1 -1
  31. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_masked2.py +3 -3
  32. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_masked3.py +2 -2
  33. netCDF4-1.2.5/test/tst_masked4.py +108 -0
  34. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_multifile.py +3 -2
  35. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_multifile2.py +2 -2
  36. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_netcdftime.py +305 -40
  37. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_refcount.py +1 -1
  38. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_rename.py +1 -1
  39. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_scalarvar.py +1 -1
  40. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_scaled.py +2 -2
  41. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_shape.py +1 -1
  42. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_slicing.py +1 -1
  43. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_types.py +1 -1
  44. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_unicode.py +1 -1
  45. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_unicode3.py +1 -1
  46. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_unlimdim.py +1 -1
  47. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_vars.py +1 -1
  48. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_vlen.py +44 -1
  49. netCDF4-1.2.3.1/netcdftime/__init__.py +0 -5
  50. netCDF4-1.2.3.1/netcdftime/_datetime.c +0 -6201
  51. netCDF4-1.2.3.1/netcdftime/_datetime.pyx +0 -136
  52. netCDF4-1.2.3.1/test/tst_dap.py +0 -32
  53. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/COPYING +0 -0
  54. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/README.md +0 -0
  55. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/bench.py +0 -0
  56. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/bench_compress.py +0 -0
  57. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/bench_compress2.py +0 -0
  58. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/bench_compress3.py +0 -0
  59. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/bench_diskless.py +0 -0
  60. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/json_att.py +0 -0
  61. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/reading_netCDF.ipynb +0 -0
  62. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/subset.py +0 -0
  63. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/test_stringarr.py +0 -0
  64. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/threaded_read.py +0 -0
  65. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/tutorial.py +0 -0
  66. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/examples/writing_netCDF.ipynb +0 -0
  67. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/include/constants.pyx +0 -0
  68. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/include/netCDF4.pxi +0 -0
  69. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/man/nc3tonc4.1 +0 -0
  70. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/man/nc4tonc3.1 +0 -0
  71. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/man/ncinfo.1 +0 -0
  72. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4/__init__.py +0 -0
  73. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4/utils.py +0 -0
  74. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4.egg-info/dependency_links.txt +0 -0
  75. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4.egg-info/entry_points.txt +0 -0
  76. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4.egg-info/requires.txt +0 -0
  77. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/netCDF4.egg-info/top_level.txt +0 -0
  78. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/setup.cfg +0 -0
  79. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/setup.cfg.template +0 -0
  80. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/netcdf_dummy_file.nc +0 -0
  81. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/run_all.py +0 -0
  82. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_filepath.py +0 -0
  83. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_get_variables_by_attributes.py +0 -0
  84. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_stringarr.py +0 -0
  85. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/test/tst_utils.py +0 -0
  86. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/utils/nc3tonc4 +0 -0
  87. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/utils/nc4tonc3 +0 -0
  88. {netCDF4-1.2.3.1 → netCDF4-1.2.5}/utils/ncinfo +0 -0
@@ -0,0 +1,46 @@
1
+ language: python
2
+
3
+ sudo: false
4
+
5
+ addons:
6
+ apt:
7
+ packages:
8
+ - libhdf5-serial-dev
9
+ - netcdf-bin
10
+ - libnetcdf-dev
11
+
12
+ env:
13
+ global:
14
+ - DEPENDS="numpy cython"
15
+ - NO_NET=1
16
+
17
+ python:
18
+ - "2.7"
19
+ - "3.3"
20
+ - "3.4"
21
+ - "3.5"
22
+
23
+ matrix:
24
+ include:
25
+ # Absolute minimum dependencies.
26
+ - python: 2.6
27
+ env:
28
+ - DEPENDS="numpy==1.7.0 cython==0.19 ordereddict==1.1"
29
+ # Test without Cython installed.
30
+ - python: 2.6
31
+ env:
32
+ - DEPENDS="numpy ordereddict"
33
+
34
+ notifications:
35
+ email: false
36
+
37
+ before_install:
38
+ - pip install $DEPENDS
39
+
40
+ install:
41
+ - python setup.py build
42
+ - python setup.py install
43
+
44
+ script:
45
+ - cd test
46
+ - python run_all.py
@@ -1,3 +1,46 @@
1
+ version 1.2.5 (tag v1.2.5rel)
2
+ ==============================
3
+ * Add MFDataset.set_auto_maskandscale (plus set_auto_scale, set_auto_mask).
4
+ Fixes issue #570.
5
+ * Use valid_min/valid_max/valid_range attributes when defining mask
6
+ (issue #576). Values outside the valid range are considered to
7
+ be missing when defining the mask.
8
+ * Fix for issue #584 (add support for dates before -4712-1-1 in 360_day
9
+ and 365_day calendars to netcdftime.utime).
10
+ * Fix for issue #593: add support for datetime.timedelta operations
11
+ (adding and subtracting timedelta, subtracting two datetime
12
+ instances to compute time duration between them), implement
13
+ datetime.replace() and datetime.__str__(). datetime.__repr__()
14
+ includes the full state of an instance. Add datetime.calendar.
15
+ datetime comparison operators have full accuracy now.
16
+ * Fix for issue #585 by increasing the size of the buffer used to store the
17
+ filepath.
18
+ * Fix for issue #592: Add support for string array attributes. (When
19
+ reading, a vlen string array attribute is returned as a list of
20
+ strings. To write, use var.setncattr_string("name", ["two", "strings"]).)
21
+ * Fix for issue #596 - julian day calculations wrong for negative years,
22
+ caused incorrect rountrip num2date(date2num(date)) roundtrip for dates with year
23
+ < 0.
24
+ * Make sure negative years work in utime.num2date (issue #596).
25
+ * raise NotImplementedError when trying to pickle Dataset, Variable,
26
+ CompoundType, VLType, EnumType and MFDataset (issue #602).
27
+ * Fix for issue #527: initialize vldata[i].p in Variable._get(...).
28
+
29
+ version 1.2.4 (tag v1.2.4rel)
30
+ ==============================
31
+ * Fix for issue #554. It is now ensured that data is in native endian
32
+ byte order before passing to netcdf-c library. Data read from variable
33
+ with non-native byte order is also byte-swapped, so that dtype remains
34
+ consistent with netcdf variable. Behavior now consistent with h5py.
35
+ * raise warning for HDF5 1.10.x (issue #549), since backwards
36
+ incompatible files may be created.
37
+ * raise AttributeError instead of RuntimeError when attribute operation
38
+ fails. raise IOError instead of RuntimeError when nc_create or
39
+ nc_open fails (issue #546).
40
+ * Use NamedTemporaryFile instead of deprecated mktemp in tests
41
+ (pull request #543).
42
+ * add AppVeyor automated windows tests (pull request #540).
43
+
1
44
  version 1.2.3.1 (tag v1.2.3.1rel)
2
45
  ==================================
3
46
  * fix bug in setup.py (pull request #539, introduced in issue #518).
@@ -1,10 +1,13 @@
1
1
  recursive-include docs *
2
2
  recursive-include man *
3
3
  recursive-include include *
4
+ recursive-include conda.recipe
4
5
  include MANIFEST.in
5
6
  include README.md
6
7
  include COPYING
7
8
  include Changelog
9
+ include appveyor.yml
10
+ include .travis.yml
8
11
  include setup.cfg
9
12
  include setup.cfg.template
10
13
  include examples/*py
@@ -16,9 +19,8 @@ include utils/nc3tonc4
16
19
  include utils/nc4tonc3
17
20
  include utils/ncinfo
18
21
  include netcdftime/__init__.py
19
- include netcdftime/_datetime.pyx
20
- include netcdftime/netcdftime.py
21
- include netcdftime/_datetime.c
22
+ include netcdftime/_netcdftime.pyx
23
+ include netcdftime/_netcdftime.c
22
24
  include netCDF4/__init__.py
23
25
  include netCDF4/_netCDF4.pyx
24
26
  include netCDF4/utils.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: netCDF4
3
- Version: 1.2.3.1
3
+ Version: 1.2.5
4
4
  Summary: Provides an object-oriented python interface to the netCDF version 4 library.
5
5
  Home-page: http://github.com/Unidata/netcdf4-python
6
6
  Author: Jeff Whitaker
@@ -13,6 +13,13 @@ Description: netCDF version 4 has many features not found in earlier versions of
13
13
  Keywords: numpy,netcdf,data,science,network,oceanography,meteorology,climate
14
14
  Platform: any
15
15
  Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Programming Language :: Python :: 2
17
+ Classifier: Programming Language :: Python :: 2.6
18
+ Classifier: Programming Language :: Python :: 2.7
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.3
21
+ Classifier: Programming Language :: Python :: 3.4
22
+ Classifier: Programming Language :: Python :: 3.5
16
23
  Classifier: Intended Audience :: Science/Research
17
24
  Classifier: License :: OSI Approved
18
25
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -1,12 +1,22 @@
1
1
  # netcdf4-python
2
2
  [Python](http://python.org)/[numpy](http://numpy.org) interface to the netCDF [C library](https://github.com/Unidata/netcdf-c).
3
3
 
4
- [![Build Status](https://travis-ci.org/Unidata/netcdf4-python.svg?branch=master)](https://travis-ci.org/Unidata/netcdf4-python)
4
+ [![Linux Build Status](https://travis-ci.org/Unidata/netcdf4-python.svg?branch=master)](https://travis-ci.org/Unidata/netcdf4-python)
5
+ [![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)
5
6
  [![PyPI package](https://badge.fury.io/py/netCDF4.svg)](http://python.org/pypi/netCDF4)
6
7
 
7
8
  ## News
8
9
  For the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).
9
10
 
11
+ 12/1/2016: Version [1.2.5](https://github.com/Unidata/netcdf4-python/releases/tag/v1.2.5rel) released.
12
+ See the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog) for changes.
13
+
14
+ 4/15/2016: Version [1.2.4](https://pypi.python.org/pypi/netCDF4/1.2.4) released.
15
+ Bugs in handling of variables with specified non-native "endian-ness" (byte-order) fixed ([issue #554]
16
+ (https://github.com/Unidata/netcdf4-python/issues/554)). Build instructions updated and warning issued
17
+ to deal with potential backwards incompatibility introduced when using HDF5 1.10.x
18
+ (see [Unidata/netcdf-c/issue#250](https://github.com/Unidata/netcdf-c/issues/250)).
19
+
10
20
  3/10/2016: Version [1.2.3](https://pypi.python.org/pypi/netCDF4/1.2.3) released. Various bug fixes.
11
21
  All text attributes in ``NETCDF4`` formatted files are now written as type ``NC_CHAR``, unless they contain unicode characters that
12
22
  cannot be encoded in ascii, in which case they are written as ``NC_STRING``. Previously,
@@ -0,0 +1,73 @@
1
+ environment:
2
+
3
+ CONDA_INSTALL_LOCN: "C:\\conda"
4
+
5
+ # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
6
+ # /E:ON and /V:ON options are not enabled in the batch script interpreter
7
+ # See: http://stackoverflow.com/a/13751649/163740
8
+ CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
9
+
10
+ # Workaround for https://github.com/conda/conda-build/issues/636
11
+ PYTHONIOENCODING: "UTF-8"
12
+ PYTHONUNBUFFERED: "1"
13
+
14
+ # We set a default Python version for the miniconda that is to be installed.
15
+ # This can be overridden in the matrix definition where appropriate.
16
+ CONDA_PY: "27"
17
+
18
+ matrix:
19
+ - TARGET_ARCH: x86
20
+ CONDA_NPY: 111
21
+ CONDA_PY: 27
22
+
23
+ - TARGET_ARCH: x64
24
+ CONDA_NPY: 111
25
+ CONDA_PY: 27
26
+
27
+ - TARGET_ARCH: x86
28
+ CONDA_NPY: 111
29
+ CONDA_PY: 35
30
+
31
+ - TARGET_ARCH: x64
32
+ CONDA_NPY: 111
33
+ CONDA_PY: 35
34
+
35
+ platform:
36
+ - x64
37
+
38
+ install:
39
+ # If there is a newer build queued for the same PR, cancel this one.
40
+ # The AppVeyor 'rollout builds' option is supposed to serve the same
41
+ # purpose but it is problematic because it tends to cancel builds pushed
42
+ # directly to master instead of just PR builds (or the converse).
43
+ # credits: JuliaLang developers.
44
+ - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
45
+ https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
46
+ Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
47
+ throw "There are newer queued builds for this pull request, failing early." }
48
+
49
+ # Set the CONDA_NPY, although it has no impact on the actual build.
50
+ # We need this because of a test within conda-build.
51
+ - cmd: set CONDA_NPY=19
52
+
53
+ # Use the pre-installed Miniconda for the desired arch.
54
+ - ps: if($env:TARGET_ARCH -eq 'x86')
55
+ {$root = "C:\Miniconda"}
56
+ else
57
+ {$root = "C:\Miniconda-x64"}
58
+ $env:path="$root;$root\Scripts;$root\Library\bin;$($env:path)"
59
+
60
+ # Update conda.
61
+ - cmd: conda update --yes --quiet conda
62
+
63
+ # Conda build tools.
64
+ - cmd: conda config --add channels conda-forge --force
65
+ - cmd: conda install --yes --quiet obvious-ci
66
+ - cmd: obvci_install_conda_build_tools.py
67
+ - cmd: conda info
68
+
69
+ # Skip .NET project specific build phase.
70
+ build: off
71
+
72
+ test_script:
73
+ - "%CMD_IN_ENV% conda build conda.recipe --quiet"