|
int | epr_init_api (EPR_ELogLevel log_level, EPR_FLogHandler log_handler, EPR_FErrHandler err_handler) |
| Initializes the ENVISAT product reader API. More...
|
|
void | epr_close_api (void) |
| Closes the ENVISAT product reader API by releasing all resources allocated by the API. More...
|
|
int | epr_set_log_level (EPR_ELogLevel log_level) |
| Sets the log level for the ENVISAT API. More...
|
|
void | epr_set_log_handler (EPR_FLogHandler log_handler) |
| Sets the log handler for the ENVISAT API. More...
|
|
void | epr_log_message (EPR_ELogLevel log_level, const char *log_message) |
| A default implementation for a logging function to be passed into the epr_init() function. More...
|
|
void | epr_set_err_handler (EPR_FErrHandler err_handler) |
| Sets the error handler for the ENVISAT API. More...
|
|
EPR_EErrCode | epr_get_last_err_code (void) |
| Gets the error code of the error that occured during the last API function call. More...
|
|
const char * | epr_get_last_err_message (void) |
| Gets the error message of the error that occured during the last API function call. More...
|
|
void | epr_clear_err (void) |
| Clears the last error. More...
|
|
EPR_SProductId * | epr_open_product (const char *product_file_path) |
| Opens the ENVISAT product file with the given file path,
reads MPH, SPH and all DSDs,
organized the table with parameter of line length and tie points number;
returns a file identifier for the product. More...
|
|
int | epr_close_product (EPR_SProductId *product_id) |
| Closes the ENVISAT product file determined by the given product identifier. More...
|
|
void | epr_print_record (const EPR_SRecord *record, FILE *ostream) |
|
void | epr_print_field (const EPR_SField *field, FILE *ostream) |
|
void | epr_print_element (const EPR_SRecord *record, uint field_index, uint element_index, FILE *ostream) |
|
void | epr_dump_record (const EPR_SRecord *record) |
|
void | epr_dump_field (const EPR_SField *field) |
|
void | epr_dump_element (const EPR_SRecord *record, uint field_index, uint element_index) |
|
uint | epr_get_scene_width (const EPR_SProductId *product_id) |
| Gets the product's scene width in pixels. More...
|
|
uint | epr_get_scene_height (const EPR_SProductId *product_id) |
| Gets the product's scene height in pixels. More...
|
|
uint | epr_get_num_datasets (EPR_SProductId *product_id) |
| Gets the number off all datasets contained in a product. More...
|
|
EPR_SDatasetId * | epr_get_dataset_id_at (EPR_SProductId *product_id, uint index) |
| Gets the dataset_id at the specified position within the product. More...
|
|
EPR_SDatasetId * | epr_get_dataset_id (EPR_SProductId *product_id, const char *dataset_name) |
| Gets the dataset_id coresponding to the specified dataset name. More...
|
|
const char * | epr_get_dataset_name (EPR_SDatasetId *dataset_id) |
| Gets the name of the dataset for the given dataset ID. More...
|
|
const char * | epr_get_dsd_name (const EPR_SDatasetId *dataset_id) |
| Gets the name of the dsd for the given dataset ID. More...
|
|
EPR_SRecord * | epr_get_mph (const EPR_SProductId *product_id) |
| Gets the MPH record from the given product_id . More...
|
|
EPR_SRecord * | epr_get_sph (const EPR_SProductId *product_id) |
| Gets the SPH record from the given product_id . More...
|
|
const EPR_SDSD * | epr_get_dsd (const EPR_SDatasetId *dataset_id) |
| Gets the dataset descriptor (DSD) for the dataset specified by dataset_id . More...
|
|
uint | epr_get_num_records (const EPR_SDatasetId *dataset_id) |
| Gets the number of records of the dataset specified by dataset_id . More...
|
|
uint | epr_get_num_dsds (const EPR_SProductId *product_id) |
|
EPR_SDSD * | epr_get_dsd_at (const EPR_SProductId *product_id, uint dsd_index) |
|
EPR_SRecord * | epr_create_record (EPR_SDatasetId *dataset_id) |
| Creates a new, empty record with a structure compatible with the dataset specified by dataset_id. More...
|
|
EPR_SRecord * | epr_read_record (EPR_SDatasetId *dataset_id, uint record_index, EPR_SRecord *record) |
| Reads a record of a dataset specified by dataset_id. More...
|
|
void | epr_free_record (EPR_SRecord *record) |
| Frees the memory allocated through the given record. More...
|
|
const EPR_SField * | epr_get_field (const EPR_SRecord *record, const char *field_name) |
| Gets a field from the given record. More...
|
|
uint | epr_get_num_fields (const EPR_SRecord *record) |
| Gets the number of fields contained in the given record. More...
|
|
const EPR_SField * | epr_get_field_at (const EPR_SRecord *record, uint field_index) |
| Gets a field at the specified position within the record. More...
|
|
const char * | epr_get_field_unit (const EPR_SField *field) |
| Gets the unit of the field. More...
|
|
const char * | epr_get_field_description (const EPR_SField *field) |
| Gets the description of the field. More...
|
|
uint | epr_get_field_num_elems (const EPR_SField *field) |
| Gets the number of elements of the field. More...
|
|
const char * | epr_get_field_name (const EPR_SField *field) |
| Gets the name of the field. More...
|
|
EPR_EDataTypeId | epr_get_field_type (const EPR_SField *field) |
| Gets the type of the field. More...
|
|
char | epr_get_field_elem_as_char (const EPR_SField *field, uint elem_index) |
|
uchar | epr_get_field_elem_as_uchar (const EPR_SField *field, uint elem_index) |
|
short | epr_get_field_elem_as_short (const EPR_SField *field, uint elem_index) |
|
ushort | epr_get_field_elem_as_ushort (const EPR_SField *field, uint elem_index) |
|
int | epr_get_field_elem_as_int (const EPR_SField *field, uint elem_index) |
|
uint | epr_get_field_elem_as_uint (const EPR_SField *field, uint elem_index) |
|
float | epr_get_field_elem_as_float (const EPR_SField *field, uint elem_index) |
|
double | epr_get_field_elem_as_double (const EPR_SField *field, uint elem_index) |
|
const EPR_STime * | epr_get_field_elem_as_mjd (const EPR_SField *field) |
|
const char * | epr_get_field_elem_as_str (const EPR_SField *field) |
|
const char * | epr_get_field_elems_char (const EPR_SField *field) |
|
const uchar * | epr_get_field_elems_uchar (const EPR_SField *field) |
|
const short * | epr_get_field_elems_short (const EPR_SField *field) |
|
const ushort * | epr_get_field_elems_ushort (const EPR_SField *field) |
|
const int * | epr_get_field_elems_int (const EPR_SField *field) |
|
const uint * | epr_get_field_elems_uint (const EPR_SField *field) |
|
const float * | epr_get_field_elems_float (const EPR_SField *field) |
|
const double * | epr_get_field_elems_double (const EPR_SField *field) |
|
uint | epr_copy_field_elems_as_ints (const EPR_SField *field, int *buffer, uint num_elems) |
|
uint | epr_copy_field_elems_as_uints (const EPR_SField *field, uint *buffer, uint num_elems) |
|
uint | epr_copy_field_elems_as_floats (const EPR_SField *field, float *buffer, uint num_elems) |
|
uint | epr_copy_field_elems_as_doubles (const EPR_SField *field, double *buffer, uint num_elems) |
|
EPR_SRaster * | epr_create_compatible_raster (EPR_SBandId *band_id, uint source_width, uint source_height, uint source_step_x, uint source_step_y) |
| Creates a raster which is compatible with the data type contained in the band identified by band_id. More...
|
|
EPR_SRaster * | epr_create_raster (EPR_EDataTypeId data_type, uint source_width, uint source_height, uint source_step_x, uint source_step_y) |
| Creates a raster of the specified data type. More...
|
|
EPR_SRaster * | epr_create_bitmask_raster (uint source_width, uint source_height, uint source_step_x, uint source_step_y) |
| Creates a raster to be used for reading bitmasks. More...
|
|
int | epr_read_band_raster (EPR_SBandId *band_id, int offset_x, int offset_y, EPR_SRaster *raster) |
| Reads (geo-)physical values of the given band of the specified source-region. More...
|
|
uint | epr_get_raster_elem_size (const EPR_SRaster *raster) |
|
void * | epr_get_raster_elem_addr (const EPR_SRaster *raster, uint offset) |
|
void * | epr_get_raster_pixel_addr (const EPR_SRaster *raster, uint x, uint y) |
|
void * | epr_get_raster_line_addr (const EPR_SRaster *raster, uint y) |
|
uint | epr_get_raster_width (EPR_SRaster *raster) |
| Gets the raster's scene width in pixels. More...
|
|
uint | epr_get_raster_height (EPR_SRaster *raster) |
| Gets the raster's scene height in pixels. More...
|
|
uint | epr_get_num_bands (EPR_SProductId *product_id) |
| Gets the number of all bands contained in a product. More...
|
|
EPR_SBandId * | epr_get_band_id_at (EPR_SProductId *product_id, uint index) |
| Gets the band ID at the specified position within the product. More...
|
|
EPR_SBandId * | epr_get_band_id (EPR_SProductId *product_id, const char *band_name) |
| Gets the band ID corresponding to the specified name. More...
|
|
const char * | epr_get_band_name (EPR_SBandId *band_id) |
| Gets the name of the band for the given band ID. More...
|
|
void | epr_free_raster (EPR_SRaster *raster) |
| Release the memory allocated through a raster. More...
|
|
uint | epr_get_pixel_as_uint (const EPR_SRaster *raster, int x, int y) |
| This group of functions is for getting the values of the elements of a raster (i.e. More...
|
|
int | epr_get_pixel_as_int (const EPR_SRaster *raster, int x, int y) |
|
float | epr_get_pixel_as_float (const EPR_SRaster *raster, int x, int y) |
|
double | epr_get_pixel_as_double (const EPR_SRaster *raster, int x, int y) |
|
int | epr_read_bitmask_raster (EPR_SProductId *product_id, const char *bm_expr, int offset_x, int offset_y, EPR_SRaster *raster) |
| Calculates a bit-mask, composed of flags of the given product and combined as described in the given bit-mask expression, for the a certain dimension and sub-sampling as defined in the given raster. More...
|
|
uint | epr_get_data_type_size (EPR_EDataTypeId data_type_id) |
| Gets the size in bytes for an element of the given data type. More...
|
|
const char * | epr_data_type_id_to_str (EPR_EDataTypeId data_type_id) |
| Gets the 'C' data type string for the given data type. More...
|
|