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

Fix mersi2_l1b reader setting sensor as a set object #761

Merged
merged 1 commit into from
May 10, 2019
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
6 changes: 3 additions & 3 deletions satpy/readers/mersi2_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def end_time(self):
return self._strptime('/attr/Observing Ending Date', '/attr/Observing Ending Time')

@property
def sensor_names(self):
def sensor_name(self):
"""Map sensor name to Satpy 'standard' sensor names."""
file_sensor = self['/attr/Sensor Identification Code']
sensor = {
'MERSI': 'mersi2',
}.get(file_sensor, file_sensor)
return {sensor} # set
return sensor

def _get_coefficients(self, cal_key, cal_index):
coeffs = self[cal_key][cal_index]
Expand Down Expand Up @@ -161,7 +161,7 @@ def get_dataset(self, dataset_id, ds_info):

data.attrs.update({
'platform_name': self['/attr/Satellite Name'],
'sensor': self.sensor_names,
'sensor': self.sensor_name,
})

return data