# Clone map

You will need to define a ‘clone’ map, which is a map in PCRaster format, with the model extent and resolution. This map is used as the ‘template’ for your model. You can create a clone map using PCRaster’s [mapattr](http://pcraster.geo.uu.nl/pcraster/4.0.0/doc/manual/app_mapattr.html) command in the Windows Command line window. Make sure you are in the model’s **input** directory. This can be done using commands as for example:

* c: *enter* 🡪 go to your c-drive
* *cd c:\SPHY\input enter 🡪* go to the SPHY\input directory on your c-drive
* *d: enter* 🡪 go to your d-drive
* *cd d:\SPHY\input* *enter 🡪* go to the SPHY\input directory on your d-drive
* etc.

If you are in the model’s input directory, then type following in the Command line:

*mapattr clone.map*

You will enter a menu, where you can set the clone map’s properties:

<figure><img src="https://2432255304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbpkOf6MyIYzEi0TyV0In%2Fuploads%2FAtDHOGBZdkpENq81ovMZ%2Fafbeelding.png?alt=media&#x26;token=30a7a631-9e6a-4e45-948b-8032152bf290" alt=""><figcaption><p>Figure 23: Command line menu for clone creation</p></figcaption></figure>

Change the settings of the number of rows, number of columns, check if the y values in your model projection increase from bottom to top or from top to bottom, define the x and y values of the upperleft corner of your model’s extent, and define the cell length (spatial resolution).

When all is set, press *“q”* to quit and then press *“y”* to confirm the map creation. Then drag the newly created map into QGIS to check if the map has the correct extent. Remember to set the CRS of the *“clone.map”* after dragging the map into QGIS.
