-
Notifications
You must be signed in to change notification settings - Fork 9
Starting
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.
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
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.