|
void | set_proj_cfg (nlohmann::json cfg) |
| Set geo projection config in the product.
|
void | set_proj_cfg_tle_timestamps (nlohmann::json cfg, nlohmann::json tle, nlohmann::json timestamps) |
| Set geo projection config in the product, with a TLE and timestamps.
|
nlohmann::json | get_proj_cfg (int channel) |
| Get geo projection config in the product, if present.
|
bool | has_proj_cfg () |
| Check if geo projection info is present.
|
void | set_calibration (std::string calibrator, nlohmann::json cfg) |
std::pair< std::string, nlohmann::json > | get_calibration () |
bool | has_calibration () |
| Check if calibration info is present.
|
nlohmann::json | get_calibration_raw () |
ImageHolder & | get_channel_image (int index) |
| Get image channel by absolute ID.
|
ImageHolder & | get_channel_image (std::string name) |
| Get image channel by name.
|
ImageHolder & | get_channel_image_by_wavenumber (double wavenumber) |
| Get image channel by wavenumber. Returns the closest one.
|
ImageHolder & | get_channel_image_by_unitstr (std::string str) |
| Get image channel by unit string. Returns the closest one.
|
int | get_channel_image_idx (std::string name) |
| Get image channel raw ID by name.
|
int | get_raw_channel_val (int idx, int x, int y) |
| Get raw channel count.
|
void | set_channel_wavenumber (int index, double wavenumber) |
| Set channel wavenumber.
|
void | set_channel_frequency (int index, double frequency) |
| Set channel frequency (internally, wavenumber)
|
double | get_channel_wavenumber (int index) |
| Get channel wavenumber.
|
double | get_channel_frequency (int index) |
| Get channel frequency.
|
void | set_channel_unit (int index, std::string type_or_unit) |
| Set channel calibration unit.
|
virtual void | save (std::string directory) |
| Save the product. Depending on the type this will save a product.cbor and other files in the same directory (eg, images)
|
virtual void | load (std::string file) |
| Load the product. This should refer to the product.cbor file.
|
| Product (Product const &)=delete |
void | operator= (Product const &x)=delete |
void | set_product_timestamp (double timestamp) |
| Set product timestamp, optional. This is usually the rough creation time / acquisition time.
|
bool | has_product_timestamp () |
| Check if a product timestamp is present.
|
double | get_product_timestamp () |
| Get the product timestamp.
|
void | set_product_source (std::string source) |
| Set product source, optional. This is meant to contextualize where this product is from, eg which satellite.
|
bool | has_product_source () |
| Check if a product source is present.
|
std::string | get_product_source () |
| Get the product source.
|
void | set_product_id (std::string id) |
| Set product ID, optional. This is meant to, for example, differentiate several identical instruments.
|
bool | has_product_id () |
| Check if a product ID is present.
|
std::string | get_product_id () |
| Get the product ID.
|
SatDump image product class.
This is mainly intended for Earth imaging instruments, with one or more spectral channel (AVHRR, MODIS...).
It contains and allows if possible :
- Geographic referencing
- Spectral calibration or other physical units
- Dynamic correlation between channels with transforms
- Parameters
-
images | raw image structs containing channel descriptions and images |
save_as_matrix | if enabled, saves all image channels in a single matrix. All images MUST be of the exact same resolution (useful for eg, IASI) |
d_no_not_save_images | advanced parameter, telling it to save the product without saving the image channels, mainly meant for saving in async ways |
d_no_not_load_images | advanced parameter, telling it not to load images but only the CBOR, mainly meant to edit it more efficiently |