martibosch / pylandstats

Computing landscape metrics in the Python ecosystem
https://doi.org/10.1371/journal.pone.0225734
GNU General Public License v3.0
82 stars 16 forks source link

zonal analysis (03-zonal-analysis.ipynb) -"TypeError: expected string or bytes-like object" #19

Open Baharehfa opened 2 years ago

Baharehfa commented 2 years ago

Hi Marti,

Thanks for creating the Pylandstat. I have calculated the metrics and now I am trying to do the zonal analysis (03-zonal-analysis.ipynb) but I received the following error: "TypeError: expected string or bytes-like object". I wanted to make sure the problem is not with my map therefore, I copied and pasted the code with the vaud_g100_clc00_V18_5 and bern_valais_g100_clc00 maps that you used in Pylandstat and realized that we received the same error.

I would appreciate it if you could help to resolve the error.

Best, Bahareh

2022-04-12 (2)