Commit 2a9fdf39 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

GRIB_API output does not work (bug fix)

parent c00ac8e1
2014-12-04 Uwe Schulzweida
* Version 1.6.6.1 released
2014-12-01 Uwe Schulzweida
* GRIB_API output does not work (bug fix)
2014-11-27 Uwe Schulzweida
* Version 1.6.6 released
......
#ifndef _GRIBAPI_H
#define _GRIBAPI_H
#ifdef HAVE_LIBGRIBAPI
#ifdef HAVE_LIBGRIB_API
# include "error.h"
# include <grib_api.h>
#endif
......@@ -50,7 +50,7 @@
const char *gribapiLibraryVersionString(void);
void gribContainersNew(stream_t * streamptr);
void gribContainersDelete(stream_t * streamptr);
#ifdef HAVE_LIBGRIBAPI
#ifdef HAVE_LIBGRIB_API
static inline void *gribHandleNew(int editionNumber)
{
void *gh =
......
......@@ -3092,7 +3092,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
#ifdef HAVE_LIBGRIB_API
size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisID,
int vdate, int vtime, int tsteptype, int numavg,
int vdate, int vtime, int tsteptype, int numavg,
long datasize, const double *data, int nmiss, unsigned char **gribbuffer, size_t *gribbuffersize,
int comptype, void *gribContainer)
{
......@@ -3124,7 +3124,6 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
#else
gh = gc->gribHandle;
#endif
GRIB_CHECK(grib_get_long(gh, "editionNumber", &editionNumber), 0);
if ( editionNumber == 2 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment