ocssw
V2022
|
FileReader.hpp
Go to the documentation of this file.
22 // Everything that writes to hints.attributes_ is performing a copy (of what they're adding). Switch to smart pointers?
57 FileReader(const std::string& name, const std::string& description) : DataProvider(name, description) {}
69 virtual validity is_valid_file(const std::string& file, FileReaderHints& hints){(void)file; (void)hints; return invalid;}
75 virtual std::unique_ptr<FileReader> initialize_reader(DataProviderConfiguration& configuration, const boost::filesystem::path& path) = 0;
77 virtual TileParameters read_next_tile(DataProviderConfiguration& configuration, DataRecord& record){(void)configuration; (void)record; return {0,0}; } // true on finished? For now.
virtual std::vector< std::shared_ptr< Product > > & needs() override
validity is_valid_file(const std::string &file)
Definition: FileReader.hpp:70
void first_bytes(const std::array< int, 8 > &bytes)
Definition: FileReader.hpp:32
FileReader(const std::string &name, const std::string &description)
Definition: FileReader.hpp:57
Definition: FileReader.hpp:23
const std::array< int, 4 > NETCDF1_MAGIC_NUMBER
bool is_hdf4() const noexcept
Definition: FileReader.hpp:55
const std::array< int, 4 > HDF4_MAGIC_NUMBER
bool is_hdf5() const noexcept
const std::string & filename() const noexcept
Definition: FileReader.hpp:37
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 file
Definition: HISTORY.txt:413
const std::string & format() const noexcept
Definition: FileReader.hpp:40
virtual std::unique_ptr< FileReader > initialize_reader(DataProviderConfiguration &configuration, const boost::filesystem::path &path)=0
const std::array< int, 8 > HDF5_MAGIC_NUMBER
virtual validity is_valid_file(const std::string &file, FileReaderHints &hints)
Definition: FileReader.hpp:69
FileReaderHints()=default
Definition: DataProvider.hpp:59
bool magic_number(const std::string &bytes) const noexcept
void filename(const std::string &filename)
Definition: FileReader.hpp:38
virtual TileParameters read_next_tile(DataProviderConfiguration &configuration, DataRecord &record)
Definition: FileReader.hpp:77
Definition: DataRecord.hpp:80
Definition: DataRecord.hpp:14
bool is_netcdf() const noexcept
const std::array< int, 4 > NETCDF2_MAGIC_NUMBER
const std::string & description() const
Definition: DataProvider.hpp:67
const std::array< int, 8 > & first_bytes() const noexcept
Definition: FileReader.hpp:31
Definition: DataProvider.hpp:16