The error

You try to retrieve data from the ECMWF data archive in NetCDF format but the retrieval fails with this message:

ECCODES ERROR : Wrong number of fields
ECCODES ERROR : File contains 806 GRIBs, 806 left in internal description, 745 in request
ECCODES ERROR : The fields are not considered distinct!
ECCODES ERROR : Hint: This may be due to several fields having the same validity time.
ECCODES ERROR : Try using the -T option (Do not use time of validity)


Cause

This is known issue when downloading forecast data in the NetCDF format:

For example, from the ERA-Interim archive one can download data from four daily forecasts (00:00, 06:00, 12:00, 18:00) and for steps 0 to 120 (in 3-hour steps)

In this case you will get data for:

... and so on.

So in this example you get two values at validity time 2016-12-01, 06:00.

The NetCDF format only supports a single, one-dimensional time dimension, so a specific time can not have two values.

This is why trying to retrieve this data in NetCDF format results in an error.

Possible workarounds

Related articles


Related issues