Skip to content

Commit

Permalink
Change resolution dict to use only columns
Browse files Browse the repository at this point in the history
  • Loading branch information
BENR0 committed Sep 30, 2019
1 parent 7f1c572 commit cb2272b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions satpy/readers/modis_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ def available_datasets(self, configured_datasets):
for is_avail, ds_info in (configured_datasets or []):
yield is_avail, ds_info

res_dict = {(8120, 5416): 250, (4060, 2708): 500, (2030, 1354): 1000, (406, 270): 5000, (203, 135): 10000}
res_dict = {5416: 250, 2708: 500, 1354: 1000, 270: 5000, 135: 10000}

# get dynamic variables known to this file (that we created)
for var_name, val in self.sd.datasets().items():
if len(val[0]) == 2:
resolution = res_dict.get(val[1])
if not resolution is None:
resolution = res_dict.get(val[1][-1])
if resolution is not None:
ds_info = {
'file_type': self.filetype_info['file_type'],
'resolution': resolution,
Expand Down

0 comments on commit cb2272b

Please sign in to comment.