#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "epr_api.h"
#include "epr_core.h"
#include "epr_string.h"
#include "epr_ptrarray.h"
#include "epr_swap.h"
#include "epr_field.h"
#include "epr_record.h"
#include "epr_param.h"
#include "epr_dsd.h"
#include "epr_msph.h"
#include "epr_band.h"
#include "epr_bitmask.h"
#include "epr_dddb.h"
Go to the source code of this file.
◆ EPR_LENGTH_DS_FILENAME_FIELD
#define EPR_LENGTH_DS_FILENAME_FIELD 74 |
◆ EPR_LENGTH_DS_NAME_FIELD
#define EPR_LENGTH_DS_NAME_FIELD 39 |
◆ EPR_LENGTH_DS_NAME_IDENTIFIER
#define EPR_LENGTH_DS_NAME_IDENTIFIER 9 |
◆ EPR_LENGTH_DS_OFFSEN_FIELD
#define EPR_LENGTH_DS_OFFSEN_FIELD 39 |
◆ EPR_LENGTH_DS_OFFSEN_IDENTIFIER
#define EPR_LENGTH_DS_OFFSEN_IDENTIFIER 11 |
◆ EPR_LENGTH_DS_SIZE_FIELD
#define EPR_LENGTH_DS_SIZE_FIELD 37 |
◆ EPR_LENGTH_DS_SIZE_IDENTIFIER
#define EPR_LENGTH_DS_SIZE_IDENTIFIER 9 |
◆ EPR_LENGTH_DS_TYPE_FIELD
#define EPR_LENGTH_DS_TYPE_FIELD 10 |
◆ EPR_LENGTH_DS_TYPE_IDENTIFIER
#define EPR_LENGTH_DS_TYPE_IDENTIFIER 8 |
◆ EPR_LENGTH_DSR_SIZE_FIELD
#define EPR_LENGTH_DSR_SIZE_FIELD 28 |
◆ EPR_LENGTH_DSR_SIZE_IDENTIFIER
#define EPR_LENGTH_DSR_SIZE_IDENTIFIER 10 |
◆ EPR_LENGTH_EMPTY_FIELD
#define EPR_LENGTH_EMPTY_FIELD 33 |
◆ EPR_LENGTH_FILENAME_IDENTIFIER
#define EPR_LENGTH_FILENAME_IDENTIFIER 10 |
◆ EPR_LENGTH_NUM_DSD_FIELD
#define EPR_LENGTH_NUM_DSD_FIELD 20 |
◆ EPR_LENGTH_NUM_DSR_FIELD
#define EPR_LENGTH_NUM_DSR_FIELD 20 |
◆ EPR_LENGTH_NUM_DSR_IDENTIFIER
#define EPR_LENGTH_NUM_DSR_IDENTIFIER 9 |
◆ epr_create_dsd()
EPR_SDSD* epr_create_dsd |
( |
int |
dsd_index | ) |
|
Opens dsd for a dataset description, obtained from an ENVISAT product file.
- Parameters
-
dsd_index | the number of dsd (zero-based), emrty dsd inclusive |
- Returns
- the the pointer at the dsd information.
Definition at line 48 of file epr_dsd.c.
◆ epr_detect_meris_iodd_version()
int epr_detect_meris_iodd_version |
( |
EPR_SProductId * |
product_id | ) |
|
◆ epr_find_first_dsd()
Finds the first dataset description from an ENVISAT product file.
- Parameters
-
envisat_source_file | the handle of the given ENVISAT product file, must not be NULL |
sph_length | [bytes] the length of SPH part from the given ENVISAT product file, must not be NULL |
- Returns
- the offset to first searched for dsd or
0
if not found.
Definition at line 433 of file epr_dsd.c.
◆ epr_free_dsd()
void epr_free_dsd |
( |
EPR_SDSD * |
dsd | ) |
|
Release the memory allocated through a dataset ID.
- Parameters
-
dsd | the dataset description identifier, if NULL the function immediately returns zero. |
- Returns
- zero for success, an error code otherwise
Definition at line 175 of file epr_dsd.c.
◆ epr_read_all_dsds()
EPR_SPtrArray* epr_read_all_dsds |
( |
EPR_SProductId * |
product_id | ) |
|
Reads all dataset descriptions from an ENVISAT product file.
- Parameters
-
product_id | the file identifier, if NULL the function immediately returns NULL . |
- Returns
- an array of dataset descriptions or
NULL
if an error occured.
Definition at line 469 of file epr_dsd.c.
◆ epr_read_each_dsd()
EPR_SDSD* epr_read_each_dsd |
( |
FILE * |
envisat_source_file, |
|
|
int * |
pos |
|
) |
| |
Reads a dataset description from an ENVISAT product file.
- Parameters
-
envisat_source_file | the handle of the given ENVISAT product file, must not be NULL |
pos | number of the dataset description in ENVISAT product file, |
- Returns
- a new dataset description or
NULL
if an error occured.
Definition at line 226 of file epr_dsd.c.