mirror of https://github.com/ecmwf/eccodes.git
grib to netcdf: should not handle fields for different levtypes
This commit is contained in:
parent
58baf8d7ab
commit
8e4e6456c9
|
@ -34,7 +34,7 @@ if [ $skip_test -eq 1 ]; then
|
|||
fi
|
||||
echo "NetCDF was enabled."
|
||||
|
||||
grib_files="tigge_pf_ecmwf.grib2 \
|
||||
grib_files="\
|
||||
set.grib2 set.grib1 \
|
||||
regular_latlon_surface.grib2 \
|
||||
regular_latlon_surface.grib1 \
|
||||
|
|
|
@ -1577,7 +1577,7 @@ static void cube_indexes(const hypercube *h, request *r, int *indexes, int size)
|
|||
|
||||
if(size < c)
|
||||
{
|
||||
grib_context_log(ctx, GRIB_LOG_ERROR, "MARS internal error in cube_indexes. size=%d < axis=%d", size, c);
|
||||
grib_context_log(ctx, GRIB_LOG_ERROR, "Internal error in cube_indexes. size=%d < axis=%d", size, c);
|
||||
}
|
||||
|
||||
if(h->index_cache == 0 || h->index_cache_size != c)
|
||||
|
@ -1610,7 +1610,6 @@ static void cube_indexes(const hypercube *h, request *r, int *indexes, int size)
|
|||
}
|
||||
indexes[i] = j;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*********************************/
|
||||
|
@ -2785,7 +2784,7 @@ static int define_netcdf_dimensions(hypercube *h, fieldset *fs, int ncid, datase
|
|||
char *longname = (char *) lowaxis;
|
||||
n = count_values(cube, axis);
|
||||
|
||||
if(count_values(data_r,"LEVTYPE") > 1)
|
||||
if(count_values(data_r,"levtype") > 1)
|
||||
{
|
||||
grib_context_log(ctx, GRIB_LOG_ERROR, "Cannot handle fields for different levtypes.\n");
|
||||
grib_context_log(ctx, GRIB_LOG_ERROR, "Please split input data into different files. Exiting!\n");
|
||||
|
|
Loading…
Reference in New Issue