OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
GEO_write_ECS_metadata.c File Reference
#include "SDST_TK.h"
#include "GEO_main.h"
#include "GEO_output.h"
#include "GEO_product.h"
#include "GEO_geo.h"
#include "L1a_data.h"
#include "GEO_parameters.h"
#include "PGS_MODIS_35251.h"
Include dependency graph for GEO_write_ECS_metadata.c:

Go to the source code of this file.

Macros

#define NUM_GRING_PTS   4
 
#define NUM_IVALS   (NUM_GRING_PTS + 3)
 
#define NUM_DVALS   (2 * NUM_GRING_PTS + 5)
 
#define NUM_STRVALS   (36 + INPUTPOINTERS)
 
#define INVENTORY_METADATA   1
 
#define ARCHIVED_METADATA   2
 
#define min(x, y)   ((x) < (y) ? (x) : (y))
 
#define STROBJ(name, handle, base, value)
 
#define INTOBJ(name, handle, base, value)
 
#define DBLOBJ(name, handle, base, value)
 

Functions

PGSt_SMF_status GEO_write_ECS_metadata (MODFILE *const geo_file, ECS_metadata_struct *const ECS_metadata, EPH_metadata_struct *const EPH_metadata, GEO_bcoord_struct *const bounding_coords, GEO_GRing_struct *const GRing_points, pointer_metadata_struct *const pointer_metadata, qa_metadata_struct *const qa_metadata, char *const sci_state, char *const sci_abnorm)
 

Macro Definition Documentation

◆ ARCHIVED_METADATA

#define ARCHIVED_METADATA   2

◆ DBLOBJ

#define DBLOBJ (   name,
  handle,
  base,
  value 
)
Value:
{ MCF_object[obj].attrNameStr=name; \
MCF_object[obj].metadata_group = handle; \
if(base!=NULL){ \
dvals[dval] = (PGSt_double)(value); \
MCF_object[obj++].attrValue = &dvals[dval++]; \
} else MCF_object[obj++].attrValue = NULL;}

◆ INTOBJ

#define INTOBJ (   name,
  handle,
  base,
  value 
)
Value:
{ MCF_object[obj].attrNameStr=name; \
MCF_object[obj].metadata_group = handle; \
if(base!=NULL){ \
ivals[ival] = (PGSt_integer)(value); \
MCF_object[obj++].attrValue = &ivals[ival++]; \
} else MCF_object[obj++].attrValue = NULL;}

◆ INVENTORY_METADATA

#define INVENTORY_METADATA   1

◆ min

#define min (   x,
 
)    ((x) < (y) ? (x) : (y))

◆ NUM_DVALS

#define NUM_DVALS   (2 * NUM_GRING_PTS + 5)

◆ NUM_GRING_PTS

#define NUM_GRING_PTS   4

◆ NUM_IVALS

#define NUM_IVALS   (NUM_GRING_PTS + 3)

◆ NUM_STRVALS

#define NUM_STRVALS   (36 + INPUTPOINTERS)

◆ STROBJ

#define STROBJ (   name,
  handle,
  base,
  value 
)
Value:
{ MCF_object[obj].attrNameStr=name; \
MCF_object[obj].metadata_group = handle; \
if(base!=NULL){ \
strings[str] = value; MCF_object[obj++].attrValue = &strings[str++]; \
} else MCF_object[obj++].attrValue = NULL;}

Function Documentation

◆ GEO_write_ECS_metadata()

PGSt_SMF_status GEO_write_ECS_metadata ( MODFILE *const  geo_file,
ECS_metadata_struct *const  ECS_metadata,
EPH_metadata_struct *const  EPH_metadata,
GEO_bcoord_struct *const  bounding_coords,
GEO_GRing_struct *const  GRing_points,
pointer_metadata_struct *const  pointer_metadata,
qa_metadata_struct *const  qa_metadata,
char *const  sci_state,
char *const  sci_abnorm 
)

Definition at line 10 of file GEO_write_ECS_metadata.c.

int32 value
Definition: Granule.c:1235
#define NULL
Definition: decode_rs.h:63
const char * str
Definition: l1c_msi.cpp:35