Skip to content

Commit 0dd5389

Browse files
New version of the automatisation
New version of the automatisation
2 parents 6e8120c + ab56ad4 commit 0dd5389

14 files changed

+186
-474
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ Set the parameters in the file [`parameters.json`](input/parameters.json):
102102
- The path into the `senet_folder` variable. The `senet_folder` is something like `"C:\\Users\\user\\.snap\\auxdata\\sen-et-conda-Win64"`.
103103
- It is also possible to modify all the default computational parameters, as explained in Section 3.3 of the official guide. The *only* parameter that should be modified is the [timezone of the area](input/parameters.json#L12).
104104

105-
Finally, copy the absolute path of all the Sentinel Images in the files [`s2_paths.txt`](input/s2_paths.txt) and [`s3_paths.txt`](input/s3_paths.txt). The path should point to the folders `.SAFE` for S2 and `.SEN3` for S3.
106-
107105
## Run the code
108106
In a terminal run (for Windows use the Git bash terminal):
109107
```

assets/new_full.png

-3.77 KB
Loading

assets/old.png

34.6 KB
Loading

graph/BiophysicalOp_sentinel_2_pre_processing.xml

Lines changed: 0 additions & 87 deletions
This file was deleted.

graph/reflectance_sentinel_2_pre_processing.xml

Lines changed: 0 additions & 90 deletions
This file was deleted.

graph/resample_sentinel_2_pre_processing.xml

Lines changed: 0 additions & 50 deletions
This file was deleted.

graph/BandMaths_mask_sentinel_2_pre_processing.xml renamed to graph/sentinel_2_pre_processing.xml

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,74 @@
4242
<copyMetadata>true</copyMetadata>
4343
</parameters>
4444
</node>
45+
<node id="BiophysicalOp">
46+
<operator>BiophysicalOp</operator>
47+
<sources>
48+
<sourceProduct refid="Subset"/>
49+
</sources>
50+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
51+
<sensor>!INPUT_Sensor_S2!</sensor>
52+
<computeLAI>true</computeLAI>
53+
<computeFapar>true</computeFapar>
54+
<computeFcover>true</computeFcover>
55+
<computeCab>true</computeCab>
56+
<computeCw>true</computeCw>
57+
</parameters>
58+
</node>
59+
<node id="Write_reflectance">
60+
<operator>Write</operator>
61+
<sources>
62+
<sourceProduct refid="Subset_reflectance"/>
63+
</sources>
64+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
65+
<file>!OUTPUT_reflectance!</file>
66+
<formatName>BEAM-DIMAP</formatName>
67+
</parameters>
68+
</node>
69+
<node id="Subset_reflectance">
70+
<operator>Subset</operator>
71+
<sources>
72+
<sourceProduct refid="Subset"/>
73+
</sources>
74+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
75+
<sourceBands>B2,B3,B4,B5,B6,B7,B8A,B11,B12</sourceBands>
76+
<region>0,0,5490,5490</region>
77+
<referenceBand>B2</referenceBand>
78+
<geoRegion/>
79+
<subSamplingX>1</subSamplingX>
80+
<subSamplingY>1</subSamplingY>
81+
<fullSwath>false</fullSwath>
82+
<tiePointGridNames/>
83+
<copyMetadata>true</copyMetadata>
84+
</parameters>
85+
</node>
86+
<node id="Subset_sun_zenith">
87+
<operator>Subset</operator>
88+
<sources>
89+
<sourceProduct refid="Subset"/>
90+
</sources>
91+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
92+
<sourceBands>sun_zenith</sourceBands>
93+
<region>0,0,5490,5490</region>
94+
<referenceBand>B2</referenceBand>
95+
<geoRegion/>
96+
<subSamplingX>1</subSamplingX>
97+
<subSamplingY>1</subSamplingY>
98+
<fullSwath>false</fullSwath>
99+
<tiePointGridNames/>
100+
<copyMetadata>true</copyMetadata>
101+
</parameters>
102+
</node>
103+
<node id="Write_sun_zenith">
104+
<operator>Write</operator>
105+
<sources>
106+
<sourceProduct refid="Subset_sun_zenith"/>
107+
</sources>
108+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
109+
<file>!OUTPUT_sun_zenith_angle!</file>
110+
<formatName>BEAM-DIMAP</formatName>
111+
</parameters>
112+
</node>
45113
<node id="BandMaths_mask">
46114
<operator>BandMaths</operator>
47115
<sources>
@@ -71,22 +139,50 @@
71139
<formatName>BEAM-DIMAP</formatName>
72140
</parameters>
73141
</node>
142+
<node id="Write_biophysical">
143+
<operator>Write</operator>
144+
<sources>
145+
<sourceProduct refid="BiophysicalOp"/>
146+
</sources>
147+
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
148+
<file>!OUTPUT_biophysical!</file>
149+
<formatName>BEAM-DIMAP</formatName>
150+
</parameters>
151+
</node>
74152
<applicationData id="Presentation">
75153
<Description/>
76154
<node id="Read">
77-
<displayPosition x="37.0" y="134.0"/>
155+
<displayPosition x="37.0" y="134.0"/>
78156
</node>
79157
<node id="Resample">
80158
<displayPosition x="142.0" y="133.0"/>
81159
</node>
82160
<node id="Subset">
83161
<displayPosition x="256.0" y="136.0"/>
84162
</node>
163+
<node id="BiophysicalOp">
164+
<displayPosition x="371.0" y="75.0"/>
165+
</node>
166+
<node id="Write_reflectance">
167+
<displayPosition x="523.0" y="136.0"/>
168+
</node>
169+
<node id="Subset_reflectance">
170+
<displayPosition x="380.0" y="136.0"/>
171+
</node>
172+
<node id="Subset_sun_zenith">
173+
<displayPosition x="374.0" y="215.0"/>
174+
</node>
175+
<node id="Write_sun_zenith">
176+
<displayPosition x="524.0" y="217.0"/>
177+
</node>
85178
<node id="BandMaths_mask">
86179
<displayPosition x="369.0" y="276.0"/>
87180
</node>
88181
<node id="Write_mask">
89182
<displayPosition x="523.0" y="277.0"/>
90183
</node>
184+
<node id="Write_biophysical">
185+
<displayPosition x="524.0" y="77.0"/>
186+
</node>
91187
</applicationData>
92188
</graph>

0 commit comments

Comments
 (0)