CRS not found when process Sentinel-1 product with SNAP gpt. #69
-
I want to change the process in EOReader to produce Calibration product, thus I comment <graph id="Graph">
<version>1.0</version>
<node id="Read">
<operator>Read</operator>
<sources/>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${file}</file>
</parameters>
</node>
<node id="Apply-Orbit-File">
<operator>Apply-Orbit-File</operator>
<sources>
<sourceProduct refid="Read"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<orbitType>Sentinel Precise (Auto Download)</orbitType>
<polyDegree>3</polyDegree>
<continueOnFail>true</continueOnFail>
</parameters>
</node>
<node id="ThermalNoiseRemoval">
<operator>ThermalNoiseRemoval</operator>
<sources>
<sourceProduct refid="Apply-Orbit-File"/>
</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>Latest Auxiliary File</auxFile>
<externalAuxFile/>
<outputImageInComplex>false</outputImageInComplex>
<outputImageScaleInDb>false</outputImageScaleInDb>
<createGammaBand>false</createGammaBand>
<createBetaBand>false</createBetaBand>
<selectedPolarisations>${calib_pola}</selectedPolarisations>
<outputSigmaBand>true</outputSigmaBand>
<outputGammaBand>false</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>${dem_name}</demName>
<externalDEMFile>${dem_path}</externalDEMFile>
<externalDEMNoDataValue>0.0</externalDEMNoDataValue>
<externalDEMApplyEGM>true</externalDEMApplyEGM>
<demResamplingMethod>BILINEAR_INTERPOLATION</demResamplingMethod>
<imgResamplingMethod>BILINEAR_INTERPOLATION</imgResamplingMethod>
<pixelSpacingInMeter>${res_m}</pixelSpacingInMeter>
<pixelSpacingInDegree>${res_deg}</pixelSpacingInDegree>
<mapProjection>${crs}</mapProjection>
<alignToStandardGrid>false</alignToStandardGrid>
<standardGridOriginX>0.0</standardGridOriginX>
<standardGridOriginY>0.0</standardGridOriginY>
<nodataValueAtSea>false</nodataValueAtSea>
<saveDEM>false</saveDEM>
<saveLatLon>false</saveLatLon>
<saveIncidenceAngleFromEllipsoid>false</saveIncidenceAngleFromEllipsoid>
<saveLocalIncidenceAngle>false</saveLocalIncidenceAngle>
<saveProjectedLocalIncidenceAngle>false</saveProjectedLocalIncidenceAngle>
<saveSelectedSourceBand>true</saveSelectedSourceBand>
<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="LinearToFromdB">
<operator>LinearToFromdB</operator>
<sources>
<sourceProduct refid="Calibration"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceBands/>
</parameters>
</node> -->
<node id="Write">
<operator>Write</operator>
<sources>
<sourceProduct refid="Calibration"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${out}</file>
<formatName>BEAM-DIMAP</formatName>
</parameters>
</node>
<applicationData id="Presentation">
<Description/>
<node id="Read">
<displayPosition x="37.0" y="35.0"/>
</node>
<node id="Apply-Orbit-File">
<displayPosition x="30.0" y="76.0"/>
</node>
<node id="ThermalNoiseRemoval">
<displayPosition x="24.0" y="125.0"/>
</node>
<node id="Remove-GRD-Border-Noise">
<displayPosition x="27.0" y="175.0"/>
</node>
<node id="Calibration">
<displayPosition x="96.0" y="222.0"/>
</node>
<!-- <node id="Terrain-Correction">
<displayPosition x="284.0" y="259.0"/>
</node>
<node id="LinearToFromdB">
<displayPosition x="138.0" y="263.0"/>
</node> -->
<node id="Write">
<displayPosition x="522.0" y="264.0"/>
</node>
</applicationData>
</graph> However, the error CRS not found is raised as followes:
I have spent a long time to deal with it but failed, can u help me? In additon, what |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This is the message that cmd outputs when running grd_s1_preprocess_default.xml, which is very different from that of the output when I run my XML...
|
Beta Was this translation helpful? Give feedback.
-
You must keep the terrain correction step in your graph otherwise your image remains in sensor CRS (and thus not georeferenced). Don't bother about |
Beta Was this translation helpful? Give feedback.
-
I keep the terrain correction step, but the same error raised, while the calibration tif is saved. Can I keep the calibration tif with no error for the execution of subsequent code? Now the only difference between default and my XML is the
|
Beta Was this translation helpful? Give feedback.
You must keep the terrain correction step in your graph otherwise your image remains in sensor CRS (and thus not georeferenced).
Don't bother about
<applicationData id="Presentation">
, it's not important 😉