Commit Graph

898 Commits

Author SHA1 Message Date
Shahram Najm 0d0f0a6899 Migration to C++: Use builtin bool type 2023-03-04 12:45:31 +00:00
Shahram Najm d1d094cf8a Compiler warning: macro redefined 2023-03-03 17:33:44 +00:00
Shahram Najm d6ab079a42 Tools: Preparation for ECC-1528 2023-02-17 17:08:50 +00:00
Shahram Najm 2432c1d029 Remove duplicated macro 2023-02-17 15:44:46 +00:00
Shahram Najm 9052774253 Deprecated tools 2023-02-15 16:16:18 +00:00
Shahram Najm f516a62f02 ECC-1528: Tools: Setting -w constraint with count=0 should issue an error 2023-02-12 16:16:29 +00:00
Shahram Najm bb3dcc0602 Tools: cpplint warning re strtok 2023-02-11 15:02:55 +00:00
Shahram Najm 08b6514aa7 Deprecated files 2023-02-11 14:09:42 +00:00
Shahram Najm ac30393626 ECC-1519: grib_ls: Using the 'statistics' namespace does not respect the specified format 2023-02-01 15:52:36 +00:00
Shahram Najm 6e86b0eb8c ECC-1508: Change file extensions to '.cc' 2023-01-30 12:01:31 +00:00
Shahram Najm 81a2fc9d99 ECC-1508: Set project language to be C++ 2023-01-30 11:24:39 +00:00
Shahram Najm 130c61e755 ECC-1508: Set project language to be C++ 2023-01-28 15:18:23 +00:00
Shahram Najm 1694547f39 ECC-1516: grib_dump error on index file 2023-01-22 18:21:57 +00:00
Shahram Najm daa0924312 Tools: Check error codes 2023-01-22 14:52:27 +00:00
Shahram Najm d9406ccd17 Tools: cppcheck warnings 2023-01-22 13:32:32 +00:00
Shahram Najm 0fa00f406b Tools: use '%zu' in the format string for size_t 2023-01-21 17:30:28 +00:00
Shahram Najm 270660a7ed Tools: Redundant check 2023-01-21 14:21:36 +00:00
Shahram Najm eb56b7beff Tools: Check error codes 2023-01-21 14:16:15 +00:00
Shahram Najm 7a7111945c Tools: Check error code after decoding referenceValueError 2023-01-15 15:22:40 +00:00
Shahram Najm 8dd75a889a Cppcheck: Same value in both branches of ternary operator 2023-01-15 15:03:59 +00:00
Shahram Najm 439ca44024 Tools: Check iDirectionIncrementGiven 2023-01-12 17:16:30 +00:00
Shahram Najm 8abeb45135 C++ warnings 2023-01-08 15:23:24 +00:00
Shahram Najm 12959de080 C++: conversion from string literal to 'char *' 2023-01-08 14:36:46 +00:00
Shahram Najm cb04418e93 Cleanup 2023-01-08 14:04:54 +00:00
Shahram Najm 14696668c8 C++: conversion from string literal to 'char *' 2023-01-08 14:01:22 +00:00
Shahram Najm 81110907df C++: conversion from string literal to 'char *' 2023-01-08 13:37:16 +00:00
Shahram Najm 7468e8b15f C++ compilation 2023-01-06 20:33:42 +00:00
Shahram Najm bed7e91e6b C++ compilation 2023-01-06 20:25:57 +00:00
Shahram Najm 4f9a51de1c AppVeyor: Fix broken Windows build 2023-01-06 19:52:58 +00:00
Shahram Najm 0d7088b096 C++ compilation 2023-01-06 19:14:02 +00:00
Shahram Najm e874f7c9c7 ECC-1500: Tools: Print the online help page URL 2023-01-06 11:52:00 +00:00
Shahram Najm 350d8e6747 ECC-1500: Tools: Print the online help page URL 2023-01-04 21:16:24 +00:00
Shahram Najm b303346d0a Documentation 2022-12-28 14:57:41 +00:00
Shahram Najm 6a9b705b37 Documentation 2022-12-28 14:28:58 +00:00
Shahram Najm d5047d3f46 Tools: Error messages 2022-12-27 13:19:33 +00:00
Shahram Najm 6d9d11cab0 Tools: Comments 2022-12-27 12:36:19 +00:00
Shahram Najm 0908028394 Examples: use '%zu' in the format string for size_t 2022-12-21 15:07:48 +00:00
Shahram Najm 2544e2bfa7 Tools: Cleanup 2022-12-16 17:24:53 +00:00
Shahram Najm 7ecdddda06 Tools: Set key 'file' for bufr_get 2022-12-16 17:16:51 +00:00
Shahram Najm a34bb5bd24 Tools: Set key 'file' for grib_get 2022-12-16 17:14:24 +00:00
Shahram Najm 0989b98118 Tools: Improve message 2022-12-13 16:21:42 +00:00
Shahram Najm 7b55d9d00a Cleanup 2022-12-07 19:38:35 +00:00
Shahram Najm fe1f32d9bc ECC-1489: Crash on MacOS (release build): printing the tool man page 2022-12-05 15:34:35 +00:00
Shahram Najm 6e39ecda5e C++ compiler warnings: conversion from string literal to 'char *' 2022-11-20 14:40:57 +00:00
Shahram Najm 06531aba4f Compiler warnings: signed/unsigned mismatch 2022-11-14 12:09:42 +00:00
Shahram Najm 1627cb06a7 Compiler warnings: signed/unsigned mismatch 2022-11-12 22:08:44 +00:00
Shahram Najm 9d08a85eec Compiler warnings: signed/unsigned mismatch 2022-11-12 19:16:31 +00:00
Shahram Najm 0644fdc346 Compiler warnings: use '%zu' in the format string for size_t 2022-11-12 13:34:09 +00:00
Shahram Najm 044cb17e11 Windows: Do not need _snprintf anymore 2022-11-10 21:51:06 +00:00
Shahram Najm 133b67fa0d Typo 2022-11-10 20:13:38 +00:00
Shahram Najm 9f71b20f25 ECC-1468: Replace all instances of the deprecated function 'sprintf' with 'snprintf' 2022-11-10 19:18:43 +00:00
Shahram Najm 3255222392 Memory leak 2022-11-04 16:59:12 +00:00
Shahram Najm c984a57fc3 Tools: Move check for interpretationOfNumberOfPoints to the end 2022-11-03 13:01:18 +00:00
Shahram Najm 2f4935b496 Tools: Add option to display the library version 2022-11-02 17:55:47 +00:00
Shahram Najm 328365e510 Tools: Improve messages 2022-11-02 15:51:38 +00:00
Shahram Najm 9101e79aa5 C++ compilation 2022-10-28 13:24:17 +01:00
Shahram Najm fd67943d0e C++ compilation 2022-10-27 10:47:03 +01:00
Shahram Najm 7e72efada8 C++ warnings 2022-10-20 17:20:13 +01:00
Shahram Najm bac0688d4b Tools: Documentation 2022-10-18 12:29:27 +01:00
Shahram Najm 0d17694c4a Tools: bufr_dump plain mode also called 'flat' 2022-10-18 12:19:05 +01:00
Shahram Najm b111d0b70b Tools: Fix key name 2022-07-26 19:05:11 +01:00
Shahram Najm b7724edc27 Tools: man page 2022-07-21 13:38:07 +01:00
Shahram Najm dbc044d828 Tools: cppcheck warnings 2022-06-30 16:52:04 +01:00
Shahram Najm 766f4aeb63 Const correctness (To aid migration to C++) 2022-06-30 10:29:46 +01:00
Shahram Najm 2be3dddd15 ECC-1419: C API: codes_fieldset_new_from_files: The 'filenames' argument should be const 2022-06-30 10:29:14 +01:00
Shahram Najm 416560bc1b ECC-1419: C API: codes_fieldset_new_from_files: The 'filenames' argument should be const 2022-06-30 10:28:48 +01:00
Shahram Najm f1b49ca4ae Documentation: grib_filter 2022-06-29 15:14:16 +01:00
Shahram Najm a95c8fe76d Tools: Add associated field as name of special descriptor 999999 2022-06-27 15:38:57 +01:00
Shahram Najm bc2b1c3e5e Tools: repack does not apply to BUFR 2022-06-27 11:12:14 +01:00
Shahram Najm fa7f760a7b Tools: Improve error message 2022-06-15 12:04:07 +01:00
Shahram Najm a050115789 Refactoring: Function renaming 2022-06-10 20:51:39 +01:00
Shahram Najm 2b908fee8d Tools: exit if input is a directory 2022-06-07 11:45:08 +01:00
Shahram Najm 08abd94ada ECC-1397: Added test 2022-06-06 16:48:51 +01:00
Shahram Najm 438a3bb957 ECC-1397: Tools: grib_ls nearest neighbour with JSON output 2022-06-06 14:50:05 +01:00
Shahram Najm 9d07ddb3ab C++: Const correctness 2022-06-02 19:29:29 +01:00
Shahram Najm 594918b593 Fix broken metabuilder/ci build (cray) 2022-05-21 19:39:33 +01:00
Shahram Najm 2cda55de73 ECC-1393: Fix error C2440 2022-05-21 16:13:38 +01:00
Shahram Najm 76bac8da71 ECC-1393: CMake: Add option to build ecCodes with C++ 2022-05-21 14:37:23 +01:00
Shahram Najm 0945d27154 Remove deprecated autotools makefiles 2022-05-06 13:44:54 +01:00
Shahram Najm 796beac27c Tools: check interpretationOfNumberOfPoints 2022-04-25 12:29:37 +01:00
Shahram Najm ccd402f272 Tools: check interpretationOfNumberOfPoints 2022-04-25 12:13:07 +01:00
Shahram Najm 0212dc18d3 Header guard 2022-04-19 13:09:53 +01:00
Shahram Najm 1693106cc4 CMake: rename list 2022-04-19 11:31:16 +01:00
Shahram Najm b65d67c7f8 Error messages 2022-04-06 15:31:18 +01:00
Shahram Najm 4daeadd13d Tools: Fix broken test for GRIB-971 2022-04-06 13:22:24 +01:00
Shahram Najm 0b82c044fb Compiler warning: conversion from 'double' to 'int', possible loss of data 2022-03-30 18:14:20 +01:00
Shahram Najm 132650a3bb Documentation 2022-03-25 20:48:11 +00:00
Shahram Najm 040093c655 Cleanup 2022-03-18 13:56:21 +00:00
Shahram Najm 1db1c0831c Indexing: print message number in case of failure 2022-03-17 22:21:33 +00:00
Shahram Najm 422ef77000 Refactoring 2022-03-14 19:54:22 +00:00
Shahram Najm aa7e202083 Allow sample file specification with extension 2022-03-14 15:16:16 +00:00
Shahram Najm b4b4f7b4ae Tools: codes_export_resource info message 2022-03-13 17:25:58 +00:00
Shahram Najm 6f155041a8 Tools: codes_export_resource cleanup 2022-03-12 20:06:47 +00:00
Shahram Najm 1141ac065c Merge branch 'feature/ExportResource' into develop 2022-03-12 20:00:33 +00:00
Shahram Najm f46e742820 Compiler warnings 2022-03-12 19:02:16 +00:00
Shahram Najm 6d0b83ae17 Compiler warnings 2022-03-12 18:58:24 +00:00
Shahram Najm 5ee4186fda Tools: codes_export_resource 2022-03-12 14:45:57 +00:00
Shahram Najm 9518460641 Tools: codes_export_resource 2022-03-12 14:23:23 +00:00
Shahram Najm 211c22ca37 Tools: codes_export_resource 2022-03-12 12:52:00 +00:00
Shahram Najm acd5c95d54 Tools: print full usage info. Also put feature AEC at the top 2022-02-24 15:32:34 +00:00
Shahram Najm dc07dab62d Tools: Document which is the default sort mode 2022-02-23 14:23:12 +00:00
Shahram Najm 1c6ff5d65e ECC-1350: grib_compare: Incorrect behaviour when first file argument is a directory 2022-02-16 12:41:54 +00:00
Shahram Najm def903b99e ECC-1326: grib_to_netcdf: Improve usage message 2022-01-07 14:28:05 +00:00
Shahram Najm aec656b339 Fix URLs: replace software.ecmwf.int/wiki 2021-12-20 16:56:02 +00:00
Shahram Najm b323c5e3ec ECC-1322: grib_compare: Option '-e' generates dubious error message 2021-12-17 17:03:34 +00:00
Shahram Najm 267f155628 Add build date into library (Similar to git SHA1) 2021-12-14 19:49:25 +00:00
Shahram Najm ac2095cd42 Improve error messages 2021-12-09 18:41:10 +00:00
Shahram Najm 3f6c2da50a Tools: print enabled/disabled features 2021-11-24 14:24:29 +00:00
Shahram Najm 08fa1ee919 Cppcheck warnings: Const correctness 2021-11-06 14:21:32 +00:00
Shahram Najm 6b2c1348b3 Cppcheck warnings: Const correctness 2021-11-06 14:18:48 +00:00
Shahram Najm 140a686050 Shadowed variables 2021-10-14 13:39:05 +01:00
Shahram Najm b875119866 Tools: print error message when no keys in namespace 2021-10-13 16:32:34 +01:00
Shahram Najm 873b5b7325 ECC-1134: Fix dump output 2021-10-12 12:23:28 +01:00
Shahram Najm 9c729e39e6 Merge branch 'develop' into feature/BufrIndexing 2021-10-12 11:13:58 +01:00
Shahram Najm 9dbae2ade1 Spelling 2021-10-03 18:06:50 +01:00
Shahram Najm 440d4eb677 ECC-1283: Clean up 2021-10-02 21:28:31 +01:00
Shahram Najm 433bd328ad ECC-1283: bufr_compare: Does not detect differences in string arrays 2021-10-02 17:38:22 +01:00
Shahram Najm 04ab71311e ECC-1283: bufr_compare: Does not detect differences in string arrays 2021-09-29 18:11:15 +01:00
Shahram Najm c12a0c90b0 ECC-1283: bufr_compare: Does not detect differences in string arrays 2021-09-17 13:25:57 +01:00
Shahram Najm 2cde2806d0 ECC-1273: grib_get_data: keys added via '-p' should be separated by spaces not commas 2021-08-23 16:38:53 +01:00
Shahram Najm 1c63f4b03d ECC-1265: grib_repair: endless loop 2021-07-26 17:15:47 +01:00
Shahram Najm cad7ef0721 Tools: print gridType in warning 2021-07-15 14:44:24 +01:00
Shahram Najm a04b01bee0 ECC-1260: grib_get -p step does not show step ranges with hyphens 2021-06-25 19:19:41 +01:00
Shahram Najm 4bc0661487 Cosmetics 2021-05-20 11:16:56 +01:00
Shahram Najm 91cf5a4d3c ECC-1243: grib_ls -j: error listing the geography namespace 2021-05-17 15:06:30 +01:00
Shahram Najm 3ce30c6817 Fix typo 2021-05-17 15:05:39 +01:00
Shahram Najm c207d52c3e ECC-1237: grib_compare behaves different for different compilers on CRAY 2021-04-29 16:54:04 +01:00
Shahram Najm c2fa436890 Testing: add tests 2021-03-29 16:58:21 +01:00
Shahram Najm 86e98744de Tools: check GRIB_OMP_THREADS is defined 2021-03-29 16:57:49 +01:00
Shahram Najm 1c6fdbd9a3 Tools: use the same includes as other tools 2021-03-21 17:27:37 +00:00
Shahram Najm a4de42701e C: New utility function path_is_regular_file 2021-03-20 12:59:06 +00:00
Shahram Najm 944a7838ee Fix memory leak 2021-03-11 15:19:30 +00:00
Shahram Najm 7972123e3d Tools: JSON grib_ls: fix for ls.time (related to ECC-707 and ECC-1216) 2021-03-10 17:15:59 +00:00
Shahram Najm 40ae90eb0a Tools: apply fix for ls.time (related to ECC-707 and ECC-1216) 2021-03-10 15:08:56 +00:00
Shahram Najm 0b25def059 ECC-779: error messages should go to stderr 2021-03-09 15:26:13 +00:00
Shahram Najm 70147cd99d ECC-1208: Fix name of macros: CODES_DUMP_FLAG_OCTECT and GRIB_DUMP_FLAG_OCTECT 2021-02-27 14:11:57 +00:00
Shahram Najm 2e0987aa6c Tools: clang-format 2021-02-07 22:06:42 +00:00
Shahram Najm 47fe078315 Compiler warnings 2021-02-06 13:12:28 +00:00
Shahram Najm 0b803b314e Testing: listing all codetable and flagtable keys 2021-02-04 18:12:17 +00:00
Shahram Najm bd3a25aaae Refactoring 2021-02-04 11:53:15 +00:00
Shahram Najm 4b7a4fd4d4 Refactoring 2021-02-03 21:50:43 +00:00
Shahram Najm 305d8b8780 Clang warning: declaration shadows a local variable 2021-02-03 19:35:06 +00:00
Shahram Najm 50bc75f287 ECC-822: grib_get_data: Allow user to specify number of decimal places for lats/lons 2021-02-03 17:25:51 +00:00
Shahram Najm 053b68faf1 Refactoring: in preparation for ECC-822 2021-02-03 13:59:27 +00:00
Shahram Najm 2b98e8a40d ECC-1197: grib_get_data: Words on the first line should be separated by spaces not commas 2021-02-02 18:25:49 +00:00
Shahram Najm e1a2cbb13c ECC-539: Reuse the codes_resolve_path function 2021-01-25 14:47:40 +00:00
Shahram Najm fc557bba28 ECC-539: refactoring 2021-01-25 13:59:03 +00:00
Shahram Najm deab563bac Merge branch 'develop' into feature/ECC-539-avoid-overwrite 2021-01-24 16:08:43 +00:00
Shahram Najm b01cbf88c9 Refactoring and comments 2021-01-15 20:08:50 +00:00
Shahram Najm 0b68887b72 grib_to_netcdf: Add test for different resolutions 2021-01-05 16:39:48 +00:00
Shahram Najm e3abb59e62 Compiler warning: clang 2020-12-22 17:45:35 +00:00
Shahram Najm f54fe409c9 ECC-1179: bufr_copy/bufr_ls: Allow 'where' clause with Data Section keys 2020-12-10 15:52:00 +00:00
Shahram Najm c4eb5d620a ECC-1178: Spurious trailing blank in codes_info -v 2020-12-08 16:10:17 +00:00
Shahram Najm efe95c52f5 ECC-779: Error 'no messages found in ...' should go to stderr 2020-11-06 12:06:40 +00:00
Shahram Najm 2642728d33 Fix logging format strings 2020-10-13 14:20:36 +01:00
Shahram Najm 091abd5dd8 Fix logging format strings 2020-10-13 14:05:50 +01:00
Shahram Najm e92a21503f Tools: Print config options in debug mode 2020-10-11 19:10:51 +01:00
Shahram Najm 326428e2ae Merge branch 'develop' into feature/ecbuild_3.4 2020-09-25 11:09:17 +01:00
Shahram Najm f94a5f0928 Rename blacklist to blocklist 2020-09-24 15:54:33 +01:00
Shahram Najm 219dc5c707 ECC-1143: changes to NetCDF (FindNetCDF) 2020-09-09 19:25:04 +01:00
Shahram Najm 5863d3eecb Tools: compiler warning re unused 'chunks' (netcdf v3) 2020-08-29 12:45:41 +01:00
Shahram Najm 895202e1b6 Merge branch 'develop' into feature/ecbuild_3.4 2020-08-25 13:24:09 +01:00
Shahram Najm ac878ef07e Documentation. bufr_compare does not have a -P option 2020-08-21 11:29:16 +01:00
Shahram Najm e2a7320ff6 ECC-1134: Add tool bufr_index_build 2020-08-19 16:20:27 +01:00
Shahram Najm ad93825ffe Support for ecbuild v3.4. Version macros and PRIVATE_LIB 2020-08-18 11:14:29 +01:00
Shahram Najm fc5b4f7ec1 ECC-1139: CRASH: bufr_ls -p numericValues 2020-07-25 17:27:02 +01:00
Shahram Najm 0d04b7aa9a Tools: print stdin if input filter is '-' 2020-07-19 15:19:31 +01:00
Shahram Najm 1f1a2cbe5b Tools: Rename of common variables 2020-07-17 15:37:57 +01:00
Shahram Najm 2c0f6bc9da Indexing: allow dump on index file 2020-07-17 15:15:32 +01:00
Shahram Najm 1bd6da5881 ECC-1134: BUFR indexing (Part 1) 2020-07-16 17:51:42 +01:00
Shahram Najm b2cfc4d60c BUFR indexing: first draft 2020-07-13 19:09:48 +01:00
Shahram Najm 94d4f83ec7 Memory leaks in grib_merge tool 2020-07-12 16:55:26 +01:00
Shahram Najm 5edd7923cd Tools: codes_info to print the full definitions path 2020-07-07 16:04:43 +01:00
Shahram Najm b498068403 Documentation 2020-07-03 13:50:26 +01:00
Shahram Najm 97b9c1847f parse_keyval_string: Check number of tokens 2020-06-30 20:05:12 +01:00
Shahram Najm 3624d2218b Memory leaks 2020-06-30 15:06:53 +01:00
Shahram Najm cbe37961b5 ECC-1128: Reduce size of executables 2020-06-30 13:40:39 +01:00
Shahram Najm 5185171123 ECC-440: reduce number of open/close in tools 2020-06-29 16:11:19 +01:00
Shahram Najm fb0b601757 ECC-1126: Clean up special cases 2020-06-27 14:35:58 +01:00
Shahram Najm b19a87aea6 Nearest neighbour array indexes 2020-06-13 12:00:11 +01:00
Shahram Najm c4da64d8a7 grib_ls with nearest: check indexes 2020-06-12 21:39:52 +01:00
Shahram Najm a5405d9e33 grib_ls -j: print not_found if accessor returns GRIB_NOT_FOUND 2020-06-09 21:43:33 +01:00
Shahram Najm 5478d10505 Memory leaks: grib_dumper_class. Use context directly rather than via handle 2020-05-22 19:43:38 +01:00
Shahram Najm 770cb95baf Memory leak 2020-05-18 15:51:33 +01:00
Shahram Najm c789c7d2b2 Memory leak in BUFR clone 2020-05-10 13:19:15 +01:00
Shahram Najm d43fd87c74 Memory leak in codes_count (if invalid message) 2020-05-09 16:32:26 +01:00
Shahram Najm ead17c58e4 Memory leak: BUFR 2020-04-17 18:09:52 +01:00
Shahram Najm 40ce92c4a7 Clean up 2020-04-10 17:26:11 +01:00
Shahram Najm a45df08da7 CMake style 2020-03-25 18:13:32 +00:00
Shahram Najm d330ed4b72 Tools: rename cmake variable 2020-03-25 16:26:49 +00:00
Shahram Najm cfaa03f226 Clang static analyser warnings 2020-03-20 12:43:03 +00:00
Shahram Najm 6d1f3aa16e Clang static analyser warnings 2020-03-20 12:10:48 +00:00
Shahram Najm 4e29bf2d37 Clang static analyser warnings 2020-03-19 16:01:10 +00:00
Shahram Najm b603391b34 ECC-1097: Memory leak: bufr_count on an invalid BUFR 2020-03-19 12:44:43 +00:00
Shahram Najm 37044e4dd0 ECC-1086: Copy all good messages + add test 2020-03-04 17:26:01 +00:00
Shahram Najm 339c1a426f ECC-1086: grib_copy/bufr_copy: does not fail in the presence of an invalid message 2020-03-03 17:28:56 +00:00
Shahram Najm eba7a7b3b7 Tools: Print other environment variables (if set) 2020-02-29 14:55:29 +00:00
Shahram Najm ab0ec2387e Clang static analyser warnings 2020-02-28 11:46:39 +00:00
Shahram Najm 6d94d93aa9 Clang static analyser warnings 2020-02-26 21:25:12 +00:00
Shahram Najm c9ddef0599 Better error message when lat,lon badly specified 2020-02-26 15:42:36 +00:00