Skip to content

Instantly share code, notes, and snippets.

@brwe
Created May 10, 2021 18:12
Show Gist options
  • Save brwe/2dde01539915b0d2524b798ee112dec0 to your computer and use it in GitHub Desktop.
Save brwe/2dde01539915b0d2524b798ee112dec0 to your computer and use it in GitHub Desktop.
<graph id="Graph">
<version>1.0</version>
<!-- usage example:
/usr/local/snap/bin/gpt all-steps.xml -Pinput=PATH_TO_MANIFEST_FILE/manifest.safe -Pvh_result_file_name=PATH_TO_RESULT_FILE/vh.tif -Pvv_result_file_name=PATH_TO_RESULT_FILE/vv.tif
-->
<node id="Read">
<operator>Read</operator>
<sources/>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${input}</file>
<formatName>SENTINEL-1</formatName>
</parameters>
</node>
<node id="ThermalNoiseRemoval">
<operator>ThermalNoiseRemoval</operator>
<sources>
<sourceProduct refid="Read"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<selectedPolarisations/>
<removeThermalNoise>true</removeThermalNoise>
<reIntroduceThermalNoise>false</reIntroduceThermalNoise>
</parameters>
</node>
<node id="Remove-GRD-Border-Noise">
<operator>Remove-GRD-Border-Noise</operator>
<sources>
<sourceProduct refid="ThermalNoiseRemoval"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<selectedPolarisations/>
<borderLimit>500</borderLimit>
<trimThreshold>0.5</trimThreshold>
</parameters>
</node>
<node id="Calibration">
<operator>Calibration</operator>
<sources>
<sourceProduct refid="Remove-GRD-Border-Noise"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
<auxFile>Product Auxiliary File</auxFile>
<externalAuxFile/>
<outputImageInComplex>false</outputImageInComplex>
<outputImageScaleInDb>false</outputImageScaleInDb>
<createGammaBand>false</createGammaBand>
<createBetaBand>false</createBetaBand>
<selectedPolarisations>VV</selectedPolarisations>
<outputSigmaBand>false</outputSigmaBand>
<outputGammaBand>true</outputGammaBand>
<outputBetaBand>false</outputBetaBand>
</parameters>
</node>
<node id="Calibration(2)">
<operator>Calibration</operator>
<sources>
<sourceProduct refid="Remove-GRD-Border-Noise"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
<auxFile>Product Auxiliary File</auxFile>
<externalAuxFile/>
<outputImageInComplex>false</outputImageInComplex>
<outputImageScaleInDb>false</outputImageScaleInDb>
<createGammaBand>false</createGammaBand>
<createBetaBand>false</createBetaBand>
<selectedPolarisations>VH</selectedPolarisations>
<outputSigmaBand>false</outputSigmaBand>
<outputGammaBand>true</outputGammaBand>
<outputBetaBand>false</outputBetaBand>
</parameters>
</node>
<node id="Terrain-Correction">
<operator>Terrain-Correction</operator>
<sources>
<sourceProduct refid="Calibration"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
<demName>SRTM 3Sec</demName>
<externalDEMFile/>
<externalDEMNoDataValue>0.0</externalDEMNoDataValue>
<externalDEMApplyEGM>true</externalDEMApplyEGM>
<demResamplingMethod>BILINEAR_INTERPOLATION</demResamplingMethod>
<imgResamplingMethod>BILINEAR_INTERPOLATION</imgResamplingMethod>
<pixelSpacingInMeter>0.0</pixelSpacingInMeter>
<pixelSpacingInDegree>0.0</pixelSpacingInDegree>
<mapProjection>AUTO:42001</mapProjection>
<alignToStandardGrid>false</alignToStandardGrid>
<standardGridOriginX>0.0</standardGridOriginX>
<standardGridOriginY>0.0</standardGridOriginY>
<nodataValueAtSea>true</nodataValueAtSea>
<saveDEM>false</saveDEM>
<saveLatLon>false</saveLatLon>
<saveIncidenceAngleFromEllipsoid>false</saveIncidenceAngleFromEllipsoid>
<saveLocalIncidenceAngle>false</saveLocalIncidenceAngle>
<saveProjectedLocalIncidenceAngle>false</saveProjectedLocalIncidenceAngle>
<saveSelectedSourceBand>true</saveSelectedSourceBand>
<outputComplex>false</outputComplex>
<applyRadiometricNormalization>false</applyRadiometricNormalization>
<saveSigmaNought>false</saveSigmaNought>
<saveGammaNought>false</saveGammaNought>
<saveBetaNought>false</saveBetaNought>
<incidenceAngleForSigma0>Use projected local incidence angle from DEM</incidenceAngleForSigma0>
<incidenceAngleForGamma0>Use projected local incidence angle from DEM</incidenceAngleForGamma0>
<auxFile>Latest Auxiliary File</auxFile>
<externalAuxFile/>
</parameters>
</node>
<node id="Terrain-Correction(2)">
<operator>Terrain-Correction</operator>
<sources>
<sourceProduct refid="Calibration(2)"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
<demName>SRTM 3Sec</demName>
<externalDEMFile/>
<externalDEMNoDataValue>0.0</externalDEMNoDataValue>
<externalDEMApplyEGM>true</externalDEMApplyEGM>
<demResamplingMethod>BILINEAR_INTERPOLATION</demResamplingMethod>
<imgResamplingMethod>BILINEAR_INTERPOLATION</imgResamplingMethod>
<pixelSpacingInMeter>0.0</pixelSpacingInMeter>
<pixelSpacingInDegree>0.0</pixelSpacingInDegree>
<mapProjection>AUTO:42001</mapProjection>
<alignToStandardGrid>false</alignToStandardGrid>
<standardGridOriginX>0.0</standardGridOriginX>
<standardGridOriginY>0.0</standardGridOriginY>
<nodataValueAtSea>true</nodataValueAtSea>
<saveDEM>false</saveDEM>
<saveLatLon>false</saveLatLon>
<saveIncidenceAngleFromEllipsoid>false</saveIncidenceAngleFromEllipsoid>
<saveLocalIncidenceAngle>false</saveLocalIncidenceAngle>
<saveProjectedLocalIncidenceAngle>false</saveProjectedLocalIncidenceAngle>
<saveSelectedSourceBand>true</saveSelectedSourceBand>
<outputComplex>false</outputComplex>
<applyRadiometricNormalization>false</applyRadiometricNormalization>
<saveSigmaNought>false</saveSigmaNought>
<saveGammaNought>false</saveGammaNought>
<saveBetaNought>false</saveBetaNought>
<incidenceAngleForSigma0>Use projected local incidence angle from DEM</incidenceAngleForSigma0>
<incidenceAngleForGamma0>Use projected local incidence angle from DEM</incidenceAngleForGamma0>
<auxFile>Latest Auxiliary File</auxFile>
<externalAuxFile/>
</parameters>
</node>
<node id="Write(2)">
<operator>Write</operator>
<sources>
<sourceProduct refid="Terrain-Correction(2)"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${vh_result_file_name}</file>
<formatName>GeoTIFF</formatName>
</parameters>
</node>
<node id="Write">
<operator>Write</operator>
<sources>
<sourceProduct refid="Terrain-Correction"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${vv_result_file_name}</file>
<formatName>GeoTIFF</formatName>
</parameters>
</node>
<applicationData id="Presentation">
<Description>Sentinel-1 GRD Sigma0 standard preprocessing graph</Description>
<node id="Read">
<displayPosition x="115.0" y="7.0"/>
</node>
<node id="Apply-Orbit-File">
<displayPosition x="93.0" y="51.0"/>
</node>
<node id="ThermalNoiseRemoval">
<displayPosition x="74.0" y="101.0"/>
</node>
<node id="Remove-GRD-Border-Noise">
<displayPosition x="75.0" y="133.0"/>
</node>
<node id="Calibration">
<displayPosition x="91.0" y="188.0"/>
</node>
<node id="Calibration(2)">
<displayPosition x="234.0" y="190.0"/>
</node>
<node id="Terrain-Correction">
<displayPosition x="64.0" y="290.0"/>
</node>
<node id="Terrain-Correction(2)">
<displayPosition x="219.0" y="277.0"/>
</node>
<node id="Write(2)">
<displayPosition x="292.0" y="372.0"/>
</node>
<node id="Write">
<displayPosition x="89.0" y="369.0"/>
</node>
</applicationData>
</graph>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment