Commit f07a9a12 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

renamed grbReadRecord to grb_read_record

parent 10509918
......@@ -112,7 +112,7 @@ int grbUnzipRecord(void *gribbuffer, size_t *gribsize)
}
void grbReadRecord(stream_t * streamptr, double *data, int *nmiss)
void grb_read_record(stream_t * streamptr, int memtype, void *data, int *nmiss)
{
int filetype = streamptr->filetype;
......@@ -141,7 +141,7 @@ void grbReadRecord(stream_t * streamptr, double *data, int *nmiss)
streamptr->tsteps[tsID].records[recID].zip = grbUnzipRecord(gribbuffer, &recsize);
grbDecode(filetype, MEMTYPE_DOUBLE, gribbuffer, (int)recsize, data, gridsize, streamptr->unreduced, nmiss, missval, vlistID, varID);
grbDecode(filetype, memtype, gribbuffer, (int)recsize, data, gridsize, streamptr->unreduced, nmiss, missval, vlistID, varID);
}
......
......@@ -8,7 +8,7 @@ int grbInqTimestep(stream_t *streamptr, int tsID);
int grbInqRecord(stream_t *streamptr, int *varID, int *levelID);
void grbDefRecord(stream_t *streamptr);
void grbReadRecord(stream_t *streamptr, double *data, int *nmiss);
void grb_read_record(stream_t *streamptr, int memtype, void *data, int *nmiss);
void grb_write_record(stream_t *streamptr, int memtype, const void *data, int nmiss);
void grbCopyRecord(stream_t *streamptr2, stream_t *streamptr1);
......
......@@ -271,8 +271,7 @@ void stream_read_record(int streamID, int memtype, void *data, int *nmiss)
#if defined (HAVE_LIBGRIB)
case FILETYPE_GRB:
case FILETYPE_GRB2:
if ( memtype == MEMTYPE_FLOAT ) Error("grbReadRecord not implemented for memtype float!");
grbReadRecord(streamptr, data, nmiss);
grb_read_record(streamptr, memtype, data, nmiss);
break;
#endif
#if defined (HAVE_LIBSERVICE)
......
Supports Markdown
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