Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
expand3D.hpp
Go to the documentation of this file.
1 #ifndef EXPAND_3D_HPP
2 #define EXPAND_3D_HPP
3 
4 #include <iostream>
5 #include <unordered_map>
6 #include <unordered_set>
7 #include <vector>
8 #include <string>
9 #include <boost/algorithm/string.hpp>
10 #include <netcdf>
11 #include "genutils.h"
12 #include "readL2scan.h"
13 #include <boost/lexical_cast.hpp>
14 #define EXIT_LOG(...) \
15  { \
16  __VA_ARGS__; \
17  std::cerr << "Exiting. See " << __FILE__ << ":" << __LINE__ << std::endl; \
18  exit(EXIT_FAILURE); \
19  }
20 void set_mapper(const std::string &input_file_name, std::string &products_requested, std::vector<std::string> &products_requested_separated, const std::string &requested_wavelengths);
21 void set_prodname_3d_to_l2(const std::vector<std::string> &prodparam, l2_prod &l2_str, std::vector<std::string> &l2_prodname, std::vector<std::string> &l3_prodname, std::vector<int32_t> &thirdDimId, std::vector<float> &min_value, std::vector<float> &max_value);
22 bool set_l2_flags_use(const std::string &flagsuse);
23 void parse_wv_list(const std::string &wv_list,
24  const std::unordered_map<int, int> &wv3d_list, std::vector<int> & wv_requested_vals,
25  std::vector<int> & wv_requested_indexes, bool exit_on_not_found = true);
26 float l3_attr(const std::string &inp3);
27 #endif
void parse_wv_list(const std::string &wv_list, const std::unordered_map< int, int > &wv3d_list, std::vector< int > &wv_requested_vals, std::vector< int > &wv_requested_indexes, bool exit_on_not_found=true)
Definition: expand3D.cpp:70
void set_prodname_3d_to_l2(const std::vector< std::string > &prodparam, l2_prod &l2_str, std::vector< std::string > &l2_prodname, std::vector< std::string > &l3_prodname, std::vector< int32_t > &thirdDimId, std::vector< float > &min_value, std::vector< float > &max_value)
Definition: expand3D.cpp:383
@ string
bool set_l2_flags_use(const std::string &flagsuse)
Definition: expand3D.cpp:407
float l3_attr(const std::string &inp3)
Definition: expand3D.cpp:421
std::vector< float32 > min_value
Definition: l2bin.cpp:100
std::vector< int32_t > thirdDimId
Definition: l2bin.cpp:99
void set_mapper(const std::string &input_file_name, std::string &products_requested, std::vector< std::string > &products_requested_separated, const std::string &requested_wavelengths)
readL2, openL2 uses the maps from this module. If the module is not initialized, the function read an...
Definition: expand3D.cpp:235
std::vector< float32 > max_value
Definition: l2bin.cpp:100