Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@ install:

- python setup.py --quiet install

# TODO : remove when iris doesn't do an integration test requiring iris-grib.
# test against the latest version of python-eccodes.
# Conda-forge versioning is out of order (0.9.* is later than 2.12.*).
# Docs builds and examples tests also need grib, for gallery examples.
- >
if [[ "${TEST_MINIMAL}" != true ]]; then
conda install --quiet -n ${ENV_NAME} python-eccodes">=0.9.1, <2";
if [[ "${TEST_TARGET}" == 'docstest' || "${TEST_TARGET}" == 'example' ]]; then
conda install --quiet -n ${ENV_NAME} python-eccodes;
conda install --quiet -n ${ENV_NAME} --no-deps iris-grib;
fi

Expand Down
1 change: 0 additions & 1 deletion docs/iris/example_tests/test_polar_stereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
)


@tests.skip_grib
class TestPolarStereo(tests.GraphicsTest):
"""Test the polar_stereo example code."""

Expand Down
1 change: 0 additions & 1 deletion docs/iris/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@

intersphinx_mapping = {
"cartopy": ("http://scitools.org.uk/cartopy/docs/latest/", None),
"iris-grib": ("http://iris-grib.readthedocs.io/en/latest/", None),
"matplotlib": ("http://matplotlib.org/", None),
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
"python": ("http://docs.python.org/2.7", None),
Expand Down
9 changes: 4 additions & 5 deletions docs/iris/src/userguide/saving_iris_cubes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Saving Iris cubes

Iris supports the saving of cubes and cube lists to:

* CF netCDF (1.5)
* GRIB (edition 2)
* CF netCDF (version 1.6)
* GRIB edition 2 (if `iris-grib <https://github.com/SciTools/iris-grib>`_ is installed)
* Met Office PP


Expand Down Expand Up @@ -57,7 +57,6 @@ The :py:func:`iris.save` function passes all other keywords through to the saver
See

* :py:func:`iris.fileformats.netcdf.save`
* :py:func:`iris.fileformats.grib.save_grib2`
* :py:func:`iris.fileformats.pp.save`

for more details on supported arguments for the individual savers.
Expand All @@ -70,14 +69,14 @@ When saving to GRIB or PP, the save process may be intercepted between the trans
For example, a GRIB2 message with a particular known long_name may need to be saved to a specific parameter code and type of statistical process. This can be achieved by::

def tweaked_messages(cube):
for cube, grib_message in iris.fileformats.grib.as_pairs(cube):
for cube, grib_message in iris_grib.save_pairs_from_cube(cube):
# post process the GRIB2 message, prior to saving
if cube.name() == 'carefully_customised_precipitation_amount':
gribapi.grib_set_long(grib_message, "typeOfStatisticalProcess", 1)
gribapi.grib_set_long(grib_message, "parameterCategory", 1)
gribapi.grib_set_long(grib_message, "parameterNumber", 1)
yield grib_message
iris.fileformats.grib.save_messages(tweaked_messages(cubes[0]), '/tmp/agrib2.grib2')
iris_grib.save_messages(tweaked_messages(cubes[0]), '/tmp/agrib2.grib2')

Similarly a PP field may need to be written out with a specific value for LBEXP. This can be achieved by::

Expand Down
13 changes: 0 additions & 13 deletions lib/iris/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@
else:
GDAL_AVAILABLE = True

try:
from iris_grib.message import GribMessage

GRIB_AVAILABLE = True
except ImportError:
GRIB_AVAILABLE = False

try:
import iris_sample_data # noqa
except ImportError:
Expand Down Expand Up @@ -1181,12 +1174,6 @@ class MyPlotTests(test.GraphicsTest):
return skip(fn)


skip_grib = unittest.skipIf(
not GRIB_AVAILABLE,
'Test(s) require "iris-grib" package, ' "which is not available.",
)


skip_sample_data = unittest.skipIf(
not SAMPLE_DATA_AVAILABLE,
('Test(s) require "iris-sample-data", ' "which is not available."),
Expand Down
6 changes: 0 additions & 6 deletions lib/iris/tests/integration/format_interop/__init__.py

This file was deleted.

115 changes: 0 additions & 115 deletions lib/iris/tests/integration/format_interop/test_name_grib.py

This file was deleted.

50 changes: 0 additions & 50 deletions lib/iris/tests/integration/format_interop/test_pp_grib.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading