ocssw
V2022
|
Modules | |
Bitmask | |
Utility Functions | |
Functions | |
epr_uint | epr_get_pixel_as_uint (const EPR_SRaster *raster, int x, int y) |
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) |
Detailed Description
Function Documentation
◆ epr_get_pixel_as_double()
double epr_get_pixel_as_double | ( | const EPR_SRaster * | raster, |
int | x, | ||
int | y | ||
) |
Definition at line 815 of file epr_bitmask.c.
◆ epr_get_pixel_as_float()
float epr_get_pixel_as_float | ( | const EPR_SRaster * | raster, |
int | x, | ||
int | y | ||
) |
Definition at line 789 of file epr_bitmask.c.
◆ epr_get_pixel_as_int()
int epr_get_pixel_as_int | ( | const EPR_SRaster * | raster, |
int | x, | ||
int | y | ||
) |
Definition at line 762 of file epr_bitmask.c.
◆ epr_get_pixel_as_uint()
This group of functions is for getting the values of the elements of a raster (i.e. pixel) in a type-safe way.
- Parameters
-
raster the raster which contains the pixel, must not be NULL
x the (zero-based) X co-ordinate of the pixel y the (zero-based) Y co-ordinate of the pixel
- Returns
- the typed value at the given co-ordinate.
Definition at line 736 of file epr_bitmask.c.
Variable Documentation
◆ band_ids
EPR_SPtrArray* band_ids |
◆ band_name
char* band_name |
◆ bit_mask
◆ bm_expr
char* bm_expr |
◆ buffer
void* buffer |
◆ data_type [1/2]
EPR_EDataTypeId data_type |
◆ data_type [2/2]
EPR_EDataTypeId data_type |
◆ dataset_id
◆ dataset_ids
EPR_SPtrArray* dataset_ids |
◆ dataset_name
char* dataset_name |
◆ dataset_ref
EPR_SDatasetRef dataset_ref |
◆ days
◆ description [1/3]
char* description |
◆ description [2/3]
◆ description [3/3]
char* description |
◆ ds_name
◆ ds_offset
epr_uint ds_offset |
◆ ds_size
epr_uint ds_size |
◆ ds_type
◆ dsd
const EPR_SDSD* dsd |
◆ dsd_array
EPR_SPtrArray* dsd_array |
◆ dsd_name
char* dsd_name |
◆ dsr_size
epr_uint dsr_size |
◆ elem_index
◆ elem_size
epr_uint elem_size |
◆ elems
void* elems |
The elements of this field.
In order to use the data, this member must be casted to one of the following array data types:
unsigned char*
- array of unsigned 8-bit integer elementschar*
- array of signed 8-bit integer fieldsunsigned short*
- array of unsigned 16-bit integer elementsshort*
- array of signed 16-bit integer elementsunsigned int*
- array of unsigned 32-bit integer elementsint*
- array of signed 32-bit integer elementsfloat*
- array of signed 32-bit floating point elementsdouble*
- array of signed 64-bit floating point elementsEPR_STime*
- array of MJD elements
Dedicated access routine are available The element type is given by info->data_type_id
and the array length by info->num_elems
.
◆ field_index
◆ fields
EPR_SField** fields |
◆ file_path
◆ filename
char* filename |
◆ flag_coding
EPR_SPtrArray* flag_coding |
◆ id_string
char id_string[EPR_PRODUCT_ID_STRLEN+1] |
The product identifier string obtained from the MPH parameter 'PRODUCT'.
The first 10 characters of this string identify the the product type, e.g. "MER_1P__FR" for a MERIS Level 1b full resolution product. The rest of the string decodes product instance properties.
◆ index
◆ info [1/2]
EPR_SRecordInfo* info |
◆ info [2/2]
EPR_SFieldInfo* info |
◆ istream
FILE* istream |
◆ lines_mirrored
epr_boolean lines_mirrored |
◆ magic [1/8]
EPR_Magic magic |
◆ magic [2/8]
EPR_Magic magic |
◆ magic [3/8]
EPR_Magic magic |
◆ magic [4/8]
EPR_Magic magic |
◆ magic [5/8]
EPR_Magic magic |
◆ magic [6/8]
EPR_Magic magic |
◆ magic [7/8]
EPR_Magic magic |
◆ magic [8/8]
EPR_Magic magic |
◆ meris_iodd_version
int meris_iodd_version |
◆ microseconds
◆ mph_record
EPR_SRecord* mph_record |
◆ name
◆ num_dsr
epr_uint num_dsr |
◆ num_fields
epr_uint num_fields |
◆ param_table
EPR_SPtrArray* param_table |
◆ product_id [1/2]
EPR_SProductId* product_id |
◆ product_id [2/2]
EPR_SProductId* product_id |
◆ raster_height
epr_uint raster_height |
◆ raster_width
epr_uint raster_width |
◆ record_descriptor
const struct RecordDescriptor* record_descriptor |
◆ record_info
EPR_SRecordInfo* record_info |
◆ record_info_cache
EPR_SPtrArray* record_info_cache |
Cache for record infos. Contains all record infos read from the database for this file so far.
The reason for caching record infos on a per-file-base is that a some record infos instances can contain file related content such as the number of pixels in a measurecment dataset record (MDSR).
◆ sample_model
EPR_ESampleModel sample_model |
The sample model operation applied to the source dataset for getting the correct samples from the MDS (for example MERIS L2). Possible values are:
*
--> no operation (direct copy)1OF2
--> first byte of 2-byte interleaved MDS2OF2
--> second byte of 2-byte interleaved MDS0123
--> combine 3-bytes interleaved to 4-byte integer
◆ scaling_factor
float scaling_factor |
The scaling factor. Possible values are:
*
--> no factor provided (implies scaling_method=*)const
--> a floating point constantGADS.field[.field2]
--> value is provided in global annotation dataset with nameGADS
in fieldfield
. Optionally a second element index for multiple-element fields can be given too
◆ scaling_method
EPR_EScalingMethod scaling_method |
The scaling method which must be applied to the raw source data in order to get the 'real' pixel values in geo-physical units. Possible values are:
*
--> no scaling appliedLinear_Scale
--> linear scaling applied: y = offset + scale * xLog_Scale
--> logarithmic scaling applied: y = log10(offset + scale * x)
◆ scaling_offset
float scaling_offset |
The scaling offset. Possible values are:
*
--> no offset provided (implies scaling_method=*)const
--> a floating point constantGADS.field[.field2]
--> value is provided in global annotation dataset with nameGADS
in fieldfield
. Optionally a second element index for multiple-element fields can be given too
◆ scene_height
epr_uint scene_height |
◆ scene_width
epr_uint scene_width |
◆ seconds
◆ source_height
◆ source_step_x
epr_uint source_step_x |
◆ source_step_y
epr_uint source_step_y |
◆ source_width
◆ spectr_band_index
int spectr_band_index |
◆ sph_record
EPR_SRecord* sph_record |
◆ tot_size
epr_uint tot_size |