Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
22dd241
Quick fix to get tests passing by pinning dask version (#3086)
DPeterK Jul 13, 2018
fcfea63
ENH: Working zonal mean linear regridding for circular sources or wit…
Jul 13, 2018
24c0329
Avoid pandas deprecation warning. (#3079)
hdyson Jul 13, 2018
163e958
Workaround for dask array copy bug (#3088)
DPeterK Jul 16, 2018
a0d1801
Pin Dask for avoid 0.18.2 bug with masked arrays.
pp-mo Aug 2, 2018
c89f43e
Tiny fix for dask, Python3 only?
pp-mo Aug 3, 2018
a6de324
Disable doctests for Python 2.
pp-mo Aug 13, 2018
6e32e14
Ignore warnings and update array printouts.
pp-mo Aug 13, 2018
d69222a
Better way to disable Python2 doctests.
pp-mo Aug 13, 2018
efdf0ae
Merge pull request #3134 from pp-mo/temporary_dask_fix
lbdreyer Aug 14, 2018
ff7ec92
Add gridcell_angles and rotate_grid_vectors to iris.analysis.cartogra…
pp-mo Jul 23, 2018
393489e
Roughly working, snapshotted with complex test plot code, to be reduced.
pp-mo Jul 25, 2018
d8bb331
Small improvements.
pp-mo Jul 26, 2018
c902ce3
Support plotting 2D bounded coords
lbdreyer Jul 20, 2018
723d45b
some words for docs, WIP probably
corinnebosley Jul 31, 2018
0b8baf5
Handle custom coords correctly
lbdreyer Jul 30, 2018
759e357
suggested tweaks and corrections
corinnebosley Jul 31, 2018
ade18ad
Update docs to included 2.2 versions (#3110)
lbdreyer Jul 31, 2018
91d69fa
Provide a test skipper for 2d coords WIP. (#3099)
pp-mo Jul 31, 2018
b6b305f
First working quiver+streamplot.
pp-mo Jul 30, 2018
aee7f56
Change version number (#3118)
lbdreyer Jul 31, 2018
297becf
re-added bounds definition for contiguity check, removed unnecessary …
corinnebosley Jul 31, 2018
a281805
Ensure Sphinx autodocs for grid_angles routines.
pp-mo Aug 2, 2018
e024f50
Codestyle fixes.
pp-mo Aug 2, 2018
e3e82e4
Whatsnew entries for 2d vector support.
pp-mo Aug 2, 2018
b041c50
Pin Dask to avoid 0.18.2 bug with masked arrays. (#3127)
pp-mo Aug 14, 2018
ebfc4c1
Small improvements; first sensible tests.
pp-mo Jul 27, 2018
670982e
Enhanced testing; better checking and crs awareness in grid_angles ro…
pp-mo Jul 29, 2018
fdb693b
Remove crud from test_gridcell_angles.
pp-mo Aug 3, 2018
e832fe3
Use degree units for everything in _grid_angles.
pp-mo Aug 3, 2018
56944df
Make assertArrayAllClose print details when it fails.
pp-mo Aug 3, 2018
f149341
Rework and extend testing for gridcell_angles.
pp-mo Aug 3, 2018
dff7750
Fix assertArrayAllClose; remove debug code from test_gridcell_angles.
pp-mo Aug 13, 2018
fd14631
Remove obsolete assignments.
pp-mo Aug 14, 2018
d19f3d9
Remove obsolete code.
pp-mo Aug 14, 2018
330c71e
Small comment improvements.
pp-mo Aug 14, 2018
995864d
Attempt to clarify docstrings of low-level routines.
pp-mo Aug 15, 2018
4820572
More tests, and some functional fixes.
pp-mo Aug 15, 2018
605ef0c
Codestyle fixes.
pp-mo Aug 16, 2018
1d37367
Review changes + fixes.
pp-mo Aug 28, 2018
5a047a6
Avoid using sample data.
pp-mo Aug 28, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ install:
export IRIS_TEST_DATA_REF="2f3a6bcf25f81bd152b3d66223394074c9069a96";
export IRIS_TEST_DATA_SUFFIX=$(echo "${IRIS_TEST_DATA_REF}" | sed "s/^v//");

# Cut short doctest phase under Python 2 : now only supports Python 3
# SEE : https://github.com/SciTools/iris/pull/3134
# ------------
- >
if [[ $TEST_TARGET == 'doctest' && ${TRAVIS_PYTHON_VERSION} != 3* ]]; then
echo "DOCTEST phase only valid in Python 3 : ABORTING during 'install'."
exit 0
fi

# Install miniconda
# -----------------
- >
Expand Down
2 changes: 1 addition & 1 deletion docs/iris/src/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<span class="linkdescr">extra information on specific technical issues</span></p>
</li>
<li>
<p class="biglink"><a class="biglink" href="whatsnew/2.1.html">What's new in Iris 2.1?</a><br/>
<p class="biglink"><a class="biglink" href="whatsnew/2.2.html">What's new in Iris 2.2?</a><br/>
<span class="linkdescr">recent changes in Iris's capabilities</span></p>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/iris/src/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</a>
<div class="strapline">
<h1>
Iris <span class="version">v2.1</span>
Iris <span class="version">v2.2</span>
</h1>
<p>
A powerful, format-agnostic, community-driven Python library for analysing and
Expand Down
14 changes: 7 additions & 7 deletions docs/iris/src/userguide/interpolation_and_regridding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import numpy as np
import iris
import warnings
warnings.simplefilter('ignore')

=================================
Cube interpolation and regridding
Expand Down Expand Up @@ -137,10 +139,9 @@ This cube has a "hybrid-height" vertical coordinate system, meaning that the ver
coordinate is unevenly spaced in altitude:

>>> print(column.coord('altitude').points)
[418.6983642578125 434.57049560546875 456.79278564453125 485.3664855957031
520.2932739257812 561.5751953125 609.2144775390625 663.214111328125
723.5769653320312 790.306640625 863.4072265625 942.88232421875
1028.737060546875 1120.9764404296875 1219.6051025390625]
[ 418.69836 434.5705 456.7928 485.3665 520.2933 561.5752
609.2145 663.2141 723.57697 790.30664 863.4072 942.8823
1028.737 1120.9764 1219.6051 ]

We could regularise the vertical coordinate by defining 10 equally spaced altitude
sample points between 400 and 1250 and interpolating our vertical coordinate onto
Expand Down Expand Up @@ -184,9 +185,8 @@ For example, to mask values that lie beyond the range of the original data:
>>> scheme = iris.analysis.Linear(extrapolation_mode='mask')
>>> new_column = column.interpolate(sample_points, scheme)
>>> print(new_column.coord('altitude').points)
[nan 494.44451904296875 588.888916015625 683.333251953125 777.77783203125
872.2222290039062 966.666748046875 1061.111083984375 1155.555419921875
nan]
[ nan 494.44452 588.8889 683.33325 777.77783 872.2222
966.66675 1061.1111 1155.5554 nan]


.. _caching_an_interpolator:
Expand Down
36 changes: 36 additions & 0 deletions docs/iris/src/whatsnew/2.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
What's New in Iris 2.2.0
************************

:Release: 2.2.0a0
:Date:


This document explains the new/changed features of Iris in the alpha release
of version 2.2.0
(:doc:`View all changes <index>`).


Iris 2.2.0 Features
===================
.. _showcase:

.. admonition:: 2-Dimensional Coordinate Plotting

The iris plot functions :func:`~iris.plot.pcolor` and
:func:`~iris.plot.pcolormesh` now accommodate the plotting of 2-dimensional
coordinates as well as 1-dimensional coordinates.

To enable this feature, each coordinate passed in for plotting will be
automatically checked for contiguity. Coordinate bounds must either be
contiguous, or the cube's data must be masked at the discontiguities in
order to avoid plotting errors.

The iris plot functions :func:`iris.plot.quiver` and
:func:`iris.plot.streamplot` have been added, and these also work with
2-dimensional plot coordinates.

.. admonition:: 2-Dimensional Grid Vectors

The iris functions :func:`iris.analysis.cartography.gridcell_angles` and
:func:`iris.analysis.cartography.rotate_grid_vectors` have been added,
allowing you to convert gridcell-oriented vectors to true-North/East ones.
1 change: 1 addition & 0 deletions docs/iris/src/whatsnew/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Iris versions.
.. toctree::
:maxdepth: 2

2.2.rst
2.1.rst
2.0.rst
1.13.rst
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def callback(cube, field, filename):


# Iris revision.
__version__ = '2.2.0dev0'
__version__ = '2.2.0a0'

# Restrict the names imported when using "from iris import *"
__all__ = ['load', 'load_cube', 'load_cubes', 'load_raw',
Expand Down
Loading