We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like nan values interfers with mosaicing images. Although I might be missing something.
nan
# %% import geowombat as gw import rasterio from geowombat.data import l8_224077_20200518_B2, l8_224078_20200518_B2 import matplotlib.pyplot as plt fig, ax = plt.subplots(dpi=200) with gw.open( [l8_224077_20200518_B2, l8_224078_20200518_B2], mosaic=True, bounds_by="union", ) as src: print(src) src.where(src != 0).gw.imshow(robust=True, ax=ax) # %% fig, ax = plt.subplots(dpi=200) with gw.open([l8_224077_20200518_B2], mosaic=True) as src: attrs = src.attrs src = src.where(src > 0) print(src) src.attrs = attrs src.gw.save( "l8_224077_20200518_B2.tif", ) src.gw.imshow(robust=True, ax=ax) # %% fig, ax = plt.subplots(dpi=200) with gw.open( [l8_224078_20200518_B2], mosaic=True, ) as src: attrs = src.attrs src = src.where(src > 0) print(src) src.attrs = attrs src.gw.save( "l8_224078_20200518_B2.tif", ) src.gw.imshow(robust=True, ax=ax) # %% fig, ax = plt.subplots(dpi=200) import numpy as np with gw.open( ["l8_224077_20200518_B2.tif", "l8_224078_20200518_B2.tif"], mosaic=True, bounds_by="union", nodata=np.nan, ) as src: print(src) src.gw.imshow(robust=True, ax=ax) # %%
The text was updated successfully, but these errors were encountered:
Nearly fixed in branch fix_mosaic_nan @jgrss
Sorry, something went wrong.
jgrss
Successfully merging a pull request may close this issue.
Looks like
nan
values interfers with mosaicing images. Although I might be missing something.The text was updated successfully, but these errors were encountered: