landscapemetrics | Landscape Metrics for Categorical Map Patterns 🗺️ in R | Data Visualization library

 by   r-spatialecology R Version: v1.5.5 License: GPL-3.0

kandi X-RAY | landscapemetrics Summary

kandi X-RAY | landscapemetrics Summary

landscapemetrics is a R library typically used in Analytics, Data Visualization applications. landscapemetrics has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

landscapemetrics is a R package for calculating landscape metrics for categorical landscape patterns in a tidy workflow. The package can be used as a drop-in replacement for FRAGSTATS (McGarigal et al. 2012), as it offers a reproducible workflow for landscape analysis in a single environment. It also allows for calculations of four theoretical metrics of landscape complexity: a marginal entropy, a conditional entropy, a joint entropy, and a mutual information (Nowosad and Stepinski 2019). landscapemetrics supports raster, terra, and stars spatial objects and takes RasterLayer, RasterStacks, RasterBricks lists of RasterLayer, SpatRaster, or stars as input arguments. Every function can be used in a piped workflow, as it always takes the data as the first argument and returns a tibble.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              landscapemetrics has a low active ecosystem.
              It has 207 star(s) with 39 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 19 open issues and 175 have been closed. On average issues are closed in 96 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of landscapemetrics is v1.5.5

            kandi-Quality Quality

              landscapemetrics has 0 bugs and 0 code smells.

            kandi-Security Security

              landscapemetrics has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              landscapemetrics code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              landscapemetrics is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              landscapemetrics releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of landscapemetrics
            Get all kandi verified functions for this library.

            landscapemetrics Key Features

            No Key Features are available at this moment for landscapemetrics.

            landscapemetrics Examples and Code Snippets

            No Code Snippets are available at this moment for landscapemetrics.

            Community Discussions

            Trending Discussions on landscapemetrics

            QUESTION

            How to add a progress bar to a package function in r
            Asked 2022-Feb-21 at 14:33

            I am running a moving window function from the package landscapemetrics. This seems to take some time as the raster is quite big. It would be really helpful to have a progress bar or something similar. How can I code something like this without having a for loop or a self-coded function to begin with? I don't know how to provide an example raster, but here is my code:

            ...

            ANSWER

            Answered 2022-Feb-14 at 17:57

            Not familiar with this package, but window_lsm() has an argument progress which will "print progress report" when TRUE.

            Otherwise, to the best of my knowledge it's not possible to implement a true progress bar without any kind of iteration / loop. The one other option I see would be to look at the source of window_lsm(); find the outermost loop (if there is one); define your own local version of the function; and insert a progress bar incremented inside the loop (e.g. using the progress package). (Obviously, you wouldn't want to redistribute this without looking into the licensing / discussing with package devs.)

            I guess another option would be to somehow develop an estimate of how long the operation might take, e.g., based on the size of your raster, then run a countdown timer in a parallel process? My hunch is this would be hard to implement and not especially accurate.

            Source https://stackoverflow.com/questions/71115695

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install landscapemetrics

            There are several ways to install landscapemetrics:. Due to an improved connected-component labelling algorithm (landscapemetrics v1.4 and higher), patches are labeled in a different order than before and therefore different patch IDs might be used compared to previous versions. However, results for all metrics are identical.

            Support

            One of the major motivations behind landscapemetrics is the idea to provide an open-source code collection of landscape metrics. This includes, besides bug reports, especially the idea to include new metrics and functions. Therefore, in case you want to suggest new metrics or functions and in the best case even contribute code, we warmly welcome to do so! For more information see CONTRIBUTING. Maintainers and contributors must follow this repository’s CODE OF CONDUCT.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link