From 2f6ec31fbccb234992fba800546ddc13b18beff0 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Thu, 13 May 2021 12:44:57 +0100 Subject: [PATCH 1/2] fix broken links --- .../src/developers_guide/contributing_code_formatting.rst | 2 +- lib/iris/fileformats/netcdf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/iris/src/developers_guide/contributing_code_formatting.rst b/docs/iris/src/developers_guide/contributing_code_formatting.rst index 1a3573d135..5b726b41e7 100644 --- a/docs/iris/src/developers_guide/contributing_code_formatting.rst +++ b/docs/iris/src/developers_guide/contributing_code_formatting.rst @@ -39,7 +39,7 @@ linted according to our ``.flake8`` configuration file. Note that, for each ``.pre-commit-config.yaml`` git hook. Additionally, you may wish to enable ``black`` for your preferred -`editor/IDE `_. +`editor/IDE `_. With the ``pre-commit`` configured, the output of performing a ``git commit`` will look similar to:: diff --git a/lib/iris/fileformats/netcdf.py b/lib/iris/fileformats/netcdf.py index bb7a870d58..2032f2349f 100644 --- a/lib/iris/fileformats/netcdf.py +++ b/lib/iris/fileformats/netcdf.py @@ -1043,7 +1043,7 @@ def write( dtype(i.e. 'i2', 'short', 'u4') or a dict of packing parameters as described below. This provides support for netCDF data packing as described in - http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html#bp_Packed-Data-Values + https://www.unidata.ucar.edu/software/netcdf/documentation/NUG/best_practices.html#bp_Packed-Data-Values If this argument is a type (or type string), appropriate values of scale_factor and add_offset will be automatically calculated based on `cube.data` and possible masking. For more control, pass a dict @@ -2589,7 +2589,7 @@ def save( (i.e. 'i2', 'short', 'u4') or a dict of packing parameters as described below or an iterable of such types, strings, or dicts. This provides support for netCDF data packing as described in - http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html#bp_Packed-Data-Values + https://www.unidata.ucar.edu/software/netcdf/documentation/NUG/best_practices.html#bp_Packed-Data-Values If this argument is a type (or type string), appropriate values of scale_factor and add_offset will be automatically calculated based on `cube.data` and possible masking. For more control, pass a dict with From d33a253e1fd4f9d3a6c06f360544243c5cfd15c4 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Thu, 13 May 2021 20:30:21 +0100 Subject: [PATCH 2/2] lake edges --- docs/iris/gallery_code/meteorology/plot_wind_speed.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/iris/gallery_code/meteorology/plot_wind_speed.py b/docs/iris/gallery_code/meteorology/plot_wind_speed.py index 79be64ddd7..8d43bae320 100644 --- a/docs/iris/gallery_code/meteorology/plot_wind_speed.py +++ b/docs/iris/gallery_code/meteorology/plot_wind_speed.py @@ -46,7 +46,11 @@ def main(): # Set up axes to show the lake lakes = cfeat.NaturalEarthFeature( - "physical", "lakes", "50m", facecolor="none" + "physical", + "lakes", + "50m", + facecolor="none", + edgecolor="black", ) plt.figure()