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

Facing problem when nodata_out = np.nan as default in functions #226

Open
debpal opened this issue Aug 29, 2023 · 0 comments
Open

Facing problem when nodata_out = np.nan as default in functions #226

debpal opened this issue Aug 29, 2023 · 0 comments

Comments

@debpal
Copy link

debpal commented Aug 29, 2023

pysheds module is a great module and thanks to the team. I am facing some problem with the argument 'nodata_out' and don't understand that how to solve it. Some functions set nodata_out as None (fill_pits) whereas some functions set nodata_out as np.nan (e..g, fill_depressions). Generally, I replace the nodata value by float("nan") for plotting the raster to visualize it. When the default value of nodata_out is np.nan, I cannot replace the nodata value and get only black and white raster during plotting. Is there any special purpose to set nodata_out as np.nan? Any crever way to solve it? A screenshot is attached for my problem.
Capture

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

1 participant