OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_product.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_record.h"
#include "epr_dataset.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_product.c:

Go to the source code of this file.

Functions

epr_uint epr_compute_scene_width (const EPR_SProductId *product_id)
 
epr_uint epr_compute_scene_height (const EPR_SProductId *product_id)
 
EPR_SProductId * epr_open_product (const char *product_file_path)
 
int epr_close_product (EPR_SProductId *product_id)
 
void epr_free_product_id (EPR_SProductId *product_id)
 
epr_uint epr_get_scene_width (const EPR_SProductId *product_id)
 
epr_uint epr_get_scene_height (const EPR_SProductId *product_id)
 
EPR_SRecord * epr_get_sph (const EPR_SProductId *product_id)
 
EPR_SRecord * epr_get_mph (const EPR_SProductId *product_id)
 

Function Documentation

◆ epr_compute_scene_height()

epr_uint epr_compute_scene_height ( const EPR_SProductId *  product_id)

Computes the scene height in pixel of a product. The scene height is the minimum number of records in all measurement datasets.

Parameters
product_idthe product identifier, must not be NULL
Returns
height pixel number, or 0 if an error occured.

Definition at line 457 of file epr_product.c.

◆ epr_compute_scene_width()

epr_uint epr_compute_scene_width ( const EPR_SProductId *  product_id)

Gets the scene width in pixel.

Parameters
product_idthe product identifier, must not be NULL
Returns
width pixel number, or 0 if an error occured.

Definition at line 418 of file epr_product.c.

◆ epr_free_product_id()

void epr_free_product_id ( EPR_SProductId *  product_id)

Destructor for an EPR_SProductId structure instance.

Parameters
product_idthe product file identifier to be destructed

Definition at line 269 of file epr_product.c.