Commit d2e77389 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: only read the number of lines and samples per burst when there is more than one burst

parent e28d4870
......@@ -359,11 +359,14 @@ bool SarImageMetadataInterface::GetSAR(SARParam & sarParam) const
sarParam.azimuthTimeInterval = MetaData::DurationType(m_MetadataSupplierInterface->GetAs<double>(
supportDataPrefix + "line_time_interval") );
sarParam.numberOfLinesPerBurst = m_MetadataSupplierInterface->GetAs<unsigned long>(
supportDataPrefix + "geom.bursts.number_lines_per_burst");
if (sarParam.burstRecords.size() > 1)
{
sarParam.numberOfLinesPerBurst = m_MetadataSupplierInterface->GetAs<unsigned long>(
supportDataPrefix + "geom.bursts.number_lines_per_burst");
sarParam.numberOfSamplesPerBurst = m_MetadataSupplierInterface->GetAs<unsigned long>(
supportDataPrefix + "geom.bursts.number_samples_per_burst");
sarParam.numberOfSamplesPerBurst = m_MetadataSupplierInterface->GetAs<unsigned long>(
supportDataPrefix + "geom.bursts.number_samples_per_burst");
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment