Skip to content

Commit

Permalink
Remove rotation handling in configobj parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Feb 13, 2023
1 parent 8df5632 commit 904df93
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pyresample/area_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,11 @@ def _create_area(area_id, area_content):
config = config_obj.dict()
config['REGION'] = area_id

try:
string_types = basestring
except NameError:
string_types = str
if not isinstance(config['NAME'], string_types):
if not isinstance(config['NAME'], str):
config['NAME'] = ', '.join(config['NAME'])

config['XSIZE'] = int(config['XSIZE'])
config['YSIZE'] = int(config['YSIZE'])
if 'ROTATION' in config.keys():
config['ROTATION'] = float(config['ROTATION'])
else:
config['ROTATION'] = 0
config['AREA_EXTENT'][0] = config['AREA_EXTENT'][0].replace('(', '')
config['AREA_EXTENT'][3] = config['AREA_EXTENT'][3].replace(')', '')

Expand Down

0 comments on commit 904df93

Please sign in to comment.