Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
00a850c2
Commit
00a850c2
authored
9 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
support_data_kw -> support_data_prefix for prefix variable
parent
2fd06bff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1ProductDoc.cpp
+23
-23
23 additions, 23 deletions
...Party/OssimPlugins/src/ossim/ossimSentinel1ProductDoc.cpp
with
23 additions
and
23 deletions
Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1ProductDoc.cpp
+
23
−
23
View file @
00a850c2
...
...
@@ -11,7 +11,7 @@ namespace ossimplugins
static
const
char
LOAD_FROM_PRODUCT_FILE_KW
[]
=
"load_from_product_file_flag"
;
static
const
char
PRODUCT_XML_FILE_KW
[]
=
"product_xml_filename"
;
static
const
char
SUPPORT_DATA_
KW
[]
=
"support_data."
;
static
const
char
SUPPORT_DATA_
PREFIX
[]
=
"support_data."
;
ossimSentinel1ProductDoc
::
ossimSentinel1ProductDoc
()
:
ossimErrorStatusInterface
()
...
...
@@ -179,7 +179,7 @@ namespace ossimplugins
adsHeader
->
getChildTextValue
(
"stopTime"
),
true
);
//RK maybe use this->getManifestPrefix()
theProductKwl
.
add
(
"
SUPPORT_DATA_
KW."
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"mds1_tx_rx_polar"
,
polarisation
,
true
);
...
...
@@ -188,17 +188,17 @@ namespace ossimplugins
const
ossimRefPtr
<
ossimXmlNode
>
productInformation
=
theProductXmlDocument
->
getRoot
()
->
findFirstNode
(
"generalAnnotation/productInformation"
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"data_take_id"
,
adsHeader
->
getChildTextValue
(
"missionDataTakeId"
),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"slice_num"
,
imageInformation
->
getChildTextValue
(
"sliceNumber"
),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"line_time_interval"
,
imageInformation
->
getChildTextValue
(
"azimuthTimeInterval"
),
true
);
...
...
@@ -229,22 +229,22 @@ namespace ossimplugins
{
// these should be the same for all swaths
//RK div by oneMillion taken from S1tlbx
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"range_sampling_rate"
,
productInformation
->
getChildTextValue
(
"rangeSamplingRate"
).
toFloat64
()
/
oneMillion
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"radar_frequency"
,
productInformation
->
getChildTextValue
(
"radarFrequency"
).
toFloat64
()
/
oneMillion
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"line_time_interval"
,
imageInformation
->
getChildTextValue
(
"azimuthTimeInterval"
),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"slant_range_to_first_pixel"
,
imageInformation
->
getChildTextValue
(
"slantRangeTime"
).
toFloat64
()
*
halfLightSpeed
,
true
);
...
...
@@ -252,7 +252,7 @@ namespace ossimplugins
const
ossimRefPtr
<
ossimXmlNode
>
downlinkInformation
=
theProductXmlDocument
->
getRoot
()
->
findFirstNode
(
"generalAnnotation/downlinkInformationList/downlinkInformation"
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"pulse_repetition_frequency"
,
downlinkInformation
->
getChildTextValue
(
"prf"
),
true
);
...
...
@@ -262,34 +262,34 @@ namespace ossimplugins
const
ossimRefPtr
<
ossimXmlNode
>
rangeProcessingNode
=
swathProcParams
->
findFirstNode
(
"rangeProcessing"
);
const
ossimRefPtr
<
ossimXmlNode
>
azimuthProcessingNode
=
swathProcParams
->
findFirstNode
(
"azimuthProcessing"
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"azimuth_bandwidth"
,
azimuthProcessingNode
->
getChildTextValue
(
"processingBandwidth"
).
toFloat64
()
/
oneMillion
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"range_bandwidth"
,
rangeProcessingNode
->
getChildTextValue
(
"processingBandwidth"
).
toFloat64
()
/
oneMillion
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"range_looks"
,
rangeProcessingNode
->
getChildTextValue
(
"numberOfLooks"
),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"azimuth_looks"
,
azimuthProcessingNode
->
getChildTextValue
(
"numberOfLooks"
),
true
);
if
(
!
theTOPSAR
||
!
theSLC
)
{
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
ossimKeywordNames
::
NUMBER_SAMPLES_KW
,
imageInformation
->
getChildTextValue
(
"numberOfSamples"
),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
ossimKeywordNames
::
NUMBER_LINES_KW
,
imageInformation
->
getChildTextValue
(
"numberOfLines"
),
true
);
...
...
@@ -299,7 +299,7 @@ namespace ossimplugins
addOrbitStateVectors
(
orbitList
);
const
ossimRefPtr
<
ossimXmlNode
>
coordinateConversionList
=
theProductXmlDocument
->
getRoot
()
->
findFirstNode
(
"coordinateConversion/coordinateConversionList"
);
addSRGRCoefficients
(
SUPPORT_DATA_
KW
,
coordinateConversionList
);
addSRGRCoefficients
(
SUPPORT_DATA_
PREFIX
,
coordinateConversionList
);
const
ossimRefPtr
<
ossimXmlNode
>
dcEstimateList
=
theProductXmlDocument
->
getRoot
()
->
findFirstNode
(
"dopplerCentroid/dcEstimateList"
);
addDopplerCentroidCoefficients
(
dcEstimateList
);
...
...
@@ -316,22 +316,22 @@ namespace ossimplugins
}
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"range_spacing"
,
theRangeSpacingTotal
/
(
double
)
numBands
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"azimuth_spacing"
,
theAzimuthSpacingTotal
/
(
double
)
numBands
,
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
"avg_scene_height"
,
heightSum
/
(
double
)
files
.
size
(),
true
);
theProductKwl
.
add
(
SUPPORT_DATA_
KW
,
theProductKwl
.
add
(
SUPPORT_DATA_
PREFIX
,
ossimKeywordNames
::
NUMBER_BANDS_KW
,
numBands
,
true
);
...
...
@@ -441,8 +441,8 @@ namespace ossimplugins
bool
ossimSentinel1ProductDoc
::
initImageSize
(
ossimIpt
&
imageSize
)
const
{
const
ossimString
samples_str
=
theProductKwl
.
find
(
SUPPORT_DATA_
KW
,
ossimKeywordNames
::
NUMBER_SAMPLES_KW
);
const
ossimString
lines_str
=
theProductKwl
.
find
(
SUPPORT_DATA_
KW
,
ossimKeywordNames
::
NUMBER_LINES_KW
);
const
ossimString
samples_str
=
theProductKwl
.
find
(
SUPPORT_DATA_
PREFIX
,
ossimKeywordNames
::
NUMBER_SAMPLES_KW
);
const
ossimString
lines_str
=
theProductKwl
.
find
(
SUPPORT_DATA_
PREFIX
,
ossimKeywordNames
::
NUMBER_LINES_KW
);
imageSize
.
samp
=
samples_str
.
toInt
();
imageSize
.
line
=
lines_str
.
toInt
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment