-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jungkyoj/develop
rebase PR with the most recent develop
- Loading branch information
Showing
94 changed files
with
11,901 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#include "GeoGridProduct.h" | ||
#include <isce3/product/RadarGridProduct.h> | ||
#include <isce3/product/Serialization.h> | ||
|
||
/** @param[in] file IH5File object for product. */ | ||
isce3::product::GeoGridProduct:: | ||
GeoGridProduct(isce3::io::IH5File & file) { | ||
|
||
std::string base_dir = "/science/"; | ||
|
||
isce3::io::IGroup base_group = file.openGroup(base_dir); | ||
std::vector<std::string> key_vector = {"grids"}; | ||
|
||
std::string image_group_str = "", metadata_group_str; | ||
setImageMetadataGroupStr(file, base_dir, base_group, key_vector, | ||
image_group_str, metadata_group_str); | ||
|
||
// If did not find HDF5 groups grids | ||
if (image_group_str.size() == 0) { | ||
std::string error_msg = ("ERROR grids groups not found in " + | ||
file.getFileName()); | ||
throw isce3::except::RuntimeError(ISCE_SRCINFO(), error_msg); | ||
} | ||
|
||
// Get grids group | ||
isce3::io::IGroup imGroup = file.openGroup(image_group_str); | ||
|
||
// Configure grids | ||
loadFromH5(imGroup, _grids); | ||
|
||
// Get metadata group | ||
isce3::io::IGroup metaGroup = file.openGroup(metadata_group_str); | ||
// Configure metadata | ||
|
||
loadFromH5(metaGroup, _metadata); | ||
|
||
// Get look direction | ||
auto identification_vector = isce3::product::findGroupPath(base_group, "identification"); | ||
if (identification_vector.size() == 0) { | ||
std::string error_msg = ("ERROR identification group not found in " + | ||
file.getFileName()); | ||
throw isce3::except::RuntimeError(ISCE_SRCINFO(), error_msg); | ||
} else if (identification_vector.size() > 1) { | ||
std::string error_msg = ("ERROR there should be only one identification" | ||
" group in " + | ||
file.getFileName()); | ||
throw isce3::except::RuntimeError(ISCE_SRCINFO(), error_msg); | ||
} | ||
|
||
std::string identification_group_str = base_dir + identification_vector[0]; | ||
std::string lookDir; | ||
isce3::io::loadFromH5( | ||
file, identification_group_str + "/lookDirection", lookDir); | ||
lookSide(lookDir); | ||
|
||
// Save the filename | ||
_filename = file.filename(); | ||
} |
Oops, something went wrong.