# Glacier fraction map

The glacier fraction map can be calculated from a vector file with glacier outlines. In QGIS from the Processing toolbox, select the *“v.to.rast.value”* tool like in the previous section.

Select your glacier outlines as vector input layer and convert it to raster at the same extent of the clone map. Set the cellsize at a lower value than your model resolution. For example, if your model cell size is 200 m, select 20 m for the converted raster.

The *“nodata”* values need to be reclassified to zeros. To do this use SAGA’s Reclassify tool from the Processing toolbox. You can easily find it by typing Reclassify in the search field.

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FHs27wVxICawmEdHKZcdC%2Fafbeelding.png?alt=media&#x26;token=d257c311-a162-42db-8f6d-ecf6750a22f8" alt=""><figcaption><p>Figure 39: Reclassify tool</p></figcaption></figure>

In the dialog box set all values to 0.0, and set *“replace no data values”* to *“Yes”*, set “*new value for no data values”* to 0.0 and set *“replace other values”* to *“No”*. Select an output filename and click *“Run”*.

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FTDlkQ90JS5knHCwrQlxv%2Fafbeelding.png?alt=media&#x26;token=05882778-37ef-4665-af33-111ecc6b04e5" alt=""><figcaption><p>Figure 40: Reclassify tool dialog box</p></figcaption></figure>

Now we aggregate the fine resolution grid with glaciers to the model resolution. This can be done using the *“r.resamp.stats”* tool selected under Processing Toolbox 🡪 GRASS commands 🡪 Raster 🡪 r.resamp.stats.

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FJ6f7qtg64COrpUmlu9JN%2Fafbeelding.png?alt=media&#x26;token=63616de9-122a-47b7-85e5-38f1a90d8e0f" alt=""><figcaption><p>Figure 41: GRASS aggregation tool</p></figcaption></figure>

In the dialog box, set the fine resolution glacier grid as input raster layer and choose aggregation method *“average”*. Import the processing extent from the clone map and set the cell size to the model resolution (in the screenshot below it is 200m as in the example of the Trisuli case study).

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2F1ayQPdUQNbKT0loSCTk1%2Fafbeelding.png?alt=media&#x26;token=3908e307-34e8-4395-9f3c-dacd1bf9a8be" alt=""><figcaption><p>Figure 42: GRASS aggregation tool dialog box</p></figcaption></figure>

The resulting grid can be converted to a PCRaster map using step 8 from Section 5.3.
