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 writing float geotiffs #163

Merged
merged 2 commits into from
Jan 26, 2018
Merged

Fix writing float geotiffs #163

merged 2 commits into from
Jan 26, 2018

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Jan 25, 2018

  • Passes git diff origin/develop **/*py | flake8 --diff
  • Fully documented

Previously there would be an exception if an ImageWriter tried to create an image with no enhancements since for most image formats this doesn't make sense (an 8-bit PNG without being scaled properly?). This PR makes it possible for users to tell satpy to not enhance the image and let the writer see try to use the un-enhanced image. Behavior is undefined for other writers, but typically the data is clipped and converted to the necessary array data type before attempting to write it to disk. Side note: the fully documented above isn't the best way to document it (I just added it to the docstring of the writer class), but we don't have any official per-writer documentation at the moment so I thought this would be ok.

@djhoese djhoese added the bug label Jan 25, 2018
@djhoese djhoese added this to the v0.8.1 milestone Jan 25, 2018
@djhoese djhoese self-assigned this Jan 25, 2018
@djhoese djhoese requested a review from mraspaud January 25, 2018 04:19
@djhoese djhoese modified the milestones: v0.8.1, v0.9 Jan 25, 2018
@coveralls
Copy link

coveralls commented Jan 25, 2018

Coverage Status

Coverage remained the same at 57.575% when pulling b0c15ec on bugfix-float-geotiff into 1d9e5d3 on develop.

@djhoese djhoese merged commit 58d2ec8 into develop Jan 26, 2018
@djhoese djhoese deleted the bugfix-float-geotiff branch January 26, 2018 21:52
@djhoese djhoese changed the title Bugfix float geotiff Fix writing float geotiffs Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants