Commit d7058fbf authored by Julie Brossard's avatar Julie Brossard

[BUG] Corrected PSR key value

parent 84cc8fc9
Pipeline #6057 passed with stages
in 114 minutes and 59 seconds
......@@ -9,7 +9,8 @@ OrbitDirection DESCENDING
TileHintX 128
TileHintY 128
DataType 1
OrbitNumber 3321
OrbitNumber 13415
PRF 3321
RadarFrequency 9.6e+09
AcquisitionStartTime 2011-04-18T18:03:27.915976Z
AcquisitionStopTime 2011-04-18T18:03:29.380925Z
......
SensorID SAR
Mission RADARSAT-2
Instrument RADARSAT-2
ProductType SLC
OrbitDirection Descending
......
......@@ -419,7 +419,7 @@ void CosmoImageMetadataInterface::Parse(const MetadataSupplierInterface *mds)
bool hasPRF;
std::string PRFNumber = mds->GetMetadataValue("S01_PRF", hasPRF);
m_Imd.Add(MDNum::OrbitNumber, std::stoi(PRFNumber));
m_Imd.Add(MDNum::PRF, std::stoi(PRFNumber));
//getTIme
......
......@@ -255,7 +255,6 @@ void Radarsat2ImageMetadataInterface::Parse(const MetadataSupplierInterface *mds
Fetch("FACILITY_IDENTIFIER", *mds, "FACILITY_IDENTIFIER");
Fetch(MDNum::LineSpacing, *mds, "LINE_SPACING");
Fetch(MDNum::PixelSpacing, *mds, "PIXEL_SPACING");
// Fetch(MDStr::Mission, *mds, "MISSION_ID"); // TODO : product.sourceAttributes.satellite ?
// Fetch(MDStr::Mode, *mds, "MODE");
Fetch(MDStr::OrbitDirection, *mds, "ORBIT_DIRECTION");
// Fetch(MDNum::OrbitNumber, *mds, "ORBIT_NUMBER");
......@@ -271,6 +270,7 @@ void Radarsat2ImageMetadataInterface::Parse(const MetadataSupplierInterface *mds
{
// std::cout<< ProductFilePath << std::endl;
XMLMetadataSupplier ProductMS(ProductFilePath);
m_Imd.Add(MDStr::Mission, ProductMS.GetAs<std::string>("product.sourceAttributes.satellite"));
m_Imd.Add(MDNum::NumberOfLines, ProductMS.GetAs<int>("product.imageAttributes.rasterAttributes.numberOfLines"));
m_Imd.Add(MDNum::NumberOfColumns, ProductMS.GetAs<int>("product.imageAttributes.rasterAttributes.numberOfSamplesPerLine"));
......
......@@ -1266,7 +1266,7 @@ void TerraSarImageMetadataInterface::Parse(const MetadataSupplierInterface *mds)
XMLMetadataSupplier MainXMLFileMS(MainFilePath);
m_Imd.Add(MDStr::Mission, MainXMLFileMS.GetAs<std::string>("level1Product.generalHeader.mission"));
m_Imd.Add(MDStr::ProductType, MainXMLFileMS.GetAs<std::string>("level1Product.productInfo.productVariantInfo.productType"));
m_Imd.Add(MDStr::Mode, MainXMLFileMS.GetAs<std::string>("level1Product.productInfo.acquisitionInfo.imagingMode"));
// m_Imd.Add(MDStr::Mode, MainXMLFileMS.GetAs<std::string>("level1Product.productInfo.acquisitionInfo.imagingMode"));
m_Imd.Add(MDStr::SensorID, MainXMLFileMS.GetAs<std::string>("level1Product.productInfo.acquisitionInfo.sensor"));
m_Imd.Add(MDNum::RadarFrequency, MainXMLFileMS.GetAs<double>("level1Product.instrument.radarParameters.centerFrequency"));
......
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