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

Different mask handling when saving to PNG or GeoTIFF #200

Closed
pnuu opened this issue Feb 22, 2018 · 0 comments
Closed

Different mask handling when saving to PNG or GeoTIFF #200

pnuu opened this issue Feb 22, 2018 · 0 comments
Assignees

Comments

@pnuu
Copy link
Member

pnuu commented Feb 22, 2018

Code Sample, a minimal, complete, and verifiable piece of code

from satpy import Scene
import glob
fnames = glob.glob("/home/lahtinep/data/satellite/geo/*GOES15*201802201300*")
glbl = Scene(reader='hrit_goes', filenames=fnames)
glbl.load(['cloud_overview'])
glbl.save_dataset('cloud_overview', '/tmp/cloud_overview.tif')
glbl.save_dataset('cloud_overview', '/tmp/cloud_overview.png')

Problem description

The masking of missing values is different when saving to PNG or GeoTIFF. Saving to PNG handles masking correctly. With GeoTIFF all the pixels where any of the channels have masked pixels results those pixels masked also in the output image. This results in "holes" in the images also on areas where there shouldn't be any.

example

Versions of Python, package at hand and relevant dependencies

Tested with SatPy maint/0.8 branch, might affect also develop and master.

@pnuu pnuu self-assigned this Feb 22, 2018
@djhoese djhoese closed this as completed Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants