Skip to content

Commit

Permalink
Merge pull request #548 from djhoese/feat-proj4-args-get-area
Browse files Browse the repository at this point in the history
Remove unnecessary proj4 argument parsing from get_area_def
  • Loading branch information
mraspaud committed Oct 12, 2023
2 parents ba09e7d + 0c6289b commit c0025ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyresample/area_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)


Expand Down

0 comments on commit c0025ed

Please sign in to comment.