Content from
https://confluence-test.ecmwf.int/display/ECC/Frequently+Asked+Questions
Summary
-
grib_to_netcdf: skips Control Forecast when I convert Ensemble Forecast data - ecCodes GRIB FAQ — If you have a file with both Control and Perturbed forecasts, grib_to_netcdf will only convert the pf. Normally from 51 members in the GRIB file, only 50 appear in the netCDF.
-
grib_to_netcdf: Why do I get the error "Wrong number of fields... Try using the -T option" - ecCodes GRIB FAQ — You try to retrieve data from the ECMWF data archive in netCDF format but the retrieval fails with this message
-
-
-
What happens when I set the packingType to grid_jpeg on a GRIB1 message - ecCodes GRIB FAQ — Actually nothing! JPEG packing is not supported for GRIB edition 1 but rather than fail, the library leaves the message as is.
-
-
How do I use an OR condition (logical disjunction) in a where clause - ecCodes GRIB FAQ — For example in grib_get you may want to show all messages which have a level of 100, 150 or 200.
-
Creating your own local definitions - ecCodes GRIB FAQ — Local definitions are required when one needs to store information which is not part of the standard GRIB header. This might be local parameters or local definitions.
-
-
How can I set the verbosity level to see debug output? - ecCodes FAQ — There is an environment variable called ECCODES_DEBUG: If set to -1, it will enable brief debug-level logging messages to be displayed by the library. If set to 1, you will get very verbose output.
-
How do I set the product definition template in a GRIB2 message - ecCodes GRIB FAQ — Let's say you want your message to use the product definition template 40 (The full list is defined in Code table 4.0):
-
How do I know if I am dealing with a multi-field GRIB file - ecCodes GRIB FAQ — The only possible way of detecting if a GRIB file is multi-field is by using the grib tools or the API to turn the support for multiple fields in a single GRIB message on or off and observe the results
-
How can I get verbose output when running tests with ctest - ecCodes FAQ — When you run the tests via CMake (which actually runs ctest), you are only told if it passed or failed. After a failure you want to re-run the test and see all of what the test was doing.
-
How can I multiply the field values by a constant - ecCodes GRIB FAQ — One way is to use grib_set with the key "scaleValuesBy". Let's say you have a field in orig.grib whose values you want to multiply by 2.1. First check the original data value statistics
-
How can I remove the PV array (list of vertical coordinates) - ecCodes GRIB FAQ — his can be done by setting the key "deletePV" as shown:
% grib_set -s deletePV=1 in.grib out.grib