Commit Graph

3556 Commits

Author SHA1 Message Date
Shahram Najm 7d27cc45cc Compiler warnings: unreferenced local variable e 2024-01-15 11:01:36 +00:00
Eugen Betke b1fd3ec9c1 Merge branch 'feature/ECC-1620_sub-hourly' of github.com:ecmwf/eccodes into feature/ECC-1620_sub-hourly 2024-01-15 10:59:52 +00:00
Eugen Betke d54b83ae14 Fix time interval setting for instantenous fields 2024-01-15 10:57:50 +00:00
kevstone 9c8297a519 Added ccode_objects_converter 2024-01-13 22:11:57 +00:00
kevstone 34bdc97ba7 Added code_interface_converter 2024-01-13 21:34:11 +00:00
Shahram Najm 87f34c24b8 Testing: Sub-hourly with grib_filter (needs fixing - see src/grib_accessor_class_optimal_step_units.cc) 2024-01-13 14:52:25 +00:00
kevstone 35ab5ff4f0 Removed incorrect import 2024-01-12 20:12:52 +00:00
kevstone ead8c99192 Cleanly separated default conversion from GribAccessor conversion 2024-01-12 20:08:46 +00:00
Shahram Najm b60198320d Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-12 17:24:37 +00:00
kevstone e36b4b9939 Removed premature C++ conversion 2024-01-12 17:08:16 +00:00
kevstone 09a038aecb Added explicit C AST Parser 2024-01-12 14:51:47 +00:00
Shahram Najm 27ef7b9062 Debugging: Output list of key/value pairs being set 2024-01-12 13:38:57 +00:00
kevstone 40b3a7ca5f Added ternary operator support 2024-01-12 12:26:39 +00:00
kevstone 65b05aa62a Added macro definitions to global declaration 2024-01-12 10:12:12 +00:00
kevstone dfd287999e Added if() and array subscript support 2024-01-12 08:13:26 +00:00
Shahram Najm eb4bf8dea7 Compiler warnings: Unused variables 2024-01-11 17:59:58 +00:00
Shahram Najm c35fdc2471 Unused variables 2024-01-11 16:56:33 +00:00
Shahram Najm e65ca5f98c Expressions/Actions: Unused functions 2024-01-11 16:16:37 +00:00
kevstone 81ac4c1cfe Added support for for() 2024-01-11 15:18:46 +00:00
kevstone 6ae5c4db01 Added if() support 2024-01-11 09:56:44 +00:00
kevstone ef0a88b1dc Added initial support for macros 2024-01-11 08:01:10 +00:00
Shahram Najm 45f47d1b90 Indexing: Make functions local 2024-01-10 17:57:20 +00:00
Shahram Najm 78aa519961 Testing: GRIB1 data_dummy_field packing 2024-01-10 16:20:19 +00:00
Shahram Najm 2ad5dd29e9 Action write: check for -ve value 2024-01-10 15:50:30 +00:00
Shahram Najm ea84ba6381 Testing: is_in_list expression 2024-01-10 14:43:23 +00:00
Shahram Najm 21a76256ce Testing: Unused accessors 2024-01-10 13:26:23 +00:00
Shahram Najm 2ae9638663 Testing: Deprecated statements 2024-01-10 13:18:20 +00:00
Shahram Najm b5f86e688a Actions: Dead code removal 2024-01-10 12:43:12 +00:00
Shahram Najm 9f565bed85 Const correctness 2024-01-09 15:42:16 +00:00
Shahram Najm 81f40a3735 Check return value of grib_buffer_replace 2024-01-09 10:23:13 +00:00
Shahram Najm ee51e30d10 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-08 20:26:08 +00:00
Shahram Najm 42d45cee1e ECC-1741: Assertion failure: Encoding a large field in GRIB1 2024-01-08 17:39:10 +00:00
Shahram Najm ada0309905 Error messages: GRIB1 large messages 2024-01-08 15:14:08 +00:00
Shahram Najm 560702839d Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-07 19:02:40 +00:00
Shahram Najm 28b7d13eea Testing: grib_repair/grib_read_any_from_memory 2024-01-07 15:26:58 +00:00
Shahram Najm b5470b2297 Dead code removal: TAF and METAR 2024-01-07 14:07:23 +00:00
Shahram Najm 1016c2e0f1 Dead code removal 2024-01-05 17:22:03 +00:00
Shahram Najm 90ed7d1e67 Dead code removal 2024-01-05 17:02:12 +00:00
Shahram Najm aca931a801 Dead code removal 2024-01-05 16:53:52 +00:00
Shahram Najm 720fa8b03f Merge branch 'develop' into convertion-inherit 2024-01-01 23:19:16 +00:00
Shahram Najm f7ea824c6c Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-01 23:14:59 +00:00
Shahram Najm efcef18676 Dead code removal 2024-01-01 23:14:45 +00:00
Shahram Najm 02e4b71ec7 Dead code removal 2024-01-01 21:14:44 +00:00
Shahram Najm 62e9830bcf Dead code removal 2024-01-01 13:35:14 +00:00
Shahram Najm 8cb098cd95 Error messages 2023-12-31 18:19:42 +00:00
Shahram Najm 40f7a0007d Error messages 2023-12-31 18:07:47 +00:00
Shahram Najm 64d69f1395 Error messages 2023-12-31 18:00:27 +00:00
Shahram Najm dd3be148d3 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-28 13:30:58 +00:00
Shahram Najm 03de571851 Dead code removal 2023-12-27 16:47:45 +00:00
Shahram Najm b442065995 Testing: Secondary bitmaps (GRIB2) 2023-12-27 16:07:01 +00:00
Shahram Najm 075760afc8 Testing: transient darray 2023-12-27 15:09:34 +00:00
Shahram Najm 152248eb82 Merge branch 'develop' into convertion-inherit 2023-12-27 13:14:31 +00:00
Shahram Najm 3826d72024 Dead code removal 2023-12-26 18:53:07 +00:00
Shahram Najm 84d8265b9a Dead code removal 2023-12-26 18:45:00 +00:00
Shahram Najm 5cbc79fd36 Testing: Increase coverage: JPEG decoding 2023-12-26 17:54:09 +00:00
Shahram Najm 2308878ef2 Non-alpha: no need for pack_xxx functions if read-only 2023-12-26 17:52:08 +00:00
Shahram Najm e54a4660fa GRIB1: Calculation of number of points when Nj=missing or 0 2023-12-26 17:00:37 +00:00
Shahram Najm c2668153ef Testing: 'close' action and filepool 2023-12-26 14:52:23 +00:00
Shahram Najm c3d13d35ae Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-23 17:25:51 +00:00
Shahram Najm 72365c5bb3 Initialise buffers 2023-12-23 15:12:24 +00:00
Shahram Najm ace2a0a8c1 ECC-1739: BUFR: Assertion failure decoding with invalid masterTablesVersionNumber 2023-12-22 19:41:06 +00:00
Shahram Najm c077fa5dc5 ECC-1738: BUFR: Better error message for invalid sequence 2023-12-21 12:47:26 +00:00
Shahram Najm f7bccb5537 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-21 11:47:12 +00:00
Shahram Najm 818192c2a4 Cleanup 2023-12-20 12:07:26 +00:00
Shahram Najm 23ae3e8bba GRIB lightweight clone: Rename 2023-12-19 15:16:37 +00:00
Shahram Najm 7be67dc31b Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-12-19 15:04:36 +00:00
Shahram Najm ba8df5afa6 SUP-3892: Eccodes 2.32 onwards compile with Intel problems 2023-12-19 15:00:14 +00:00
Shahram Najm 2666565b7f Reformatting 2023-12-19 14:59:38 +00:00
Shahram Najm cfab5e7b1f Reformatting 2023-12-19 14:49:40 +00:00
Shahram Najm 7bcdcdf40c SUP-3892: Eccodes 2.32 onwards compile with Intel problems 2023-12-19 14:47:35 +00:00
Shahram Najm dc58a160c0 Fix key comparisons 2023-12-17 17:08:32 +00:00
Shahram Najm 42be7969f2 g1end_of_interval_monthly: Check month is valid 2023-12-17 16:38:45 +00:00
Shahram Najm 42fe75054a Testing: Increase coverage 2023-12-16 13:07:36 +00:00
Shahram Najm 5c135b6b30 Refactoring 2023-12-15 18:29:55 +00:00
Shahram Najm 483316197a Refactoring 2023-12-15 15:16:40 +00:00
Shahram Najm 560e10f6d9 Error messages 2023-12-15 13:44:12 +00:00
kevstone c7bdff8d45 Latest libclang code 2023-12-13 19:10:54 +00:00
Shahram Najm c852227c6c GRIB lightweight clone: Rename 2023-12-13 10:55:24 +00:00
Shahram Najm 3e7210df2f Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-12-13 10:43:13 +00:00
Shahram Najm 5fc5f0aa76 Merge branch 'develop' into convertion-inherit 2023-12-13 10:16:40 +00:00
Shahram Najm 3d6d684123 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-11 12:11:49 +00:00
Shahram Najm 0c614bc926 Dead code removal 2023-12-10 14:04:56 +00:00
Shahram Najm f297de4278 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-09 17:43:51 +00:00
Shahram Najm a2adea7b81 API: Allow setting code table keys as missing via codes_set_string 2023-12-09 17:13:02 +00:00
Shahram Najm fdc57f8c26 Header files: Fix broken Windows build 2023-12-09 15:52:01 +00:00
Shahram Najm 1bb1579ae2 Header files: Cleanup 2023-12-09 15:14:57 +00:00
Shahram Najm c728c0d7a9 Const correctness 2023-12-07 17:13:45 +00:00
Shahram Najm 591f335cdb ECC-1733: GRIB2: codes_set_missing doesn't work for timeIncrement and indicatorOfUnitOfTimeIncrement keys 2023-12-07 15:46:03 +00:00
Shahram Najm 8b2d4c45f5 Dumper: add default value info (Debug mode) 2023-12-06 17:11:33 +00:00
Eugen Betke 5bd9d62642 ECC-1620: Introduction of the "eccodes" namespace 2023-12-06 15:58:51 +00:00
Shahram Najm 937d2fa737 Tools: Improved error messages 2023-12-06 12:57:07 +00:00
Eugen Betke 394ba554c4 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-06 10:41:43 +00:00
Shahram Najm 161a048488 ECC-1699: Dump 2023-12-05 13:02:27 +00:00
Shahram Najm 131235c06d Codetable API functions 2023-12-02 18:51:39 +00:00
Shahram Najm 20d36eb58f Merge branch 'feature/GetAllCodeTableEntries' into feature/ECC-1620_sub-hourly 2023-12-02 18:37:50 +00:00
Shahram Najm 66209c060e Functions codes_codetable_check_code_figure and codes_codetable_check_abbreviation 2023-12-02 18:35:01 +00:00
Shahram Najm 443d467ae6 Merge branch 'feature/GetAllCodeTableEntries' into feature/ECC-1620_sub-hourly 2023-12-02 17:51:59 +00:00
Shahram Najm ecf8dc993b codes_codetable_check_entry and further tests 2023-12-02 17:45:44 +00:00
Shahram Najm dca34cfc2d codes_get_codetable_contents_malloc: Renamed and added test 2023-12-02 16:34:56 +00:00
Eugen Betke e84ebfa238 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-01 16:37:01 +00:00
Eugen Betke 52205dc77d ECC-1620: Set startStepUnit 2023-12-01 16:26:54 +00:00
Eugen Betke 832ca298e2 ECC-1620: Change ECCODES_FUTURE_BEHAVIOUR to ECCODES_GRIB_SHOW_HOUR_STEPUNIT 2023-12-01 09:21:17 +00:00
Shahram Najm f155dbbb58 codes_get_all_codetable_entries_malloc 2023-11-30 20:25:43 +00:00
kevstone d805f0fc0b Added libclang converter 2023-11-30 11:04:13 +00:00
Eugen Betke 8c7286d096 ECC-1620: add future behaviour: export ECCODES_FUTURE_BEHAVIOUR=1 2023-11-29 14:56:48 +00:00
Shahram Najm f31265e7e7 Update list of keys and hash 2023-11-29 14:44:28 +00:00
Eugen Betke eec53eb56b ECC-1620: Force stepUnits 2023-11-29 14:22:36 +00:00
Eugen Betke 3bcb5a8cc9 ECC-1620: New format for special units, e.g., 8x15m 2023-11-29 09:37:38 +00:00
Eugen Betke c515507a26 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-11-28 12:18:55 +00:00
Shahram Najm 017947df5f GRIB lightweight clone: Copy packingType 2023-11-27 17:50:59 +00:00
Shahram Najm 2707c2fca2 GRIB lightweight clone: WIP 2023-11-27 17:20:49 +00:00
Shahram Najm 9b68c6acc9 Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-11-27 12:54:02 +00:00
Shahram Najm df07a400cc Merge branch 'develop' into convertion-inherit 2023-11-27 12:04:18 +00:00
Shahram Najm 7aef2d846b Error messages 2023-11-27 12:01:52 +00:00
Shahram Najm 2c26f89a13 Element accessor: Keep self->element const 2023-11-27 12:01:34 +00:00
Shahram Najm b83c16261d Merge branch 'develop' into convertion-inherit 2023-11-26 16:16:12 +00:00
Shahram Najm e22852c29f Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-11-26 16:02:10 +00:00
Shahram Najm 20ff3ae8cd Element accessor: Allow -ve indexes like Python 2023-11-26 13:47:39 +00:00
Shahram Najm 8804b3371d ECC-1699: BUFR: Bitmap problem for ERA5 data 2023-11-24 22:38:03 +00:00
Shahram Najm fc13b3510a Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-11-20 20:56:52 +00:00
Shahram Najm 2d128f5b6c ECC-1722: API: Allow setting integer key as missing via codes_set_string 2023-11-20 20:53:33 +00:00
kevstone a47656a2e7 Added iterator support 2023-11-15 09:20:42 +00:00
kevstone 1c3285c4f5 More robust if() parsing for return values 2023-11-14 23:43:50 +00:00
kevstone 46a22aad50 Custom args now per-function 2023-11-14 11:21:13 +00:00
kevstone 7775c203b9 Parser automatically parses missing super classes 2023-11-14 09:38:38 +00:00
kevstone 9c81f5e407 A few more fixes... 2023-11-14 00:41:39 +00:00
kevstone e773b673d5 NULL transformed to 0 by default 2023-11-13 23:36:13 +00:00
kevstone 959ec90a27 More build fixes 2023-11-13 23:17:07 +00:00
kevstone a5052bcf3f More bugfixing 2023-11-13 19:40:54 +00:00
kevstone f480c82035 fixed a constructor parse issue 2023-11-13 00:02:23 +00:00
kevstone 97b956cf0e Mode build fixes 2023-11-12 23:47:16 +00:00
kevstone 2692c96a6a A few more build fixes 2023-11-12 21:16:28 +00:00
kevstone 7329ba2329 Added support for Assert 2023-11-12 19:55:36 +00:00
kevstone 10d2f602f9 Added option to run convert script from a single input file 2023-11-12 14:28:52 +00:00
kevstone 9c6ffa0897 Minor updates to last commit 2023-11-12 13:42:57 +00:00
kevstone 517b7f02ef Added stubs to assist conversion process 2023-11-12 13:26:32 +00:00
kevstone 8f4f7ee495 Tidied up custom arg definitions 2023-11-11 18:02:59 +00:00
kevstone 29bf39aa71 Added grib_accessor.cc stub functions 2023-11-11 17:39:42 +00:00
kevstone 086e4522f9 Func sig parse update 2023-11-10 21:27:30 +00:00
kevstone 084f066744 Fixed function as function arg bug 2023-11-10 19:56:10 +00:00
kevstone 70b733b892 Added support for grib_set_x_array and grib_get_x_array 2023-11-10 12:44:54 +00:00
kevstone bd7d0b6f28 Bits accessor now builds 2023-11-10 09:29:33 +00:00
kevstone 437597f413 Bug fixes 2023-11-09 22:33:48 +00:00
kevstone f2bad02f68 Fixed issue with strtol 2023-11-09 21:19:49 +00:00
kevstone 6c2fbbfc5d Added support for unpack_helper func and some parsing improvements 2023-11-09 20:29:30 +00:00
Shahram Najm b9cf94aa20 ECC-1717: CRASH: grib_get -p numberOfMissing on invalid GRIB 2023-11-09 17:20:16 +00:00
Shahram Najm ef57ad4519 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-11-09 12:54:27 +00:00
Shahram Najm d47b5b1265 API: Add codes_get_offset 2023-11-09 12:51:11 +00:00
kevstone 5c864039a4 Added grib_expression stub 2023-11-09 10:21:04 +00:00
kevstone 515413aaf7 Fixed grib_argument_get_x parsing issue 2023-11-08 19:26:56 +00:00
Shahram Najm 180aab7b3a Const correctness 2023-11-08 19:00:55 +00:00
kevstone 78da6c24f7 Added custom DataPointer transforms 2023-11-08 18:52:32 +00:00
kevstone 689fd1a10c Improved function parsing (now detects functions that are params to other functions) 2023-11-08 17:48:41 +00:00
Shahram Najm 3b67aec2b7 Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-11-08 15:06:58 +00:00
Shahram Najm 70049aea0c GRIB lightweight clone: Disable BUFR etc 2023-11-08 15:06:43 +00:00
Shahram Najm f78d164670 Const correctness 2023-11-08 15:05:39 +00:00
Shahram Najm 4837d203a2 Prototyping: GRIB clone lightweight 2023-11-08 14:01:48 +00:00
Shahram Najm 858cdcb0f2 GTS header: no need for pack_string if read-only 2023-11-07 14:16:46 +00:00
Shahram Najm f4b734c520 Testing: gts_header accessor 2023-11-07 13:49:02 +00:00
kevstone 20c8fde7c5 Container indexing changed to .at() 2023-11-07 09:17:41 +00:00
kevstone f9546a6835 Added custom arg transforms 2023-11-06 21:35:44 +00:00
kevstone 8dd9072c77 Added AccessorSpecific classes to better model pre-accessor updates 2023-11-06 20:27:16 +00:00
Eugen Betke d6b9fae892 ECC-1620: Special handling of 15m and 30m units 2023-11-06 10:18:01 +00:00
kevstone b9e285d070 Updated member function generation ready for template changes 2023-11-05 23:06:34 +00:00
kevstone 0eab0b6f6c Renamed C unpack<T> to unpack_helper<T> to avoid collision with C++ code 2023-11-05 21:29:23 +00:00
kevstone 5045a4832d first template fix 2023-11-05 21:17:00 +00:00
kevstone f863da9265 bit and long accessors now build fully 2023-11-05 20:09:29 +00:00
kevstone 6591891f15 Renamed (un)pack arg names due to clashes 2023-11-05 15:20:18 +00:00
kevstone 30d980a4c6 Added using Base::Func; support 2023-11-05 14:57:32 +00:00
kevstone 0fe5846e0b Improved multi-line parsing 2023-11-05 10:50:40 +00:00
kevstone 98d081cac7 Fixed class_bit build issues 2023-11-04 20:41:19 +00:00
kevstone d2d84c10c5 Added better multi-line and inherited method parsing 2023-11-04 20:13:34 +00:00
kevstone f33093b41d Additonal Grib support functions 2023-11-03 20:15:30 +00:00
kevstone 9923453647 Improved multi-line processing 2023-11-03 18:31:29 +00:00
Eugen Betke 29bd34a13f Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-11-03 14:02:20 +00:00
Eugen Betke 538aa336c5 Merge branch 'feature/ECC-1620_sub-hourly' into feature/ECC-1620_sub-hourly_string 2023-11-03 12:08:33 +00:00
Eugen Betke ea69d2927f ECC-1620: Fix negative steps 2023-11-03 12:07:41 +00:00
kevstone 34de18d6c7 AccessorName init fix and GribCpp folder 2023-11-03 09:14:24 +00:00
kevstone 77733b2caa Updated variable detection and parsing 2023-11-02 23:20:39 +00:00
Eugen Betke 141f788ae9 ECC-1620: Change default step type to string 2023-11-02 22:03:09 +00:00
kevstone 4ba0fade47 (un)packhelper fix 2023-11-02 17:38:00 +00:00
kevstone 3a1448df7e Fix breakage in last commit 2023-11-02 13:51:04 +00:00
kevstone 8f284dee5f updated grib_handle processing 2023-11-02 13:40:40 +00:00
kevstone b8c397e1bc Commented out dump() body 2023-11-02 10:45:19 +00:00
kevstone a300c95b8d Added InitData length logic 2023-11-02 09:14:52 +00:00
kevstone 9aa4485ff3 Fixed some arg parse/convert issues 2023-11-01 23:36:22 +00:00
Shahram Najm 6ed70d7c39 Provide get_native_type (See SUP-3871) 2023-11-01 11:49:39 +00:00
kevstone 4709aa0227 additional function name processing 2023-11-01 07:52:08 +00:00
kevstone 94ef43e13a Process remaining cargs completed 2023-10-31 21:59:56 +00:00
kevstone f8c2225014 Improved var and func processing 2023-10-31 16:11:53 +00:00
kevstone 1cd707ee48 Removed unnecessary global carg final check 2023-10-30 21:56:27 +00:00
kevstone 359fc6b9ef Added extra conversion detection 2023-10-30 20:55:15 +00:00
kevstone 1b4ac29df7 Improved struct and variable parsing 2023-10-29 20:32:43 +00:00
Shahram Najm 38d6569e36 Cleanup 2023-10-27 17:58:34 +01:00
Shahram Najm ffda07db1a Add abs functor (integer absolute value function) 2023-10-27 13:31:13 +01:00
Shahram Najm 6dc344a9b4 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-10-27 12:08:31 +01:00
Shahram Najm c32c4c5bfb ECC-1708: grib_get_data returns offset longitudes in some cases 2023-10-27 12:07:50 +01:00
shahramn 4fcb936958
Merge pull request #172 from ecmwf/feature/fix-mercator
gridType=mercator fix
2023-10-26 16:42:15 +01:00
Pedro Maciel 40c129eb06 gridType=mercator fix 2023-10-26 15:56:18 +01:00
Shahram Najm 0114346e40 Testing: element access for doubles 2023-10-26 15:42:51 +01:00