ocssw
V2022
|
DataRecord.hpp
Go to the documentation of this file.
16 TileParameters(size_t lines, size_t pixels, size_t start_line=0, size_t start_pixel=0) : size{lines, pixels}, origin{start_line, start_pixel}, end{origin.first + size.first, origin.second + size.second} {}
17 TileParameters(std::pair<size_t, size_t> size_, std::pair<size_t, size_t> origin_={0,0}) : size{size_}, origin{origin_}, end{origin.first + size.first, origin.second + size.second} {}
18 TileParameters(std::pair<size_t, size_t> size_, std::pair<size_t, size_t> origin_, std::pair<size_t, size_t> data_origin_, bool top_is_bounded_, bool bottom_is_bounded_, bool left_is_bounded_=true, bool right_is_bounded_=true) :
19 size{size_}, origin{origin_}, end{origin.first + size.first, origin.second + size.second}, data_origin{data_origin_}, top_is_bounded{top_is_bounded_}, bottom_is_bounded{bottom_is_bounded_}, left_is_bounded{left_is_bounded_}, right_is_bounded{right_is_bounded_} {}
45 out << "TileParameters[" << params.size.first << "x" << params.size.second << ";" << params.origin.first << "," << params.origin.second << ";";
83 // BaseVariable* get_product(const std::string& product) { return variables_.at(product).get(); }
85 std::unordered_map<std::string, const Product>::const_iterator products_begin() const { return products_.cbegin(); }
86 std::unordered_map<std::string, const Product>::const_iterator products_end() const { return products_.cend(); }
119 // TODO: should the create_variable functions be extended for interpolation and/or extrapolation?
121 // They will create a hidden variable of the source dimensions and return a real one based on the second set of dimensions.
131 focs::Variable<T, N>* create_variable(focs::Product& product, const std::vector<std::pair<std::string, size_t>>& dimensions={}, const bool resize=true) {
136 T* create_variable(focs::Product& product, const std::vector<std::pair<std::string, size_t>>& dimensions={}, const bool resize=true) {
std::pair< size_t, size_t > size() const noexcept
Definition: DataRecord.hpp:88
T * create_variable(focs::Product &product, const std::vector< std::pair< std::string, size_t >> &dimensions={}, const bool resize=true)
Definition: DataRecord.hpp:136
void size(std::pair< size_t, size_t > size) noexcept
Definition: DataRecord.hpp:89
void reserve_data(std::vector< std::vector< T >> &data, const bool resize=true) const
Definition: DataRecord.hpp:103
These are used to scale the SD before writing it to the HDF4 file The default is and which means the product is not scaled at all Since the product is usually stored as a float inside of this is a way to write the float out as a integer l2prod min
Definition: HOWTO_Add_a_product.txt:76
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed as required for compatibility with version of the SDP toolkit Corrected test output file names to end in out
Definition: HISTORY.txt:422
TileParameters(std::pair< size_t, size_t > size_, std::pair< size_t, size_t > origin_={0, 0})
Definition: DataRecord.hpp:17
std::pair< size_t, size_t > max_size() const noexcept
Definition: DataRecord.hpp:90
TileParameters(size_t lines, size_t pixels, size_t start_line=0, size_t start_pixel=0)
Definition: DataRecord.hpp:16
Definition: Variable.hpp:199
TileParameters(std::pair< size_t, size_t > size_, std::pair< size_t, size_t > origin_, std::pair< size_t, size_t > data_origin_, bool top_is_bounded_, bool bottom_is_bounded_, bool left_is_bounded_=true, bool right_is_bounded_=true)
Definition: DataRecord.hpp:18
std::pair< size_t, size_t > data_origin
Definition: DataRecord.hpp:65
friend std::ostream & operator<<(std::ostream &out, const TileParameters ¶ms)
Definition: DataRecord.hpp:44
Definition: Product.hpp:303
void shrink_to(std::pair< size_t, size_t > new_size)
Definition: DataRecord.hpp:21
void max_size(std::pair< size_t, size_t > max_size) noexcept
Definition: DataRecord.hpp:91
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
std::unordered_map< std::string, const Product >::const_iterator products_end() const
Definition: DataRecord.hpp:86
Definition: DataRecord.hpp:80
focs::Variable< T, N > * create_variable(focs::Product &product, const std::vector< std::pair< std::string, size_t >> &dimensions={}, const bool resize=true)
Definition: DataRecord.hpp:131
Definition: DataRecord.hpp:14
Definition: DataRecord.hpp:73
HISTORY txt for MOD_PR01(step one of PGE01) History follows the following convention needed due to new Aqua ReprocessingActual and the expected LUT revision number from PCF Changed to use PGE version for ProductionHistory Added Archive including ProcessingEnvironment Corrected handling of bad to resovle GSFcd02514 Changed to check staged LUT revision number versus the expected LUT revision number from thereby resolving defect report MODxl02056 This change also avoids the memory access violation reported in MODur00039 Changed the way output arrays were initialized with fill to be more but placed into the L1A output product and thought of as valid packets These packets had an invalid frame count in them and since only the last valid packet of any specific type gets it frame count data written to the output product
Definition: HISTORY.txt:176
std::unordered_map< std::string, const Product >::const_iterator products_begin() const
Definition: DataRecord.hpp:85
void offset_up_to(std::pair< size_t, size_t > new_position)
Definition: DataRecord.hpp:26
Definition: DataProvider.hpp:16