Skip to content

re-grid the ERA5 data #1334

Locked Answered by georgemccabe
zhumingying asked this question in File I/O
Dec 22, 2021 · 9 comments · 3 replies
Discussion options

You must be logged in to vote

Here is the error message from your log file:

ERROR : NcCfFile::getData(NcVar *, const LongArray &, DataPlane &) const -> needed 4 arguments for variable WS, got 2

It looks like the values you have set for OBS_VAR1_LEVELS are using the GRIB format, while the data you are reading is NetCDF.

Here is the header from the WS field in your NetCDF file:

    float WS(time, level, latitude, longitude) ;

The WS field is a 4-D variable, so you will need to format the levels to extract the appropriate data from the variable. Since the first dimension is time and the last 2 are lat/lon, you should be able to use a similar format as the forecast data to define the NetCDF dimensions to read. It loo…

Replies: 9 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JohnHalleyGotway
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@georgemccabe
Comment options

Comment options

You must be logged in to vote
1 reply
@georgemccabe
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by georgemccabe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment