Skip to content

Commit

Permalink
New version of the automatisation
Browse files Browse the repository at this point in the history
New version of the automatisation
  • Loading branch information
LorenzoStucchi authored Jun 13, 2022
2 parents 6e8120c + ab56ad4 commit 0dd5389
Show file tree
Hide file tree
Showing 14 changed files with 186 additions and 474 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ Set the parameters in the file [`parameters.json`](input/parameters.json):
- The path into the `senet_folder` variable. The `senet_folder` is something like `"C:\\Users\\user\\.snap\\auxdata\\sen-et-conda-Win64"`.
- 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).

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.

## Run the code
In a terminal run (for Windows use the Git bash terminal):
```
Expand Down
Binary file modified assets/new_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 0 additions & 87 deletions graph/BiophysicalOp_sentinel_2_pre_processing.xml

This file was deleted.

90 changes: 0 additions & 90 deletions graph/reflectance_sentinel_2_pre_processing.xml

This file was deleted.

50 changes: 0 additions & 50 deletions graph/resample_sentinel_2_pre_processing.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,74 @@
<copyMetadata>true</copyMetadata>
</parameters>
</node>
<node id="BiophysicalOp">
<operator>BiophysicalOp</operator>
<sources>
<sourceProduct refid="Subset"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sensor>!INPUT_Sensor_S2!</sensor>
<computeLAI>true</computeLAI>
<computeFapar>true</computeFapar>
<computeFcover>true</computeFcover>
<computeCab>true</computeCab>
<computeCw>true</computeCw>
</parameters>
</node>
<node id="Write_reflectance">
<operator>Write</operator>
<sources>
<sourceProduct refid="Subset_reflectance"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>!OUTPUT_reflectance!</file>
<formatName>BEAM-DIMAP</formatName>
</parameters>
</node>
<node id="Subset_reflectance">
<operator>Subset</operator>
<sources>
<sourceProduct refid="Subset"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands>B2,B3,B4,B5,B6,B7,B8A,B11,B12</sourceBands>
<region>0,0,5490,5490</region>
<referenceBand>B2</referenceBand>
<geoRegion/>
<subSamplingX>1</subSamplingX>
<subSamplingY>1</subSamplingY>
<fullSwath>false</fullSwath>
<tiePointGridNames/>
<copyMetadata>true</copyMetadata>
</parameters>
</node>
<node id="Subset_sun_zenith">
<operator>Subset</operator>
<sources>
<sourceProduct refid="Subset"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands>sun_zenith</sourceBands>
<region>0,0,5490,5490</region>
<referenceBand>B2</referenceBand>
<geoRegion/>
<subSamplingX>1</subSamplingX>
<subSamplingY>1</subSamplingY>
<fullSwath>false</fullSwath>
<tiePointGridNames/>
<copyMetadata>true</copyMetadata>
</parameters>
</node>
<node id="Write_sun_zenith">
<operator>Write</operator>
<sources>
<sourceProduct refid="Subset_sun_zenith"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>!OUTPUT_sun_zenith_angle!</file>
<formatName>BEAM-DIMAP</formatName>
</parameters>
</node>
<node id="BandMaths_mask">
<operator>BandMaths</operator>
<sources>
Expand Down Expand Up @@ -71,22 +139,50 @@
<formatName>BEAM-DIMAP</formatName>
</parameters>
</node>
<node id="Write_biophysical">
<operator>Write</operator>
<sources>
<sourceProduct refid="BiophysicalOp"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>!OUTPUT_biophysical!</file>
<formatName>BEAM-DIMAP</formatName>
</parameters>
</node>
<applicationData id="Presentation">
<Description/>
<node id="Read">
<displayPosition x="37.0" y="134.0"/>
<displayPosition x="37.0" y="134.0"/>
</node>
<node id="Resample">
<displayPosition x="142.0" y="133.0"/>
</node>
<node id="Subset">
<displayPosition x="256.0" y="136.0"/>
</node>
<node id="BiophysicalOp">
<displayPosition x="371.0" y="75.0"/>
</node>
<node id="Write_reflectance">
<displayPosition x="523.0" y="136.0"/>
</node>
<node id="Subset_reflectance">
<displayPosition x="380.0" y="136.0"/>
</node>
<node id="Subset_sun_zenith">
<displayPosition x="374.0" y="215.0"/>
</node>
<node id="Write_sun_zenith">
<displayPosition x="524.0" y="217.0"/>
</node>
<node id="BandMaths_mask">
<displayPosition x="369.0" y="276.0"/>
</node>
<node id="Write_mask">
<displayPosition x="523.0" y="277.0"/>
</node>
<node id="Write_biophysical">
<displayPosition x="524.0" y="77.0"/>
</node>
</applicationData>
</graph>
Loading

0 comments on commit 0dd5389

Please sign in to comment.