Skip to content

Commit

Permalink
Merge branch 'develop' into 134-add-inputs_transformer-tools-for-eart…
Browse files Browse the repository at this point in the history
…hkit-subpackages
  • Loading branch information
EddyCMWF committed Jul 18, 2023
2 parents aecd7e8 + 030b9eb commit 4d11a76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions earthkit/data/utils/projections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ class EquidistantCylindrical(Projection):
CARTOPY_CRS = "PlateCarree"


class LongLat(Projection):
PROJ_NAME = "longlat"
CF_GRID_MAPPING_NAME = "latitude_longitude"
CARTOPY_CRS = "PlateCarree"


class LambertAzimuthalEqualArea(Projection):
PROJ_NAME = "laea"
CF_GRID_MAPPING_NAME = "lambert_azimuthal_equal_area"
Expand All @@ -123,6 +129,7 @@ class Mercator(Projection):

_PROJECTIONS = [
EquidistantCylindrical,
LongLat,
LambertAzimuthalEqualArea,
AlbersEqualArea,
Mercator,
Expand Down
4 changes: 3 additions & 1 deletion tests/grib/test_grib_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,9 @@ def test_grib_projection_ll(index):
g = f[index]
else:
g = f
assert isinstance(g.projection(), projections.EquidistantCylindrical)
assert isinstance(
g.projection(), (projections.EquidistantCylindrical, projections.LongLat)
)


def test_grib_projection_mercator():
Expand Down

0 comments on commit 4d11a76

Please sign in to comment.