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.
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](https://github.com/mdbartos/pysheds/assets/48341250/ab11f6f2-9a13-4248-a2d0-e25a77ae6660)