isce3 0.25.0
Loading...
Searching...
No Matches
RadarGridProduct.h
1// -*- C++ -*-
2// -*- coding: utf-8 -*-
3//
4// Source Author: Bryan Riel
5// Copyright 2017-2018
6
7#pragma once
8
9// std
10#include <string>
11#include <algorithm>
12#include <locale>
13#include <map>
14
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>
20
21namespace isce3 { namespace product {
22
25
26
35std::vector<std::string> findGroupPath(
36 isce3::io::IGroup& group, const std::string& group_name);
37
55 isce3::io::IH5File & file,
56 std::string& base_dir,
57 isce3::io::IGroup& base_group,
58 std::vector<std::string>& key_vector,
59 std::string &image_group_str,
60 std::string &metadata_group_str);
61
72
73 public:
77 inline RadarGridProduct(const Metadata &, const std::map<char, isce3::product::Swath> &);
78
80 inline const Metadata & metadata() const { return _metadata; }
82 inline Metadata & metadata() { return _metadata; }
83
85 inline const Swath & swath(char freq) const { return _swaths.at(freq); }
87 inline Swath & swath(char freq) { return _swaths[freq]; }
89 inline void swath(const Swath & s, char freq) { _swaths[freq] = s; }
90
92 inline isce3::core::LookSide lookSide() const { return _lookSide; }
94 inline void lookSide(isce3::core::LookSide side) { _lookSide = side; }
96 inline void lookSide(const std::string &);
97
99 inline std::string filename() const { return _filename; }
100
101 private:
102 isce3::product::Metadata _metadata;
103 std::map<char, isce3::product::Swath> _swaths;
104 std::string _filename;
105 isce3::core::LookSide _lookSide;
106};
107
111RadarGridProduct(const Metadata & meta, const std::map<char, isce3::product::Swath> & swaths) :
112 _metadata(meta), _swaths(swaths) {}
113
115void
117lookSide(const std::string & inputLook) {
118 _lookSide = isce3::core::parseLookSide(inputLook);
119}
120
121}}
Definition IH5.h:439
Definition Metadata.h:24
void swath(const Swath &s, char freq)
Set a swath.
Definition RadarGridProduct.h:89
const Swath & swath(char freq) const
Get a read-only reference to a swath.
Definition RadarGridProduct.h:85
void lookSide(isce3::core::LookSide side)
Set look direction using enum.
Definition RadarGridProduct.h:94
isce3::core::LookSide lookSide() const
Get the look direction.
Definition RadarGridProduct.h:92
const Metadata & metadata() const
Get a read-only reference to the metadata.
Definition RadarGridProduct.h:80
Metadata & metadata()
Get a reference to the metadata.
Definition RadarGridProduct.h:82
std::string filename() const
Get the filename of the HDF5 file.
Definition RadarGridProduct.h:99
RadarGridProduct(isce3::io::IH5File &)
Constructor from IH5File object.
Definition RadarGridProduct.cpp:85
Swath & swath(char freq)
Get a reference to a swath.
Definition RadarGridProduct.h:87
Definition Swath.h:23
The isce3::product namespace.
Definition forward.h:3
std::vector< std::string > findGroupPath(isce3::io::IGroup &group, const std::string &group_name)
Return the path to each child group of group that ends with the substring group_name.
Definition RadarGridProduct.cpp:10
void setImageMetadataGroupStr(isce3::io::IH5File &file, std::string &base_dir, isce3::io::IGroup &base_group, std::vector< std::string > &key_vector, std::string &image_group_str, std::string &metadata_group_str)
Return grids or swaths group paths within the base_group.
Definition RadarGridProduct.cpp:43
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5

Generated for ISCE3.0 by doxygen 1.13.2.