Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary proj4 argument parsing from get_area_def #548

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading