r-spatialecology / landscapemetrics

Landscape Metrics for Categorical Map Patterns 🗺️ in R
https://r-spatialecology.github.io/landscapemetrics
GNU General Public License v3.0
230 stars 43 forks source link

comparing_tools.Rmd #287

Closed Nowosad closed 1 year ago

Nowosad commented 1 year ago

The comparing_tools.Rmd vignette is not working correctly: FRAGSTATS and landscapemetrics have different number of rows...

mhesselbarth commented 1 year ago

Yes, we need to recalculate the FRAGSTATS results. I needed to recreate the landscape and something in NLMR or one of the dependencies changed. So the landscape is slightly different

Nowosad commented 1 year ago

Ok. Cannot we just go back to the previous landscape? What was the problem with it?

mhesselbarth commented 1 year ago

No problem, but when I recreated it using terra instead of raster, I needed to run data-raw.R

Nowosad commented 1 year ago

You could just do:

landscape_terra = rast(landscape_raster)

But I assume you strived for reproducibility.

mhesselbarth commented 1 year ago

Yeah...Its a bit annoying right now I must admit, but I think it would be nice to be able to have a script re-producing it

mhesselbarth commented 1 year ago

Results are calculated but in a slightly different format. I need to update the vignettes code.

mhesselbarth commented 1 year ago

Related to #294

Nowosad commented 1 year ago

Superseded by #294