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

No attribute read_geotiff #18

Closed aazuspan closed 2 years ago

aazuspan commented 3 years ago

Description

Hi @martibosch, pylandstats is a great package. I just found a small error in the readme.

The read_geotiff function used in the first readme example no longer works. I got it to work by instantiating a Landscape instead.

What I Did

>>> import pylandstats as pls
>>> ls = pls.read_geotiff('data/vaud_g100_clc00_V18_5.tif')

AttributeError: module 'pylandstats' has no attribute 'read_geotiff'
martibosch commented 2 years ago

Hello @aazuspan,

thank you for using pylandstats and for reporting this. Sorry for the delay in my response. I have amended the README in 996b0b4.

Closing this :smile: