Mercurial > repos > ecology > landcover_subindicator
comparison landcover_subindic.xml @ 0:828c02027180 draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/earth commit 4cbace8c3a71b7a1638cfd44a21f5d4b84d2fd15
author | ecology |
---|---|
date | Mon, 21 Oct 2024 16:47:10 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:828c02027180 |
---|---|
1 <tool id="landcover_subindicator" name="Land cover degradation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT"> | |
2 <description>subindicator to track land changes</description> | |
3 <macros> | |
4 <token name="@TOOL_VERSION@">0.1.0</token> | |
5 <token name="@VERSION_SUFFIX@">0</token> | |
6 </macros> | |
7 <requirements> | |
8 <requirement type="package" version="1.26.3">numpy</requirement> | |
9 <requirement type="package" version="3.8.4">matplotlib</requirement> | |
10 <requirement type="package" version="1.3.10">rasterio</requirement> | |
11 <requirement type="package" version="2.1.14">trends_earth_algorithms</requirement> | |
12 <requirement type="package" version="2.1.14">trends_earth_schemas</requirement> | |
13 </requirements> | |
14 <command detect_errors="exit_code"><![CDATA[ | |
15 #if '$method.json_file' == "no" | |
16 python '$__tool_directory__/land_cover.py' | |
17 --raster_1 '$raster_1' | |
18 --raster_2 '$raster_2' | |
19 --json '$json' | |
20 #else | |
21 python '$__tool_directory__/land_cover.py' | |
22 --raster_1 '$raster_1' | |
23 --raster_2 '$raster_2' | |
24 --json '$__tool_directory__/test-data/landcover.json' | |
25 #end if | |
26 | |
27 ]]></command> | |
28 <inputs> | |
29 <param name="raster_1" type="data" format="tiff" label="A raster image of the land at a reference year" /> | |
30 <param name="raster_2" type="data" format="tiff" label="A raster image of the land at the year you want to study" /> | |
31 <conditional name="method"> | |
32 <param name="json_file" type="select" label="Do you want to use the default file json or your customized one ?" help="A file containing the land specifications, you can directly use the default one or you can customize it beforehand. The default one can be obtained at https://github.com/fair-ease/earth-critical-zone-galaxy/blob/main/landcover.json"> | |
33 <option value="yes">Yes, use the standard land specification time</option> | |
34 <option value="no">No, I will provide my own.</option> | |
35 </param> | |
36 <when value="yes"> | |
37 </when> | |
38 <when value="no"> | |
39 <param name="json" type="data" format="json" label="A file containing the land specifications" help="You can customize as needed the default file https://github.com/fair-ease/earth-critical-zone-galaxy/blob/main/landcover.json"/> | |
40 </when> | |
41 </conditional> | |
42 </inputs> | |
43 <outputs> | |
44 <collection name="output_tiff" type="list" label="Land cover raster outputs"> | |
45 <discover_datasets pattern="__name_and_ext__" directory="data/land_cover/output/" /> | |
46 </collection> | |
47 <!--<collection name="output_png" type="list" label="Land cover plots"> | |
48 <discover_datasets pattern="__name_and_ext__" directory="data/land_cover/" /> | |
49 </collection>--> | |
50 <data name="contour" format="shp" from_work_dir="data/land_cover/output/change_yf_yi0.shp" label="${tool.name} on ${on_string}" /> | |
51 </outputs> | |
52 <tests> | |
53 <test expect_num_outputs="2"> | |
54 <param name="raster_1" value="EU_CLC_1990.tiff"/> | |
55 <param name="raster_2" value="EU_CLC_2018.tiff"/> | |
56 <param name="json_file" value="yes"/> | |
57 <output name="contour" value="change_yf_yi0.shp"/> | |
58 <output_collection name="output_tiff" type="list" count="7"> | |
59 <element name="lc_baseline_esa" ftype="tiff"> | |
60 <assert_contents> | |
61 <has_text text="LAEA Europe"/> | |
62 <has_size size="977"/> | |
63 </assert_contents> | |
64 </element> | |
65 <element name="lc_bl" ftype="tiff"> | |
66 <assert_contents> | |
67 <has_text text="LAEA Europe"/> | |
68 <has_size size="977"/> | |
69 </assert_contents> | |
70 </element> | |
71 <element name="lc_dg" ftype="tiff"> | |
72 <assert_contents> | |
73 <has_text text="LAEA Europe"/> | |
74 <has_size size="977"/> | |
75 </assert_contents> | |
76 </element> | |
77 <element name="lc_target_esa" ftype="tiff"> | |
78 <assert_contents> | |
79 <has_text text="LAEA Europe"/> | |
80 <has_size size="977"/> | |
81 </assert_contents> | |
82 </element> | |
83 <element name="lc_tg" ftype="tiff"> | |
84 <assert_contents> | |
85 <has_text text="LAEA Europe"/> | |
86 <has_size size="977"/> | |
87 </assert_contents> | |
88 </element> | |
89 <element name="lc_tr" ftype="tiff"> | |
90 <assert_contents> | |
91 <has_text text="LAEA Europe"/> | |
92 <has_size size="977"/> | |
93 </assert_contents> | |
94 </element> | |
95 <element name="stack" ftype="tiff"> | |
96 <assert_contents> | |
97 <has_text text="LAEA Europe"/> | |
98 <has_size size="977"/> | |
99 </assert_contents> | |
100 </element> | |
101 </output_collection> | |
102 </test> | |
103 </tests> | |
104 <help><![CDATA[ | |
105 | |
106 **What it does** | |
107 This tool aims at facilitating the analysis of remotely-sensed datasets in support of monitoring land degradation. | |
108 This project contains common code used by the scripts in trends.earth. | |
109 | |
110 To assess changes in land cover users need land cover maps covering the study area for the baseline and target years. These maps need to be of acceptable accuracy and created in such a way which allows for valid comparisons. Trends.Earth uses ESA CCI land cover maps as the default dataset, but local maps can also be used. The indicator is computed as follows: | |
111 | |
112 - Reclassify both land cover maps to the 7 land cover classes needed for reporting to the UNCCD (forest, grassland, cropland, wetland, artificial area, bare land and water). | |
113 - Perform a land cover transition analysis to identify which pixels remained in the same land cover class, and which ones changed. | |
114 - Based on your local knowledge of the conditions in the study area and the land degradation processed occurring there, use the table below to identify which transitions correspond to degradation (- sign), improvement (+ sign), or no change in terms of land condition (zero). | |
115 - This tool will combine the information from the land cover maps and the table of degradation typologies by land cover transition to compute the land cover sub-indicator. | |
116 | |
117 **Input** | |
118 - One referenced raster of the land at an initial year | |
119 - A second raster of the same location at a final study year | |
120 | |
121 You can get these data on the `ESA (European Spatial Agency) website<https://www.esa-landcover-cci.org/?q=node/164>`. For more information follow the `Trends Earth doumentation<http://docs.trends.earth/en/latest/for_users/datasets/input_data.html>` | |
122 | |
123 - json file containing the 7 land cover classes. We specify by default a json feel free to customize it according to your need. | |
124 | |
125 | |
126 In the json config file you find defined a way to map ESA land cover classes into (the 7) IPCC land cover classes. | |
127 As a user you can add a new set of rules to map land cover classes from any system (ESA, CLC, …) to the IPCC ones. In the end, the user can do three different things: | |
128 | |
129 - Use the default set of mapping rules findable on this `github repository<https://github.com/fair-ease/earth-critical-zone-galaxy/blob/main/landcover.json>` | |
130 - Modify an existent set of mapping rules with custom associations | |
131 - Add a new set of rules, useful for any custom map depicting land cover | |
132 | |
133 See also custom `land cover classes<http://docs.trends.earth/en/latest/for_users/training/settings.html#custom-land-cover-classes>`. | |
134 | |
135 **Output** | |
136 - A potential Land degradation raster | |
137 In the json config file there is also the definition of the transformation of the land use change into the three output classes (Degradation, Improvement, and Stable) | |
138 | |
139 For more information go on `the official trends earth documentation<http://docs.trends.earth/en/latest/for_users/features/unccdreporting.html>` | |
140 | |
141 ]]></help> | |
142 <citations> | |
143 <citation type="bibtex"> | |
144 @Manual{ | |
145 title = {Trends.Earth. Conservation International}, | |
146 year = {2022}, | |
147 note = {http://trends.earth} | |
148 } | |
149 </citation> | |
150 </citations> | |
151 </tool> |