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 AMSR-2 L1B reader loading bytes incorrectly #351

Merged
merged 2 commits into from
Jun 29, 2018

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Jun 29, 2018

I think this is due to a recent change in numpy where bytes arrays are no longer considered np.string_ types. This was causing AMSR-2 L1B attributes read from the file to stay as bytes objects when they should have been strings.

Additionally, AMSR-2 L1B composites were running in to the same issue that VIIRS SDR had run in a while ago where xarray doesn't like that the 'coordinates' attribute is a list and when you concatenate DataArrays that have different 'coordinates' attributes, it fails. See pydata/xarray#2060 for more details.

  • Tests added
  • Tests passed
  • Passes git diff origin/master **/*py | flake8 --diff

@djhoese djhoese added this to the v0.9 milestone Jun 29, 2018
@mraspaud mraspaud merged commit b480123 into pytroll:master Jun 29, 2018
@djhoese djhoese deleted the bugfix-amsr2 branch June 29, 2018 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants