SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
satdump::products::PunctiformProduct Class Reference

#include <punctiform_product.h>

Inheritance diagram for satdump::products::PunctiformProduct:
satdump::products::Product

Classes

struct  DataHolder
 TODOREWORK. More...

Public Member Functions

void set_tle (nlohmann::json tle)
bool has_tle ()
nlohmann::json get_tle ()
geodetic::geodetic_coords_t get_sample_position (int ch_index, int sample_index)
int getChannelIndexByName (std::string name)
DataHoldergetChannelByName (std::string name)
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.
Public Member Functions inherited from satdump::products::Product
 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.

Public Attributes

std::vector< DataHolderdata
Public Attributes inherited from satdump::products::Product
nlohmann::json contents
std::string instrument_name
std::string type

Detailed Description

TODOREWORK

Member Function Documentation

◆ load()

void satdump::products::PunctiformProduct::load ( std::string file)
virtual

Load the product. This should refer to the product.cbor file.

Parameters
filecbor file to load

Reimplemented from satdump::products::Product.

◆ save()

void satdump::products::PunctiformProduct::save ( std::string directory)
virtual

Save the product. Depending on the type this will save a product.cbor and other files in the same directory (eg, images)

Parameters
directorydirectory to save into

Reimplemented from satdump::products::Product.


The documentation for this class was generated from the following files: