Skip to content

Starting

Bernardo Niebuhr edited this page Feb 13, 2018 · 29 revisions

4. Starting

Open or load a GRASS project

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.

Observation: 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.

** SERA QUE VALE A PENA FAZER UNS PRINTS E MOSTRAR COMO CONFIGURAR UM PROJETO GRASS? eu acho que sim... **

Import your maps into GRASS

After that, you should import your raster maps into GRASS environment. Have a look at this and this.

** SERA QUE VALE A PENA FAZER UNS PRINTS E MOSTRAR COMO importar? eu acho que sim... ** daria para mostrar pela linha de comando (sem print, só usando comando aqui mesmo) e tb uns prints de como fazer isso pela interface do grass, só apertando botoes (colocar todos os prints em slides de ppt!)

GRASS database for testing

To make your life easier, we make available a GRASS db test file with two raster images. Select the file grassdb_test and Start GRASS session as follows

** acho que aqui vale a pena colocar os dois mapas (plots) e descrever de onde eles vieram... começa que eu completo **

Run LSMetrics

Now, it is time to use the package 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 (with the version of LSMetrics you want to use)
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.:

# If the code is on the directory "D:/"
D:
cd "D:/LS_METRICS/_LSMetrics_v1_0_0"

Now take a look at the Windows GUI (the GUI may be slightly different on different operational systems, but is expected to run the same way):

Notes on screen resolution

If the GUI does not appear completely in your screen, check your screen resolution (at least 900) and your percent of text display (up to 125%) so that the program window entirely appears. (we'll solve that soon!)