OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
readgrib.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <timeutils.h>
Include dependency graph for readgrib.c:

Go to the source code of this file.

Functions

int readgrib (char *file, int npix, int nlin, float *data, int *year, int *month, int *day, int *hour)
 
int readgrib2 (char *file, int npix, int nlin, int rgmode, float *data)
 
int grib2_t (char *grib2_t_str, int *year, int *doy, int *hour, int *npix, int *nlin, int *h_fcst)
 
int readgrib2_3d (char *file, char *grib2_t_str, int npix, int nlin, float *data, int nprfl, int *year, int *month, int *day, int *hour)
 
int rd_grib_grid (FILE *stream, int npix, int nlin, float *data)
 
int rd_grib_pds (FILE *stream, int *year, int *month, int *day, int *hour)
 
void rpt_err_typ (int rd_count, int expect_ct, FILE *stream)
 

Function Documentation

◆ grib2_t()

int grib2_t ( char *  grib2_t_str,
int *  year,
int *  doy,
int *  hour,
int *  npix,
int *  nlin,
int *  h_fcst 
)

Definition at line 158 of file readgrib.c.

◆ rd_grib_grid()

int rd_grib_grid ( FILE *  stream,
int  npix,
int  nlin,
float *  data 
)

Definition at line 345 of file readgrib.c.

◆ rd_grib_pds()

int rd_grib_pds ( FILE *  stream,
int *  year,
int *  month,
int *  day,
int *  hour 
)

Definition at line 414 of file readgrib.c.

◆ readgrib()

int readgrib ( char *  file,
int  npix,
int  nlin,
float *  data,
int *  year,
int *  month,
int *  day,
int *  hour 
)

Definition at line 6 of file readgrib.c.

◆ readgrib2()

int readgrib2 ( char *  file,
int  npix,
int  nlin,
int  rgmode,
float *  data 
)

Definition at line 77 of file readgrib.c.

◆ readgrib2_3d()

int readgrib2_3d ( char *  file,
char *  grib2_t_str,
int  npix,
int  nlin,
float *  data,
int  nprfl,
int *  year,
int *  month,
int *  day,
int *  hour 
)

Definition at line 267 of file readgrib.c.

◆ rpt_err_typ()

void rpt_err_typ ( int  rd_count,
int  expect_ct,
FILE *  stream 
)

Definition at line 514 of file readgrib.c.