.. _protect-xml: landProtection.xml ======================= The :ref:`protect ` sub-command of :doc:`gcamtool` generates XML input files for GCAM that "protect" land by removing it from consideration by the model as a productive land area. It reads a single XML input file that defines one or protection scenarios, which can specify the fraction the original land area in any combination of `{Shrubland, Grassland, UnmanagedPasture, UnmanagedForest}`, by region or groups of regions. Command-line usage is documented on the :ref:`gt protect ` page. The ``landProtection.xml`` file elements are described below. XML elements ------------ The elements that comprise the project.xml file are described below. ^^^^^^^^^^^^^^^^ The top-most element, ````, encloses one or more ```` or ```` elements. ^^^^^^^^^ +-------------+------------+-----------+----------+ | Attribute | Required | Default | Values | +=============+============+===========+==========+ | name | yes | (none) | text | +-------------+------------+-----------+----------+ The ```` element assigns a name to a set of regions (each defined in a ```` element or other groups so they can be referred to in land protection scenarios. For example, we can define a group called ``Europe`` consisting of all the GCAM European regions as follows: .. code-block:: xml EU-12 EU-15 Europe_Eastern Europe_Non_EU European Free Trade Association We can also define other groups that refer to existing groups: .. code-block:: xml Europe USA China For convenience, the group ``Global`` is defined by the script; it contains all 32 GCAM regions. ^^^^^^^^^^ +-------------+------------+-----------+----------+ | Attribute | Required | Default | Values | +=============+============+===========+==========+ | name | yes | (none) | text | +-------------+------------+-----------+----------+ A ```` element assigns a name to a set of ```` elements. ^^^^^^^^^^^^^^^^^^^ +-------------+------------+-----------+----------+ | Attribute | Required | Default | Values | +=============+============+===========+==========+ | name | yes | (none) | text | +-------------+------------+-----------+----------+ A ```` element contains one or more ```` nodes, and assigns these to the region given by the ``name`` attribute. Regions are processed in the order defined. Any redefinition of a protection in a region overwrites what was given previously. This allows the use of groups followed by differentiation for individual regions within the group. (See the example XML file, below.) ^^^^^^^^^^^^^^^^^^^ +-------------+------------+-----------+----------+ | Attribute | Required | Default | Values | +=============+============+===========+==========+ | fraction | yes | (none) | float | +-------------+------------+-----------+----------+ A ```` element defines the percentage of land of one or more land classes (defined in ```` elements) to protect in the region named by the enclosing ```` element. Example landProtection.xml file -------------------------------- This file defines several groups of regions and uses these in a scenario named ``scen1``. See the in-line comments for more details. .. code-block:: xml Africa_Eastern Africa_Northern Africa_Southern Africa_Western Central America and Caribbean Central Asia Colombia Middle East Pakistan South America_Northern South America_Southern South Asia Southeast Asia Brazil China India Indonesia Mexico South Africa EU-12 EU-15 Europe_Eastern Europe_Non_EU European Free Trade Association Argentina Australia_NZ Canada Europe Japan Russia South Korea Taiwan USA UnmanagedForest UnmanagedPasture Shrubland Grassland UnmanagedForest UnmanagedPasture Shrubland Grassland UnmanagedForest UnmanagedPasture Shrubland Grassland UnmanagedForest UnmanagedPasture Shrubland Grassland