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

ENH: add missing metadatas numberOfLinesPerBurst and numberOfSamplesPerBurst

parent cd837d25
......@@ -114,6 +114,7 @@ struct OTBMetadata_EXPORT BurstRecord
double azimuthAnxTime;
};
/** \struct GCPTime
*
* \brief This structure contains the azimuth and range times associated with a gcp
......@@ -158,6 +159,9 @@ struct OTBMetadata_EXPORT SARParam
double rangeSamplingRate;
double rangeResolution;
unsigned long numberOfLinesPerBurst;
unsigned long numberOfSamplesPerBurst;
/** Doppler centroid estimates */
std::vector<DopplerCentroid> dopplerCentroids;
......@@ -178,6 +182,7 @@ struct OTBMetadata_EXPORT SARParam
/** Conversion coefficients from ground range to slant range */
std::vector<CoordinateConversionRecord> groundRangeToSlantRangeRecords;
};
/** \struct SARCalib
......
......@@ -359,6 +359,12 @@ 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");
sarParam.numberOfSamplesPerBurst = m_MetadataSupplierInterface->GetAs<unsigned long>(
supportDataPrefix + "geom.bursts.number_samples_per_burst");
return true;
}
......
......@@ -696,6 +696,9 @@ void Sentinel1ImageMetadataInterface::ReadSarParamAndGCPs(const XMLMetadataSuppl
sarParam.rangeSamplingRate = AnnotationMS.GetAs<double>("product.generalAnnotation.productInformation.rangeSamplingRate");
sarParam.rangeResolution = AnnotationMS.GetAs<double>("product.imageAnnotation.imageInformation.rangePixelSpacing");
sarParam.numberOfLinesPerBurst = AnnotationMS.GetAs<unsigned long>("product.swathTiming.linesPerBurst");
sarParam.numberOfSamplesPerBurst = AnnotationMS.GetAs<unsigned long>("product.swathTiming.samplesPerBurst");
}
void Sentinel1ImageMetadataInterface::ParseGdal(ImageMetadata & imd)
......
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