Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
2f27c7c0
Commit
2f27c7c0
authored
Nov 24, 2020
by
Cédric Traizet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PERF: remove unused code
parent
e8c6e7de
Pipeline
#6241
passed with stages
in 106 minutes and 32 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
Modules/Core/Metadata/src/otbCosmoImageMetadataInterface.cxx
Modules/Core/Metadata/src/otbCosmoImageMetadataInterface.cxx
+2
-17
No files found.
Modules/Core/Metadata/src/otbCosmoImageMetadataInterface.cxx
View file @
2f27c7c0
...
...
@@ -382,22 +382,6 @@ void CosmoImageMetadataInterface::Parse(const MetadataSupplierInterface & mds)
itkWarningMacro
(
<<
"Not an expected product type (only SCS_B and SCS_U expected) "
<<
m_Imd
[
MDStr
::
ProductType
]
);
}
// Check SubDatasets (For COSMO, we need //S01/SBI dataset)
auto
subDsName
=
"HDF5:"
+
mds
.
GetResourceFile
()
+
"://S01/SBI"
;
auto
ds
=
(
GDALDataset
*
)
GDALOpen
(
subDsName
.
c_str
(),
GA_ReadOnly
);
if
(
ds
)
{
std
::
cout
<<
"Found S01/SBI ! "
<<
std
::
endl
;
// Do stuff
GDALClose
(
ds
);
}
else
{
otbGenericExceptionMacro
(
MissingMetadataException
,
<<
"Cannot find S01/SBI subdataset"
)
}
m_Imd
.
Add
(
MDStr
::
SensorID
,
"CSK"
);
Fetch
(
MDStr
::
Instrument
,
mds
,
"Satellite_ID"
);
...
...
@@ -418,7 +402,8 @@ void CosmoImageMetadataInterface::Parse(const MetadataSupplierInterface & mds)
m_Imd
.
Add
(
MDNum
::
PRF
,
std
::
stoi
(
PRFNumber
));
//getTIme
//getTime
auto
subDsName
=
"HDF5:"
+
mds
.
GetResourceFile
()
+
"://S01/SBI"
;
auto
metadataBands
=
this
->
saveMetadataBands
(
subDsName
)
;
bool
hasTimeUTC
;
int
pos
=
mds
.
GetMetadataValue
(
"Reference_UTC"
,
hasTimeUTC
).
find
(
" "
);;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment