Skip to content

Commit c0025ed

Browse files
authored
Merge pull request #548 from djhoese/feat-proj4-args-get-area
Remove unnecessary proj4 argument parsing from get_area_def
2 parents ba09e7d + 0c6289b commit c0025ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyresample/area_config.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def get_area_def(area_id, area_name, proj_id, proj4_args, width, height, area_ex
360360
Description of area
361361
proj_id : str
362362
ID of projection
363-
proj4_args : list, dict, or str
364-
Proj4 arguments as list of arguments or string
363+
proj4_args : dict, CRS, or str
364+
Projection information passed to pyproj's CRS object
365365
width : int
366366
Number of pixel in x dimension
367367
height : int
@@ -374,8 +374,7 @@ def get_area_def(area_id, area_name, proj_id, proj4_args, width, height, area_ex
374374
area_def : object
375375
AreaDefinition object
376376
"""
377-
proj_dict = _get_proj4_args(proj4_args)
378-
return create_area_def(area_id, proj_dict, description=area_name, proj_id=proj_id,
377+
return create_area_def(area_id, proj4_args, description=area_name, proj_id=proj_id,
379378
shape=(height, width), area_extent=area_extent)
380379

381380

0 commit comments

Comments
 (0)