OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
GEO_write_geospecific_metadata.c File Reference
#include "GEO_output.h"
#include "GEO_product.h"
#include "PGS_MODIS_35251.h"
#include "granule_extract_metadata.h"
Include dependency graph for GEO_write_geospecific_metadata.c:

Go to the source code of this file.

Functions

PGSt_SMF_status GEO_write_geospecific_metadata (MODFILE *const geo_file, l1a_metadata_struct const *const granule_metadata, int const number_of_scans, GEO_param_struct const *const geo_parameter, qa_metadata_struct const *const qa_metadata, utcpole_metadata_struct const *const utcpole_metadata)
 

Function Documentation

◆ GEO_write_geospecific_metadata()

PGSt_SMF_status GEO_write_geospecific_metadata ( MODFILE *const  geo_file,
l1a_metadata_struct const *const  granule_metadata,
int const  number_of_scans,
GEO_param_struct const *const  geo_parameter,
qa_metadata_struct const *const  qa_metadata,
utcpole_metadata_struct const *const  utcpole_metadata 
)

C**************************************************************************** !Description:
Routine in Output group of the Level-1A geolocation software to write geolocation specific granule metadata to the output product. These metadata are stored as individual global HDF attributes using MAPI calls.

Warning messages will be recorded (to the SMF) if metadata inputs are missing, but the routine will not abort, which may result in geolocation products with incomplete granule metadata.

!Input Parameters: geo_file the MAPI structure for the product granule_metadata l1a specific granule metadata number_of_scans the number of scans in the granule geo_parameter program parameters read from (or derived directly from) the geolocation parameter file qa_metadata Quality metadata utcpole_metadata metadata identifying the utcpole.dat file

!Output Parameters: None

Return Values: MODIS_E_GEO If putMODISfileinfo() fails. MODIS_E_BAD_INPUT_ARG If geo_file is null. MODIS_E_MISSING_OUTPUT If an optional data source was unavailable. PGS_S_SUCCESS Otherwise

Externally Defined: BAD_PCKTS "GEO_product.h" CUM_GFLAGS "GEO_product.h" DATATYPELENMAX "mapi.h" DISCRD_PKTS "GEO_product.h" EA_SOURCE "GEO_product.h" EA_SOURCE_SELECT_LUN "GEO_geo.h" FROFF_FRAME_2 "GEO_product.h" FROFF_FRAME_4 "GEO_product.h" FROFF_SCAN_20 "GEO_product.h" FROFF_SCAN_40 "GEO_product.h" GEO_EST_RMS_ERROR "GEO_product.h" PARVERS "GEO_product.h" INCOMP_SCANS "GEO_product.h" I32 "mapi.h" MAPIOK "mapi.h" MAX_EFRM "GEO_product.h" MAX_SFRM "GEO_product.h" MAX_SV_FRM "GEO_product.h" MISS_PCKTS "GEO_product.h" MODIS_E_BAD_INPUT_ARG "PGS_MODIS_35251.h" MODIS_E_GEO "PGS_MODIS_35251.h" MODIS_E_MISSING_OUTPUT "PGS_MODIS_35251.h" NUMSCN "GEO_product.h" PGSd_PC_VALUE_LENGTH_MAX "PGS_PC.h" POLAR_MOTION "GEO_product.h" R32 "mapi.h" TERRAIN_CORRECT_LUN "GEO_geo.h" TERRAIN_CORRECTION "GEO_product.h" TXT "mapi.h" UI32 "mapi.h" UTCPOLE_FH "GEO_product.h"

Called by: GEO_write_granule_metadata

Routines Called: putMODISfileinfo "mapi.h" modsmf "smfio.h" PGS_PC_GetConfigData "PGS_PC.h"

!Revision History:

Log
GEO_write_geospecific_metadata.c,v

Revision 6.4 2011/02/14 21:59:46 kuyper Removed cast that is no longer needed with current version of M-API toolkit.

Revision 6.3 2010/05/28 21:34:38 kuyper Resolved Bug 2249 by writing value of terrain correction flag as a file attribute. Helped resolve Bug 2470 by dropping a parameter. Changed to return status code. Improved const-safety.

Revision 6.3 2010/05/28 21:20:17 kuyper Resolved Bug 2249 by writing value of terrain correction flag as a file attribute. Helped resolve Bug 2470 by dropping a parameter. Improved const-safety.

Revision 6.2 2009/05/30 22:53:03 kuyper Corrected metadata name, case number, and message contents.

Revision 6.1 2009/05/28 22:59:01 kuyper Added FractionalOffset file attributes. Corrected prolog. Improved error messages.

James Kuyper Jr. James.nosp@m..R.K.nosp@m.uyper.nosp@m.@nas.nosp@m.a.gov

Revision 5.1 2004/09/13 18:06:50 vlin

  1. input parameter maneuver_list added.
  2. maneuver_list->revision written as a file attribute to output file.

Revision 4.2 2003/10/27 18:49:23 vlin Size of message buffer was changed.

Revision 4.1 2003/02/21 22:54:51 kuyper Corrected to use void* pointers with p format code.

Requirements: PR03-F-4.1-1 PR03-F-4.1-1.6 PR03-F-4.1-2 PR03-I-1 PR03-I-2 PR03-S-1

!Team-unique Header:

This software is developed by the MODIS Science Data Support
Team for the National Aeronautics and Space Administration,
Goddard Space Flight Center, under contract NAS5-32373.

References and Credits None

Design Notes

!END****************************************************************************

Definition at line 6 of file GEO_write_geospecific_metadata.c.