diff --git a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp index 853c45b08cf3a41e4a05ebe67b0127fe3323667c..ac41dfa90b49e98eed87180e94fe9f6bfcd08466 100644 --- a/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp +++ b/Utilities/otbossimplugins/ossim/AlosPalsar/AlosSarLeader.cpp @@ -174,6 +174,7 @@ bool AlosSarLeader::saveState(ossimKeywordlist& kwl, kwl.add(prefix, "pix_spacing", datasetSummary->get_pix_spacing(),true); kwl.add(prefix, "nlooks_az", datasetSummary->get_n_azilok(),true); kwl.add(prefix, "n_rnglok", datasetSummary->get_n_rnglok(),true); + kwl.add(prefix, "alt_dopcen[0]", datasetSummary->get_alt_dopcen()[0],true); //FIXME check if those data are available // kwl.add(prefix, "zero_dop_range_time_f_pixel", datasetSummary->get_zero_dop_range_time_f_pixel(),true); // kwl.add(prefix, "zero_dop_range_time_c_pixel", datasetSummary->get_zero_dop_range_time_c_pixel(),true); diff --git a/Utilities/otbossimplugins/ossim/ossimAlosPalsarModel.cpp b/Utilities/otbossimplugins/ossim/ossimAlosPalsarModel.cpp index 8f8ddc98d92b3a6ec371112ac8f548f0aeb07d7d..8c3cf6f0b7497c14efd7854c17363c7e46d00e96 100644 --- a/Utilities/otbossimplugins/ossim/ossimAlosPalsarModel.cpp +++ b/Utilities/otbossimplugins/ossim/ossimAlosPalsarModel.cpp @@ -86,6 +86,9 @@ bool ossimAlosPalsarModel::InitSensorParams(const ossimKeywordlist &kwl, const c const char* ellip_min_str = kwl.find(prefix,"ellip_min"); double ellip_min = atof(ellip_min_str) * 1000.0; // km -> m + const char* dopcen_str = kwl.find(prefix,"alt_dopcen[0]"); + double dopcen = atof(dopcen_str); + if(_sensor != NULL) { delete _sensor; @@ -133,6 +136,8 @@ bool ossimAlosPalsarModel::InitSensorParams(const ossimKeywordlist &kwl, const c _sensor->set_semiMajorAxis(ellip_maj) ; _sensor->set_semiMinorAxis(ellip_min) ; + _sensor->set_dopcen(dopcen); + return true; }