diff --git a/pyresample/area_config.py b/pyresample/area_config.py index a7a79eeac..b5d7722a6 100644 --- a/pyresample/area_config.py +++ b/pyresample/area_config.py @@ -360,8 +360,8 @@ def get_area_def(area_id, area_name, proj_id, proj4_args, width, height, area_ex Description of area proj_id : str ID of projection - proj4_args : list, dict, or str - Proj4 arguments as list of arguments or string + proj4_args : dict, CRS, or str + Projection information passed to pyproj's CRS object width : int Number of pixel in x dimension height : int @@ -374,8 +374,7 @@ def get_area_def(area_id, area_name, proj_id, proj4_args, width, height, area_ex area_def : object AreaDefinition object """ - proj_dict = _get_proj4_args(proj4_args) - return create_area_def(area_id, proj_dict, description=area_name, proj_id=proj_id, + return create_area_def(area_id, proj4_args, description=area_name, proj_id=proj_id, shape=(height, width), area_extent=area_extent)