OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
GetStationInfo.c File Reference
#include <GetStationInfo.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <passthebuck.h>
Include dependency graph for GetStationInfo.c:

Go to the source code of this file.

Macros

#define CALLOC(ptr, typ, num)
 
#define ENVIRONMENT_VAR   "HRPT_STATION_IDENTIFICATION_FILE"
 
#define CODE_STR   "code"
 
#define DATA_CENTER_STR   "data center"
 
#define STATION_NAME_STR   "station name"
 
#define STATION_LAT_STR   "station latitude"
 
#define STATION_LON_STR   "station longitude"
 

Functions

int GetStationInfo (char *stationInfoFile, StationInfo *stationInfo)
 

Macro Definition Documentation

◆ CALLOC

#define CALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)calloc((num) , sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
} \
}

Definition at line 39 of file GetStationInfo.c.

◆ CODE_STR

#define CODE_STR   "code"

Definition at line 49 of file GetStationInfo.c.

◆ DATA_CENTER_STR

#define DATA_CENTER_STR   "data center"

Definition at line 50 of file GetStationInfo.c.

◆ ENVIRONMENT_VAR

#define ENVIRONMENT_VAR   "HRPT_STATION_IDENTIFICATION_FILE"

Definition at line 48 of file GetStationInfo.c.

◆ STATION_LAT_STR

#define STATION_LAT_STR   "station latitude"

Definition at line 52 of file GetStationInfo.c.

◆ STATION_LON_STR

#define STATION_LON_STR   "station longitude"

Definition at line 53 of file GetStationInfo.c.

◆ STATION_NAME_STR

#define STATION_NAME_STR   "station name"

Definition at line 51 of file GetStationInfo.c.

Function Documentation

◆ GetStationInfo()

int GetStationInfo ( char *  stationInfoFile,
StationInfo stationInfo 
)

Definition at line 55 of file GetStationInfo.c.

#define NULL
Definition: decode_rs.h:63
#define MEMORY_ALLOCATION_ERROR
Definition: passthebuck.h:6