Skip to content

Commit

Permalink
remove _iris_mercator_support.py (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley authored Apr 17, 2024
1 parent e632a16 commit d09f671
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
25 changes: 0 additions & 25 deletions iris_grib/_iris_mercator_support.py

This file was deleted.

4 changes: 0 additions & 4 deletions iris_grib/_load_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
ReferenceTarget
from iris.util import _is_circular

from ._iris_mercator_support import confirm_extended_mercator_supported
from ._grib1_load_rules import grib1_convert


Expand Down Expand Up @@ -777,9 +776,6 @@ def grid_definition_template_10(section, metadata):
# intersects the Earth
standard_parallel = section['LaD'] * _GRID_ACCURACY_IN_DEGREES

# Check and raise a more intelligible error, if the Iris version is too old
# to support the Mercator 'standard_parallel' keyword.
confirm_extended_mercator_supported()
cs = icoord_systems.Mercator(standard_parallel=standard_parallel,
ellipsoid=geog_cs)

Expand Down
4 changes: 0 additions & 4 deletions iris_grib/_save_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from iris.exceptions import TranslationError


from ._iris_mercator_support import confirm_extended_mercator_supported
from . import grib_phenom_translation as gptx
from ._load_convert import (_STATISTIC_TYPE_NAMES, _TIME_RANGE_UNITS,
_SPATIAL_PROCESSING_TYPES)
Expand Down Expand Up @@ -498,9 +497,6 @@ def grid_definition_template_10(cube, grib):
eccodes.codes_set(grib, "longitudeOfLastGridPoint",
int(np.round(last_x / _DEFAULT_DEGREES_UNITS)))

# Check and raise a more intelligible error, if the Iris version is too old
# to support the Mercator 'standard_parallel' property.
confirm_extended_mercator_supported()
# Encode the latitude at which the projection intersects the Earth.
eccodes.codes_set(grib, 'LaD',
cs.standard_parallel / _DEFAULT_DEGREES_UNITS)
Expand Down

0 comments on commit d09f671

Please sign in to comment.