OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_dataset.c File Reference
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.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_dataset.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"
Include dependency graph for epr_dataset.c:

Go to the source code of this file.

Functions

EPR_SDatasetId * epr_create_dataset_id (EPR_SProductId *product_id, const EPR_SDSD *dsd, const char *dataset_name, const struct RecordDescriptor *record_descriptor, const char *dsd_name, const char *description)
 
void epr_free_dataset_id (EPR_SDatasetId *dataset_id)
 
EPR_SPtrArray * epr_create_dataset_ids (EPR_SProductId *product_id)
 
const char * epr_get_dataset_name (EPR_SDatasetId *dataset_id)
 
epr_uint epr_get_num_records (const EPR_SDatasetId *dataset_id)
 
const EPR_SDSD * epr_get_dsd (const EPR_SDatasetId *dataset_id)
 
const char * epr_get_dsd_name (const EPR_SDatasetId *dataset_id)
 
epr_uint epr_get_dataset_offset (EPR_SDatasetId *dataset_id)
 
EPR_SRecord * epr_create_record (EPR_SDatasetId *dataset_id)
 
EPR_SRecord * epr_read_record (EPR_SDatasetId *dataset_id, epr_uint record_index, EPR_SRecord *record)
 

Function Documentation

◆ epr_create_dataset_id()

EPR_SDatasetId* epr_create_dataset_id ( EPR_SProductId *  product_id,
const EPR_SDSD *  dsd,
const char *  dataset_name,
const struct RecordDescriptor record_info_ref,
const char *  dsd_name,
const char *  description 
)
Todo:
add docu here...

Definition at line 42 of file epr_dataset.c.

◆ epr_create_dataset_ids()

EPR_SPtrArray* epr_create_dataset_ids ( EPR_SProductId *  product_id)

Creates an array of dataset_id for the given ENVISAT product

Parameters
product_idthe the product file identifier
Returns
the instance of the array

Definition at line 102 of file epr_dataset.c.

◆ epr_free_dataset_id()

void epr_free_dataset_id ( EPR_SDatasetId *  dataset_id)

Release the memory allocated through a dataset ID.

Parameters
product_idthe file identifier, if NULL the function immediately returns zero.
Returns
zero for success, an error code otherwise

Definition at line 76 of file epr_dataset.c.

◆ epr_get_dataset_offset()

epr_uint epr_get_dataset_offset ( EPR_SDatasetId *  dataset_id)

Definition at line 220 of file epr_dataset.c.