Skip to content

Commit

Permalink
Remove unnecessary proj4 argument parsing from get_area_def
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Oct 11, 2023
1 parent 91b8ba7 commit 07b051e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyresample/area_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,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
Expand All @@ -371,8 +371,6 @@ 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,
shape=(height, width), area_extent=area_extent)

Expand Down

0 comments on commit 07b051e

Please sign in to comment.