Skip to content
Snippets Groups Projects
Commit d63d06ae authored by Abdussalam SALEH MGHIR's avatar Abdussalam SALEH MGHIR
Browse files

STYLE : Update the commentary on otbSARDeramp.cxx

parent d80ee984
No related branches found
No related tags found
2 merge requests!52Merge for v1.1.0,!43Add TSX to SARDeramp
......@@ -58,12 +58,12 @@ namespace otb
void DoInit() override
{
SetName("SARDeramp");
SetDescription("Deramping/Reramping of S1 IW Burst.");
SetDescription("Deramping/Reramping of S1 IW Burst and TSX mono-burst.");
SetDocLongDescription("This application does the deramping or reramping of S1 Iw burst.");
SetDocLongDescription("This application does the deramping or reramping of S1 Iw burst and TSX mono-burst.");
//Optional descriptors
SetDocLimitations("Only Sentinel 1 (IW and StripMap mode) and Cosmo products are supported for now.");
SetDocLimitations("Only Sentinel 1 (IW and StripMap mode), TSX and Cosmo products are supported for now.");
SetDocAuthors("OTB-Team");
SetDocSeeAlso(" ");
AddDocTag(Tags::SAR);
......@@ -71,7 +71,7 @@ namespace otb
//Parameter declarations
AddParameter(ParameterType_InputImage, "in", "Input burst");
SetParameterDescription("in", "Input burst (from S1 Iw product).");
SetParameterDescription("in", "Input burst (from S1 Iw or TSX product).");
AddParameter(ParameterType_InputImage, "inslave", "Input SAR slave image (for interferometry processing");
SetParameterDescription("inslave", "Slave SAR Image to extract SAR geometry (interferometry).");
......@@ -169,6 +169,7 @@ namespace otb
std::string sensorID = metadataInterface->GetSensorID();
// Instanciate the Interferogram filter
if(sensorID.find("TSX-1") != std::string::npos || sensorID.find("PAZ-1") != std::string::npos){
// It is a TSX product so we apply the SARDerampTSXImageFilter
DerampTSXFilterType::Pointer filterDeramp = DerampTSXFilterType::New();
m_Ref.push_back(filterDeramp.GetPointer());
filterDeramp->SetDerampMode(derampMode);
......@@ -189,6 +190,7 @@ namespace otb
SetParameterOutputImage("out", filterDeramp->GetOutput());
}
else{
// It is S1 IW product so we apply the SARDerampS1IWImageFilter
DerampS1IWFilterType::Pointer filterDeramp = DerampS1IWFilterType::New();
m_Ref.push_back(filterDeramp.GetPointer());
filterDeramp->SetDerampMode(derampMode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment