OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Collaboration diagram for Dataset Access:

Functions

epr_uint epr_get_num_datasets (EPR_SProductId *product_id)
 
EPR_SDatasetId * epr_get_dataset_id_at (EPR_SProductId *product_id, epr_uint index)
 
EPR_SDatasetId * epr_get_dataset_id (EPR_SProductId *product_id, const char *dataset_name)
 
const char * epr_get_dataset_name (EPR_SDatasetId *dataset_id)
 
const char * epr_get_dsd_name (const EPR_SDatasetId *dataset_id)
 
EPR_SRecord * epr_get_mph (const EPR_SProductId *product_id)
 
EPR_SRecord * epr_get_sph (const EPR_SProductId *product_id)
 
const EPR_SDSD * epr_get_dsd (const EPR_SDatasetId *dataset_id)
 
epr_uint epr_get_num_records (const EPR_SDatasetId *dataset_id)
 
epr_uint epr_get_num_dsds (const EPR_SProductId *product_id)
 
EPR_SDSD * epr_get_dsd_at (const EPR_SProductId *product_id, epr_uint dsd_index)
 

Detailed Description

Function Documentation

◆ epr_get_dataset_id()

EPR_SDatasetId* epr_get_dataset_id ( EPR_SProductId *  product_id,
const char *  dataset_name 
)

Gets the dataset_id coresponding to the specified dataset name.

Parameters
product_idthe product identifier, must not be NULL
dataset_namethe dataset name, must not be NULL
Returns
the requested dataset_id

Definition at line 96 of file epr_dsd.c.

◆ epr_get_dataset_id_at()

EPR_SDatasetId* epr_get_dataset_id_at ( EPR_SProductId *  product_id,
epr_uint  index 
)

Gets the dataset_id at the specified position within the product.

Parameters
product_idthe product identifier, must not be NULL
indexthe index identifying the position of the dataset, starting with 0, must not be negative
Returns
the requested dataset_id

Definition at line 75 of file epr_dsd.c.

◆ epr_get_dataset_name()

const char* epr_get_dataset_name ( EPR_SDatasetId *  dataset_id)

Gets the name of the dataset for the given dataset ID.

Parameters
dataset_idthe dataset identifier, must not be NULL
Returns
the name of the dataset.

Definition at line 172 of file epr_dataset.c.

◆ epr_get_dsd()

const EPR_SDSD* epr_get_dsd ( const EPR_SDatasetId *  dataset_id)

Gets the dataset descriptor (DSD) for the dataset specified by dataset_id.

Parameters
dataset_idthe dataset identifier, must not be NULL
Returns
the pointer at the dsd or NULL if an error occured.

Definition at line 196 of file epr_dataset.c.

◆ epr_get_dsd_at()

EPR_SDSD* epr_get_dsd_at ( const EPR_SProductId *  product_id,
epr_uint  dsd_index 
)

Definition at line 615 of file epr_dsd.c.

◆ epr_get_dsd_name()

const char* epr_get_dsd_name ( const EPR_SDatasetId *  dataset_id)

Gets the name of the dsd for the given dataset ID.

Parameters
dataset_idthe dataset identifier, must not be NULL
Returns
the name of the dsd.

Definition at line 208 of file epr_dataset.c.

◆ epr_get_mph()

EPR_SRecord* epr_get_mph ( const EPR_SProductId *  product_id)

Gets the MPH record from the given product_id.

Parameters
product_idthe product identifier, must not be NULL
Returns
the MPH record or NULL if an error occured.

Definition at line 399 of file epr_product.c.

◆ epr_get_num_datasets()

epr_uint epr_get_num_datasets ( EPR_SProductId *  product_id)

Gets the number off all datasets contained in a product.

Parameters
product_idthe product identifier, must not be NULL
Returns
the number off all dataset

Definition at line 63 of file epr_dsd.c.

◆ epr_get_num_dsds()

epr_uint epr_get_num_dsds ( const EPR_SProductId *  product_id)

Definition at line 610 of file epr_dsd.c.

◆ epr_get_num_records()

epr_uint epr_get_num_records ( const EPR_SDatasetId *  dataset_id)

Gets the number of records of the dataset specified by dataset_id.

Parameters
dataset_idthe dataset identifier, must not be NULL
Returns
the number of records or 0 if an error occured.

Definition at line 184 of file epr_dataset.c.

◆ epr_get_sph()

EPR_SRecord* epr_get_sph ( const EPR_SProductId *  product_id)

Gets the SPH record from the given product_id.

Parameters
product_idthe product identifier, must not be NULL
Returns
the SPH record or NULL if an error occured.

Definition at line 388 of file epr_product.c.