15 #include <isce3/core/Constants.h>
16 #include <isce3/core/LookSide.h>
17 #include <isce3/io/IH5.h>
18 #include <isce3/product/Metadata.h>
19 #include <isce3/product/Swath.h>
36 inline Product(
const Metadata &,
const std::map<char, isce3::product::Swath> &);
44 inline const Swath &
swath(
char freq)
const {
return _swaths.at(freq); }
46 inline Swath &
swath(
char freq) {
return _swaths[freq]; }
48 inline void swath(
const Swath & s,
char freq) { _swaths[freq] = s; }
55 inline void lookSide(
const std::string &);
58 inline std::string
filename()
const {
return _filename; }
62 std::map<char, isce3::product::Swath> _swaths;
63 std::string _filename;
70 Product(
const Metadata & meta,
const std::map<char, isce3::product::Swath> & swaths) :
71 _metadata(meta), _swaths(swaths) {}
Swath & swath(char freq)
Get a reference to a swath.
Definition: Product.h:46
void swath(const Swath &s, char freq)
Set a swath.
Definition: Product.h:48
const Swath & swath(char freq) const
Get a read-only reference to a swath.
Definition: Product.h:44
LookSide
Side that radar looks at, Left or Right.
Definition: LookSide.h:13
std::string filename() const
Get the filename of the HDF5 file.
Definition: Product.h:58
Metadata & metadata()
Get a reference to the metadata.
Definition: Product.h:41
Product(isce3::io::IH5File &)
Constructor from IH5File object.
Definition: Product.cpp:6
const Metadata & metadata() const
Get a read-only reference to the metadata.
Definition: Product.h:39
void lookSide(isce3::core::LookSide side)
Set look direction using enum.
Definition: Product.h:53
LookSide parseLookSide(const std::string &str)
Parse string (e.g., "left" or "right") to enum LookSide.
Definition: LookSide.cpp:13
isce3::core::LookSide lookSide() const
Get the look direction.
Definition: Product.h:51