Errors in MET #2646
-
My name is William and I am a master's student at the National Institute for Space Research in Brazil. I'm using MET to develop it, however, I'm getting some errors when I try to run "Grid-Stat". I'm trying to run the Grid-Stat function, for this I have 2 files (Prev and Obs - NetCDF) and within them I want to analyze the variable t2m (temperature) which is structured as follows: william@probook:~/DTC/MET-11.1.1/bin$ ncdump -h t2m_test_obs.nc With the information from NetCDF I edited the MET configuration file as follows (GridStatConfig): // Forecast and observation fields to be verified fcst = { obs = { // Output observation type to be written // Verification grid However, when I give the command to run grid-stat, it gives the following error: ./grid_stat t2m_test_prev.nc t2m_test_obs.nc GridStatConfig ERROR : NcCfFile::getData(NcVar *, const LongArray &, DataPlane &) const -> needed 3 arguments for variable t2m, got 2 In this case, it asks for 3 variables for the t2m, and is only recognizing 2. I've already tried changing the "level" by "Time, latitude, distance" and also by height levels, however, the error remains, I looked for something related in the guide user however, I didn't find anything about it. Thank you in advance for your attention! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I see you have a question about configuring Grid-Stat. Thanks for sending along the details of your NetCDF file and config file entries. Grid-Stat is designed to be run once per output time. Your data has 3 dimensions: time, latitude, and longitude:
As the error message states, you should have exactly two * characters to in the level string in the slots for the lat/lon dimensions.
In this example, I just put a 0 for the first dimension. That means just use data for the first time slice. Although I see that you have 2208 time slices in this file ( Two additional suggestions:
Please let me know how it goes. If you get additional errors, you could consider posting sample data and config files to our anonymous ftp site following these instructions. |
Beta Was this translation helpful? Give feedback.
Hi, I see you have a question about configuring Grid-Stat. Thanks for sending along the details of your NetCDF file and config file entries. Grid-Stat is designed to be run once per output time. Your data has 3 dimensions: time, latitude, and longitude:
As the error message states, you should have exactly two * characters to in the level string in the slots for the lat/lon dimensions.
In this example, I just put a 0 for the first dimension. That means just use data for the first time slice. Although I see that you have 2208 time slices in this file (
time = 2208 ;
). Instead of specifying an integer index into that…