SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
identify.h
Go to the documentation of this file.
1#pragma once
2
7
9#include "xrit_file.h"
10#include <memory>
11#include <string>
12
13namespace satdump
14{
15 namespace xrit
16 {
22 {
23 XRIT_UNKNOWN,
24 XRIT_ELEKTRO_MSUGS,
25 XRIT_MSG_SEVIRI,
26 XRIT_GOES_ABI,
27 XRIT_GOES_HIMAWARI_AHI,
28 XRIT_GOESN_IMAGER,
29 XRIT_GK2A_AMI,
30 XRIT_HIMAWARI_AHI,
31 XRIT_FY4_AGRI,
32 };
33
55 struct XRITFileInfo
56 {
57 std::string filename;
59 std::string instrument_id;
60 std::string instrument_name;
61 std::string satellite_name;
62 std::string satellite_short_name;
63 std::string region;
64 double timestamp = -1;
65 std::string groupid;
66 std::string seg_groupid;
67 std::string channel;
68 int bit_depth = -1;
69
71
72 std::shared_ptr<ImageNavigationRecord> image_navigation_record;
73 std::shared_ptr<ImageDataFunctionRecord> image_data_function_record;
74 std::shared_ptr<fy4::ImageNavigationRecord> image_navigation_record_fy4;
75
76 XRITFileInfo() : type(XRIT_UNKNOWN) {}
77 };
78
79 bool identifyElektroFile(XRITFileInfo &i, XRITFile &file);
80 bool identifyMSGFile(XRITFileInfo &i, XRITFile &file);
81 bool identifyGOESFile(XRITFileInfo &i, XRITFile &file);
82 bool identifyGK2AFile(XRITFileInfo &i, XRITFile &file);
83 bool identifyHimawariFile(XRITFileInfo &i, XRITFile &file);
84 bool identifyFY4File(XRITFileInfo &i, XRITFile &file);
85
94 XRITFileInfo identifyXRITFIle(XRITFile &file);
95 } // namespace xrit
96} // namespace satdump
FY-4x HRIT/LRIT Specific Headers.
xrit_file_type_t
Identifier to differentiate different format of xRIT files (do note some are duplicate!...
Definition identify.h:22
Struct holding all identifying information on a xRIT files being processed.
Definition identify.h:56
Definition xrit_file.h:143