earthlab/earthpy

earthpy stack function throwing 'NoneType' error

skantbksc opened this issue · 0 comments

I am following the example given in the earthpy documentation on https://earthpy.readthedocs.io/en/latest/gallery_vignettes/plot_bands_functionality.html

The earthpy stack() function throws this error: 'NoneType' object has no attribute 'to_string'

The line of code which throws errors is the following:
array_stack, meta_data = es.stack(landsat_path, nodata=-9999)

How can I fix the error?