### Sidebar

spatial-ecology.org

Trainings:

Learn:

Data:

Community:
teachers
students
projects
Matera 2015
Vancouver 2015
Santa Barbara 2015
Site design
Hands on:
Installations

Donations
USD

GBP

wikistud:zaragoza2010

# Homework

## Exercise number 1: RP ratio

With the sh script: /home/user/ost4sem/exercise/rpratio/rpratio.sh , we compute the Limited filling of the potential Pinus Cembra range. In this script we have processed data of an area covering the Alps and Carpathians.

In this exercise you will:

1 - Compute R, P and calculate the R/P ratio for a limited study region of your choice. To select the boundaries of your limited area you can use Qgis.

• Upload grassdb/europe/EUforest/EUcountry and ~/ost4sem/grassdb/europe/PCEM/pcemeuforgen * Zoom to an area of your choice where Pinus Cembra occurs (pcemeuforgen = 1).
• Detect the boundary extents N, S, E, W of your newest study area.

You can for example choose to highlight the area of Switzerland or Austria !
2 - After processing the data, save the report outputs table for the pcemrealized map as RsutudentXX.txt

3 - Save the report outputs table for the pcempotential map as PtudentXX.txt

4 - Now reprocess your calculations for the same limited study region as before, but change the pixel resolution of your analysis to 3 x 3 km resolution (This resolution will probably not be exactly 3km but very close). Create an output map as shown in the rpratio.sh script but this time modify the commands and save the map as studentXXmap.png

Be carefull!! The PtudentXX.txt and RsutudentXX.txt reports and the R/P ratio needs to be at 1km resolution, and the studentXX_map.png needs to be saved at 3 x 3 km resolution.

5 - Send an email to unizar2010@spatial-ecology.net with the subject of email as “Exercise 1 - student name - student computer number”. In the email include

• Copy and paste the line from the terminal including studentX@gisvm:directory\$.

Copy and paste the content of PtudentXX.txt and RsutudentXX.txt and include the studentXX_map.png.

## Exercise number 2: Bash shell

Send an email to unizar2010@spatial-ecology.net with the title of the exercise.
In the first line of the email copy and paste the line from the terminal including userX@gisvm:directory\$.
Explain in your own language what have you done and why. Be creative! More example of scripts are welcome, and will be evaluated in a positive way.

1. Using any files in the ost4sem directory make 3 examples of the use of “basename” command. Search on the Internet and use the main command.
2. Using the file in ~/ost4sem/exercise/basicadvbash/avermonthnuts3fire.asc make a file (avermonthnuts3fireNOIT.asc) which does not include the fire in Italy (indicate in first column by IT). We have already used the command but read the manual to check for the correct option.

## Exercise number 3: AWK and Bash

Send an email to unizar2010@spatial-ecology.net with the title of the exercise.
In the first line of the email copy and paste the line from the terminal including userX@gisvm:directory\$.

• Using the file in ~/ost4sem/exercise/basicadvbash/avermonthnuts3fire.asc create a new file (countiessum.asc) that reports in five lines the total sum of the burned area ( BAREA ) for the PT ES FR IT GR.
Use a combination of Bash and AWK commands. Commands and similar examples are presented in the wiki AWK language page, you just have to combine them.
• Explain in your own language what have you done and why. Be creative! More examples of scripts are welcome, and will be evaluated in a positive way.

# Knowing each other's email

Please send an email to info@spatial-ecology.net with the following info

• Name Surname - machine number
• What is your background ?
example: Geographer, Doctor in medicine, Environmental Engineer ..

• Master thesis / PhD thesis objectives / keywords ?
Example: Mapping floods risks in Spain - GIS, Floods model - Hydrology - risk assessment

• Do you have experience using Linux OS ?
Yes, basic user - or Yes, advanced Linux user - or None

• Do you currently use any programming languages?
None or - Python, Visual Basic, C+, R, Grass + Shell

• What are your interests and expectations from this training ?
example: Get familiar with Linux and R or
example: Learn to use Grass or
example: Learn to use Linux Operating System and Bash scripting or
example: Overview on different tools in GIS and spatial data management and analysis

This information is very interesting for us and will enable us to adapt our week of training to your interests and technical skills. Information will be removed from our email account after this week and will not be redistributed or used for any purpose other than this training course.

# Satisfaction survey

Default title
Real name
Count:

Default title
Real name
Count:

Default title
Real name
Count:

Default title
Real name
Count:

Default title
Real name
Count:

If you have any remarks or suggestions for improving this training course, please write to us at unizar2010@spatial-ecology.net