Skip to content

Starting

Renata Muylaert edited this page Jan 19, 2018 · 29 revisions

Open or load a GRASS project and import your maps into GRASS

Open GRASS GIS and load or create your project location. If you do not know how to configure a project in GRASS, take a look here. After that, you should import your raster maps into GRASS environment. Have a look at this and this. Make sure that your imported maps are in a projected coordinate reference system (CRS), in which distances are measured in meters, so that areas and distances are calculated in a meaningful way.

4. Run LSMetrics

Now, it is time to use the app itself. Use the GRASS terminal (the black screen) to start LSMetrics. First change to LSMetrics directory and run it using python:

# Change to the code directory where you saved the program
cd "LS_METRICS/_LSMetrics_v1_0_0"

# Run LSMetrics 
python LSMetrics_v1_0_0.py

Note!

On MS Windows, you may have to change to the partition where the code is located before changing to its directory. E.g.:

D:
cd "D:/LS_METRICS/_LSMetrics_v1_0_0"

LSMetrics is currently based on binary (habitat/non-habitat) maps. If your maps are already classified this way, you can use them straightforwardly as input to calculate metrics and statistics. If not, first you should select Create binary map and tell the app which codes correspond to habitat. Then, you can use the resulting map as input to calculate landscape metrics.