Commit d7648e39 authored by Julien Osman's avatar Julien Osman
Browse files

FIX: Add a 0.5 offset to RPC model for Pleiades

parent 20c1ed52
Pipeline #6688 failed with stages
in 85 minutes and 5 seconds
...@@ -80,7 +80,7 @@ line_num_coeff_16: 4.81457792658454e-05 ...@@ -80,7 +80,7 @@ line_num_coeff_16: 4.81457792658454e-05
line_num_coeff_17: 2.88619029525836e-07 line_num_coeff_17: 2.88619029525836e-07
line_num_coeff_18: -3.21946619769831e-07 line_num_coeff_18: -3.21946619769831e-07
line_num_coeff_19: 5.19261801580877e-07 line_num_coeff_19: 5.19261801580877e-07
line_off: 3628.5 line_off: 3628
line_scale: 3628.5 line_scale: 3628.5
ll_lat: -21.1761546496637 ll_lat: -21.1761546496637
ll_lon: 55.3361820080128 ll_lon: 55.3361820080128
...@@ -141,7 +141,7 @@ samp_num_coeff_16: -7.36857981217554e-07 ...@@ -141,7 +141,7 @@ samp_num_coeff_16: -7.36857981217554e-07
samp_num_coeff_17: 6.99721596099962e-06 samp_num_coeff_17: 6.99721596099962e-06
samp_num_coeff_18: 2.68058434585531e-05 samp_num_coeff_18: 2.68058434585531e-05
samp_num_coeff_19: 2.22039097455653e-06 samp_num_coeff_19: 2.22039097455653e-06
samp_off: 2178 samp_off: 2177.5
samp_scale: 5187 samp_scale: 5187
sensor: PHR 1A sensor: PHR 1A
support_data.across_track_incidence_angle: """15.5053146594264 15.3626255402908 15.2247250482884 """ support_data.across_track_incidence_angle: """15.5053146594264 15.3626255402908 15.2247250482884 """
......
...@@ -245,7 +245,7 @@ public: ...@@ -245,7 +245,7 @@ public:
const std::string& Fetch(std::string key, const MetadataSupplierInterface & mds, const char *path, int band=-1); const std::string& Fetch(std::string key, const MetadataSupplierInterface & mds, const char *path, int band=-1);
const boost::any& FetchRPC(const MetadataSupplierInterface & mds); const boost::any& FetchRPC(const MetadataSupplierInterface & mds, const double lineOffset = 0.0, const double sampleOffset = 0.0);
/** Reads into the MetaDataDictionary to find an OSSIM ImageKeywordlist, /** Reads into the MetaDataDictionary to find an OSSIM ImageKeywordlist,
* then translate it into ImageMetadata. * then translate it into ImageMetadata.
......
...@@ -689,8 +689,8 @@ ImageMetadataInterfaceBase::Fetch( ...@@ -689,8 +689,8 @@ ImageMetadataInterfaceBase::Fetch(
return m_Imd[key]; return m_Imd[key];
} }
const boost::any& ImageMetadataInterfaceBase::FetchRPC( const boost::any& ImageMetadataInterfaceBase::FetchRPC(const MetadataSupplierInterface & mds,
const MetadataSupplierInterface & mds) const double lineOffset, const double sampleOffset)
{ {
Projection::RPCParam rpcStruct; Projection::RPCParam rpcStruct;
...@@ -723,8 +723,8 @@ const boost::any& ImageMetadataInterfaceBase::FetchRPC( ...@@ -723,8 +723,8 @@ const boost::any& ImageMetadataInterfaceBase::FetchRPC(
} }
}; };
rpcStruct.LineOffset = GetMetadataWithoutUnit("RPC/LINE_OFF", mds); rpcStruct.LineOffset = GetMetadataWithoutUnit("RPC/LINE_OFF", mds) + lineOffset;
rpcStruct.SampleOffset = GetMetadataWithoutUnit("RPC/SAMP_OFF", mds); rpcStruct.SampleOffset = GetMetadataWithoutUnit("RPC/SAMP_OFF", mds) + sampleOffset;
rpcStruct.LatOffset = GetMetadataWithoutUnit("RPC/LAT_OFF", mds); rpcStruct.LatOffset = GetMetadataWithoutUnit("RPC/LAT_OFF", mds);
rpcStruct.LonOffset = GetMetadataWithoutUnit("RPC/LONG_OFF", mds); rpcStruct.LonOffset = GetMetadataWithoutUnit("RPC/LONG_OFF", mds);
rpcStruct.HeightOffset = GetMetadataWithoutUnit("RPC/HEIGHT_OFF", mds); rpcStruct.HeightOffset = GetMetadataWithoutUnit("RPC/HEIGHT_OFF", mds);
......
...@@ -2232,7 +2232,7 @@ void PleiadesImageMetadataInterface::Parse(const MetadataSupplierInterface & mds ...@@ -2232,7 +2232,7 @@ void PleiadesImageMetadataInterface::Parse(const MetadataSupplierInterface & mds
// fill RPC model // fill RPC model
if (m_Imd[MDStr::GeometricLevel] == "SENSOR") if (m_Imd[MDStr::GeometricLevel] == "SENSOR")
{ {
FetchRPC(mds); FetchRPC(mds, -0.5, -0.5);
} }
} }
// Geom case // Geom case
......
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