Commit Graph

780 Commits

Author SHA1 Message Date
Shahram Najm 3f42622ee9 Examples: Spelling 2021-11-13 17:40:27 +00:00
Shahram Najm 5a8885fe11 Cppcheck warnings: examples 2021-11-06 21:46:06 +00:00
Shahram Najm e63c3c0ce8 Examples: Cleanup 2021-10-13 16:47:23 +01:00
Shahram Najm 263b7d1519 Examples: Cleanup 2021-10-13 16:37:48 +01:00
Shahram Najm 9ccbe64182 Examples: Use NULL rather than 0 2021-10-13 15:48:19 +01:00
Shahram Najm 20ebd55074 Examples: Python script to check BUFR Table B (formatting, isort, flake8 etc) 2021-10-10 21:07:48 +01:00
Shahram Najm 3200d6f4bc Examples: Python script to check BUFR Table B (only consider first 8 columns) 2021-10-10 20:30:18 +01:00
Shahram Najm d825769d43 Examples: Python script to check BUFR Table B (element.table) files 2021-10-10 18:19:20 +01:00
Shahram Najm e337247173 ECC-1284: use the Fortran REPEAT statement 2021-09-17 18:13:17 +01:00
Shahram Najm b594c9cc65 ECC-1284: clean up 2021-09-16 17:07:38 +01:00
Shahram Najm 8465231143 ECC-1284: bufr_dump: Display of missing strings in arrays 2021-09-16 16:47:25 +01:00
Shahram Najm 280f144111 Examples: Run black formatter 2021-09-15 20:45:34 +01:00
Shahram Najm 6198f46ba2 Examples: Run flake8 checks 2021-09-15 20:36:30 +01:00
Shahram Najm 2db15a68fc Python examples: run isort 2021-09-15 12:28:05 +01:00
Shahram Najm 26195f3973 ECC-1234: Python3 bindings: Remove the experimental high-level interface 2021-09-03 12:44:44 +01:00
Shahram Najm 1d59a71be9 Spelling 2021-08-20 16:09:18 +01:00
Shahram Najm 295cd9c82b Examples: prepBufr table/definition extraction 2021-08-17 16:19:21 +01:00
Shahram Najm 1ec8ed51c4 Examples: remove warning 2021-07-14 17:43:02 +01:00
Shahram Najm cc948be671 ECC-1252: Fortran example: problem compiling grib_read_from_file.f90 2021-06-10 16:05:37 +01:00
Shahram Najm b07bc640b6 ECC-1235: Fortran examples: Show how to convert an error code into a string 2021-04-26 14:10:58 +01:00
Shahram Najm ec67e1293a ECC-1235: Fortran examples: Show how to convert an error code into a string 2021-04-23 13:22:45 +01:00
Shahram Najm 2d08227508 Examples: BUFR radiosonde in Python (From Bruce Ingleby) 2021-04-15 22:51:54 +01:00
Shahram Najm 3ffb386883 Examples: apply flake8 2021-04-15 15:10:46 +01:00
Shahram Najm d4eaaf27e8 Examples: BUFR radiosonde in Python (From Bruce Ingleby) 2021-04-15 14:48:58 +01:00
Shahram Najm 1f06d8f335 Examples: BUFR radiosonde in Python (From Bruce Ingleby) 2021-04-15 14:44:13 +01:00
Shahram Najm 8abad788e3 Remove unused variables 2021-04-14 21:02:10 +01:00
Shahram Najm f47a4a2c1c Examples: BUFR radiosonde updated code (From Bruce Ingleby) 2021-04-14 20:52:22 +01:00
Shahram Najm 418157db49 ECC-1231: Python bindings: Remove the experimental high-level interface 2021-04-11 17:07:02 +01:00
Shahram Najm af98a69aa1 Examples: BUFR radiosonde updated code (From Bruce Ingleby) 2021-04-10 13:11:00 +01:00
Shahram Najm 539932f03d Examples: Fix memory leaks and clean up comments 2021-04-09 13:06:32 +01:00
Shahram Najm 9e52edd4a3 Examples: print error rather than assert 2021-03-21 17:27:14 +00:00
Shahram Najm 637cb42550 CMake: cleanup 2021-03-13 21:10:16 +00:00
Shahram Najm a0485f41b6 Examples: clean up 2021-03-13 14:20:07 +00:00
Shahram Najm 4e4ffc974d Examples: cleanup 2021-03-11 12:22:43 +00:00
Shahram Najm 52db2fb6cb Compiler warnings 2021-02-26 14:27:09 +00:00
Shahram Najm da7e8b3341 Examples: compiler warning -Wmaybe-uninitialized 2021-02-24 22:29:23 +00:00
Shahram Najm d5f43831a7 Examples: Titles 2021-02-23 17:14:11 +00:00
Shahram Najm 9fdc2b50c5 Examples: Fortran formatting (https://github.com/pseewald/fprettify) 2021-02-14 18:14:39 +00:00
Shahram Najm e4ba1cb328 ECC-1198: Examples: grib_iterator should mention the 'bitmapPresent' key 2021-02-11 22:04:00 +00:00
Shahram Najm b8fea9ad21 Testing: listing all codetable and flagtable keys 2021-02-05 15:37:28 +00:00
Shahram Najm 08af171c0a Testing: add Fortran test for encoding with a packingType 2021-01-13 20:52:50 +00:00
Shahram Najm 83d1538b2f Testing: failed on results diff (sappb/PGI) 2021-01-12 18:17:21 +00:00
Shahram Najm 703a69a28b ECC-1187: BUFR: Crash on codes_set_missing() 2020-12-24 20:17:44 +00:00
Shahram Najm 7a14817017 ECC-1185: Crash in codes_context_delete() call (Part 1) 2020-12-22 16:47:23 +00:00
Shahram Najm 99227c95d9 Examples: check output during test 2020-12-17 17:46:50 +00:00
Shahram Najm dff9af14c1 Examples: Fix warnings 2020-12-17 16:55:06 +00:00
Shahram Najm d74af1a173 Examples: counting multi-field messages 2020-12-17 15:07:13 +00:00
Shahram Najm 9a6aa9bd7c ECC-403: BUFR: codes_is_missing reports 1 on keys that are not missing 2020-12-14 13:42:37 +00:00
Shahram Najm 67eb9a087a Examples: BUFR radiosonde data (From Bruce Ingleby) 2020-12-13 16:43:16 +00:00
Shahram Najm 52f75237f6 ECC-403: C and Python API tests 2020-12-11 19:27:33 +00:00
Shahram Najm b50bac9c60 Compiler warnings 2020-12-10 23:21:51 +00:00
Shahram Najm bcd0c0ec00 Examples: fixed print issue thanks to mypy 2020-10-27 18:42:01 +00:00
Shahram Najm 6c1d07d04d Do not allow both GRIB and BUFR support to be disabled 2020-10-20 21:30:54 +01:00
Shahram Najm 8ae8ac63d1 Testing: Split Python high level tests into GRIB and BUFR 2020-10-20 21:11:05 +01:00
Shahram Najm cdda46accf Rename tests 2020-10-20 18:04:01 +01:00
Shahram Najm bc7bc629a6 Rename tests 2020-10-20 17:46:08 +01:00
Shahram Najm a1a66d1705 Rename tests 2020-10-20 17:36:25 +01:00
Shahram Najm 71a7ad6a25 Rename tests 2020-10-20 17:32:02 +01:00
Shahram Najm 4f1b1a6436 ECC-1157: Python 2 support: Rename CMake option ENABLE_PYTHON to ENABLE_PYTHON2 2020-10-15 17:08:25 +01:00
Shahram Najm f8883cc71c Merge branch 'develop' into feature/ecbuild_3.4 2020-09-16 11:32:10 +01:00
Shahram Najm 06590ecd42 Merge branch 'develop' into feature/ECC-1136-BUFR-restrict 2020-08-28 13:28:25 +01:00
Shahram Najm a85d4de9ea Support for ecbuild v3.4. Fix threads/PNG 2020-08-19 17:06:56 +01:00
Shahram Najm 4e9fed3d7d ECC-1142: Clean up 2020-08-08 13:07:16 +01:00
Shahram Najm 9e1221c8f8 ECC-1142: CMake: add option to build tools (ON by default) 2020-08-07 22:36:59 +01:00
Shahram Najm 01701feb84 Testing: move old deprecated code 2020-07-31 15:05:31 +01:00
Shahram Najm c8374590e5 ECC-1136: rename key to restricted 2020-07-22 23:03:18 +01:00
Shahram Najm 2e295d5674 Testing: print full path of script being run 2020-07-19 15:18:57 +01:00
Shahram Najm 34777765b8 Remove obsolete python3 SWIG stuff 2020-07-05 22:40:57 +01:00
Shahram Najm bfd5944f54 Testing: Add label via ecbuild_add_test 2020-07-03 16:09:25 +01:00
Shahram Najm 528010ea0e Testing: Add 'sanity' label for quick essential tests 2020-07-03 15:43:33 +01:00
Shahram Najm 0f85ca65a8 Testing: Add 'sanity' label for quick essential tests 2020-07-03 15:40:05 +01:00
Shahram Najm 53e6ba418a Examples: Add disclaimer 2020-06-25 12:28:34 +01:00
Shahram Najm f952d632c4 Clang: Include what you use 2020-06-09 13:21:21 +01:00
Shahram Najm d4f030225a Examples: comments/err msgs 2020-06-01 20:21:53 +01:00
Shahram Najm e333ce8d37 Testing: Fix Windows build (fseeko/ftello) 2020-05-28 21:53:57 +01:00
Shahram Najm dd42ed5274 Testing: fix dependency 2020-05-28 18:44:40 +01:00
Shahram Najm 34eed7f741 Testing: refine test for codes_grib_multi_support_reset_file 2020-05-28 18:10:56 +01:00
Shahram Najm 1f99dc511d Examples: write errors to stderr 2020-05-14 20:21:31 +01:00
Shahram Najm fb36d2661b Examples: write errors to stderr 2020-05-14 19:57:06 +01:00
Shahram Najm 8603d3a8bc Testng: remove the redirect 2020-05-14 18:29:45 +01:00
Shahram Najm e6d8cbc15b Memory leak in expanded descriptors 2020-05-05 10:52:05 +01:00
Shahram Najm 9359aedc31 Free handle 2020-05-04 12:25:19 +01:00
Shahram Najm d08ced8000 Testing: Add variables to test products supported 2020-03-30 16:17:36 +01:00
Shahram Najm 0a874742a4 CMake style 2020-03-30 14:07:31 +01:00
Shahram Najm 57b9dabc52 Tests/Examples: Memory leak 2020-03-29 19:54:08 +01:00
Shahram Najm a85fd56731 Clang tidy warnings 2020-03-26 11:11:00 +00:00
Shahram Najm f67c83b287 ECC-1094: Implement a way to check if an instance of ecCodes has been compiled with thread support 2020-03-22 19:54:43 +00:00
Shahram Najm d7ead3398e Testing: add missing shell variables 2020-02-20 17:20:35 +00:00
Shahram Najm 9222fe2873 ECC-992: Adjust min. limit for 247 2020-02-20 12:03:49 +00:00
Shahram Najm 8744f5ca25 Examples: Fix memory leaks 2020-02-12 12:20:07 +00:00
Shahram Najm 01ba1e5a93 Clang static analyser: Uninitialized argument value 2020-02-11 11:50:50 +00:00
Shahram Najm d0ac1e6cdc Clang static analyser: Uninitialized argument value 2020-02-10 17:49:54 +00:00
Shahram Najm 1f545e1a0f Clang static analyser: Allocator sizeof operand mismatch 2020-02-10 17:10:11 +00:00
Shahram Najm ea8b5bde4c Examples: Fix memory leaks 2020-02-06 11:17:06 +00:00
Shahram Najm 4146ee6b09 Examples: Fix memory leaks 2020-02-06 11:08:28 +00:00
Shahram Najm a0c038f2c4 Examples: Fix memory leaks 2020-02-06 10:52:57 +00:00
Shahram Najm 12c6150917 Copyright notices: use new format 2020-01-28 14:32:34 +00:00
Shahram Najm 0bf6d79c0d ECC-1064: Fortran: Implement codes_get_api_version() 2020-01-24 14:27:54 +00:00
Shahram Najm 924d6774d5 Examples: fix memory leak 2020-01-23 12:17:03 +00:00
Shahram Najm 42453ffbd7 Applied clang-format (Part 3) 2020-01-22 14:57:43 +00:00
Shahram Najm 969ed8934e Testing: unset ECCODES_DEFINITION_PATH when MEMFS defined 2020-01-16 14:40:06 +00:00
Shahram Najm ddc64487a9 Windows: bufr_copy_data enabled 2019-12-30 16:43:36 +00:00
Shahram Najm 0fb2799ecd Windows: Disable failing tests (temporarily) so GitHub CI succeeds 2019-12-18 11:23:50 +00:00
Shahram Najm f7c372f6ce Tests: grib_nearest 2019-12-14 21:37:13 +00:00
Shahram Najm 381ea98379 ECC-499: example 2019-12-12 18:00:56 +00:00
Shahram Najm b2a1cc813a ECC-499: function grib_nearest_find to get the indexes but not the values 2019-12-12 17:33:56 +00:00
Shahram Najm 395a3a52e4 Windows test failures: use binary mode for opening GRIBs 2019-12-10 17:56:27 +00:00
Shahram Najm 7403ae68fa Windows test failures: use binary mode for opening GRIBs 2019-12-10 16:27:44 +00:00
Shahram Najm 77747b33a9 Refactoring 2019-11-08 10:52:08 +00:00
Shahram Najm 2743b6f524 Fix includes: IWYU 2019-11-07 12:03:45 +00:00
Shahram Najm 51754a218a Spelling 2019-10-15 10:34:47 +01:00
Shahram Najm ba524c3218 GRIB encoding: keep values reasonable for examples/tests 2019-10-11 13:35:01 +01:00
Shahram Najm 30bbf1aefe Close opened files and also PEP8 2019-09-25 11:04:18 +01:00
Shahram Najm 88ffad81ba Merge develop 2019-09-12 12:20:34 +01:00
Shahram Najm 911ac70a10 BUFR: Add more tests for bufr_copy_data 2019-09-11 12:12:53 +01:00
Shahram Najm 3eef50e904 Merge develop 2019-09-11 10:58:01 +01:00
Shahram Najm 1846f42138 Move old examples dir 2019-09-09 15:03:37 +01:00
Shahram Najm 865e9b1ca6 Merge develop 2019-09-05 10:53:20 +01:00
Shahram Najm f4ba853635 Testing: check encoded values 2019-08-12 13:19:21 +01:00
Shahram Najm 35d7533d71 Tests for header/footer check 2019-07-31 12:45:15 +01:00
Shahram Najm bc67a0cadd Fix comments 2019-07-23 18:23:46 +01:00
Shahram Najm 726ee4953e Merge develop 2019-07-22 13:11:31 +01:00
Shahram Najm b5c06c0257 Rename example 2019-07-22 11:15:42 +01:00
Shahram Najm e74382911b Merge from develop 2019-07-04 13:05:33 +01:00
Shahram Najm 4bb7b7febc Python message 2019-07-01 21:52:27 +01:00
Shahram Najm dc40707359 Python tests: metar output 2019-06-12 15:47:22 +01:00
Shahram Najm be9d0f5179 Don't hide output from test 2019-06-11 17:13:49 +01:00
Shahram Najm 8616c07c53 ECC-938: BUFR keys iterator: key 'ident' from ECMWF local header is not included 2019-06-06 16:55:03 +01:00
Shahram Najm 4613a340d7 Python examples: Pass in the BUFR file to iterate on 2019-06-06 12:41:51 +01:00
Shahram Najm 6f5c14b504 Examples: variable name 2019-05-29 16:12:03 +01:00
Shahram Najm 28c2b2ac20 Examples: Python3: Fix division 2019-05-23 10:30:05 +01:00
Shahram Najm ec2676aca8 Examples: fix argument 2019-05-22 16:37:28 +01:00
Shahram Najm bdf2b02b49 Add codes_get_product_kind 2019-05-17 15:02:58 +01:00
Stephan Siemen 052ea1dd58 Merge branch 'develop' of https://github.com/ecmwf/eccodes into develop 2019-05-09 17:16:18 +01:00
Shahram Najm dcf7fa0b56 Tests: Rename 2019-04-17 17:22:14 +01:00
Shahram Najm 4346efcf94 Tests: Add grib nearest multiple test 2019-04-17 15:58:24 +01:00
Shahram Najm a1e725be9a Example: codes_grib_nearest_find_multiple 2019-04-17 12:54:16 +01:00
Shahram Najm 02e934b688 Copyright updated 2019-04-15 14:44:45 +01:00
Shahram Najm 18595a0d10 Python3 mode 2019-04-08 19:57:30 +01:00
StephanSiemen d167623f26
Merge branch 'develop' into patch-1 2019-04-08 09:56:01 +01:00
Alessandro Amici 922a646619
Open GRIB files in binary mode, relevant for Python 3 2019-04-08 10:33:39 +02:00
Alessandro Amici 75069268a3
Fix grib_keys_iterator access to key name.
At the moment it works by chance, because both iterid and gid are the index `0` of the corresponding array.
2019-04-08 10:28:10 +02:00
Shahram Najm 09a6ab48ad Examples: add codes_get_double_elements for Python 2019-03-26 17:22:28 +00:00
Shahram Najm abb7ea8b3d ECC-869: debugging help when bitmap info is wrong 2019-03-14 18:42:40 +00:00
Shahram Najm a77570cd19 C examples: binary open 2019-03-11 12:53:05 +00:00
Shahram Najm 25595620b8 Python examples: Fix keys iterator argument 2019-03-11 12:24:43 +00:00
Shahram Najm 4430798914 Testing: Add basic test for product kind of samples 2019-02-25 10:54:06 +00:00
Shahram Najm 031bef2e13 ECC-896: Fortran API: Memory leak in grib_index_get_int and grib_index_get_string 2019-02-16 19:00:14 +00:00
Shahram Najm 8881d760df Add URL 2019-02-05 15:38:46 +00:00
Shahram Najm 1d3f068753 Documentation 2019-02-05 14:55:28 +00:00
Shahram Najm 35e244161e Examples: show catching specific exception 2019-02-05 14:29:13 +00:00
Shahram Najm 6fece32386 Add test for ECC-866 2019-01-10 15:56:40 +00:00
Shahram Najm fa0c0c7314 Replace bzero with memset (Windows support) 2019-01-08 14:27:14 +00:00
Shahram Najm f9aa4a12cd Windows support: merge branch dtip-windows from Github 2019-01-07 16:13:48 +00:00
Shahram Najm 1f6d8d3d52 Remove DOS line endings 2019-01-07 13:54:29 +00:00
Shahram Najm fdf76710db ECC-864: Add test and make old key an alias 2019-01-03 12:06:44 +00:00
Shahram Najm e76871a03b ECC-864: Improved name for the angularPrecision key 2019-01-03 11:48:52 +00:00
Shahram Najm 0cbfa864a5 ECC-856: BUFR - length of string attribute not correct if used with subset section 2018-12-18 11:16:34 +00:00
Shahram Najm 796f52f01d Merge from develop 2018-12-06 12:56:51 +00:00
Shahram Najm 832ed60f3c Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
Shahram Najm f22a2f16bb Python3: Turn verbose on for high level tests 2018-11-22 14:22:35 +00:00
Shahram Najm 19e29182c7 Python3: high level tests 2018-11-21 18:33:11 +00:00
Shahram Najm 014330cf61 Python3: Fix error: strptime() argument 1 must be str, not bytes 2018-11-21 17:10:43 +00:00
Shahram Najm 7585fddc0e ECC-776: Python examples: Use 'open' with binary mode 2018-11-13 17:13:53 +00:00
Shahram Najm 5773a2015c Add more basic Python tests 2018-11-08 14:19:49 +00:00
Shahram Najm 50d8bc0a4c ECC-763: BUFR test for Python 2018-10-29 11:09:40 +00:00
Shahram Najm 67f79590ce ECC-763: Added BUFR test for Python 2018-10-29 10:58:37 +00:00
Shahram Najm 06bf3ceba1 ECC-763: Split tests which work on data from samples 2018-10-24 15:20:20 +01:00
Shahram Najm 8ab46146d5 ECC-763: Add basic test for BUFR headers 2018-10-24 13:33:22 +01:00
Shahram Najm 07dbcf3b36 ECC-763: Break tests into two sets... 2018-10-23 16:33:07 +01:00
Shahram Najm 3eadeaa7be ECC-745: bufr_compare performance: speed up by skipping extra key attributes 2018-09-06 15:13:33 +01:00
Shahram Najm 76fd217e70 Remove environment variable. Add 'set -x' to print trace of commands 2018-08-15 12:00:07 +01:00
Shahram Najm 18a2c281de Merged develop into this branch 2018-08-07 16:00:29 +01:00
Shahram Najm 62f4893efc METAR: extend test 2018-08-02 13:09:09 +01:00
Shahram Najm eb7e4e0a58 Compiler warnings 2018-07-20 14:16:37 +01:00
Shahram Najm b0cd1e03d1 Enable -Werror=declaration-after-statement 2018-07-20 11:38:36 +01:00
Shahram Najm 75120573f7 cppcheck warnings 2018-07-12 17:54:32 +01:00
Shahram Najm a4f5a6171d Add test for ECC-671 (setting GRIB string keys in Fortran) 2018-05-09 15:35:08 +01:00
Shahram Najm 4b97f0de71 ECC-604: Verify output from test 2018-05-02 16:01:30 +01:00
Shahram Najm 7f5e90883e ECC-568: Different behaviour between bufr key iterator and bufr dump 2018-04-19 16:27:22 +01:00
Shahram Najm 70cc3f320e Documentation 2018-04-16 11:40:35 +01:00
Shahram Najm b35532d6a3 ECC-674: Examples: typo in bufr_read_scatterometer.f90 2018-04-14 17:09:42 +01:00
Shahram Najm e643b5cb51 ECC-675: Examples: confusing comment in bufr_expanded.f90 2018-04-14 16:34:29 +01:00
Shahram Najm b136510fa1 ECC-616: BUFR operator 203YYY: added test for bufr_copy_data 2018-04-11 18:41:22 +01:00
Shahram Najm 4f5d17f849 Compiler warnings 2018-01-19 16:20:59 +00:00
Shahram Najm 50e6d0e0d0 ECC-609: ecCodes requires python 2.7 to run all the tests but the minimum required version is 2.6 2018-01-10 15:57:12 +00:00
Shahram Najm 652a05fa78 Testing: rename tests to easier identify which are grib or bufr related 2018-01-08 17:04:00 +00:00
Shahram Najm 30b705b8da Update copyright notices: 2017 -> 2018 2018-01-02 11:31:02 +00:00
Shahram Najm d0d2832193 Testing: test must not pass if no data got downloaded 2017-12-18 17:11:42 +00:00
Shahram Najm 167f2918c4 ECC-590: add encoding in test 2017-11-21 13:07:17 +00:00
Shahram Najm 6038cc9062 ECC-590: Clang ThreadSanitizer error: data race on expanded_descriptor_list_push 2017-11-20 11:48:41 +00:00
Shahram Najm 944e9858cf Testing: add more output 2017-11-16 17:19:03 +00:00
Shahram Najm d7027d09ce ECC-577: Add localYear, localMonth, localDay, localHour, localMinute and localSecond to bufr_dump 2017-11-02 16:46:02 +00:00
Shahram Najm 754f2f767d Examples: Add BUFR get string array 2017-10-02 14:44:26 +01:00
Shahram Najm 58d343eb4f Examples: Add BUFR get string array 2017-10-02 14:28:12 +01:00
Shahram Najm 36411da09f ECC-544: Clean up 2017-09-22 14:25:21 +01:00
Shahram Najm 18640bcd47 Compiler warnings: Intel 2017-09-01 17:35:30 +01:00
Shahram Najm b291dc6b6f Clang compiler warnings 2017-08-25 17:26:08 +01:00
Shahram Najm dd8711d17d Clean up 2017-08-22 15:33:26 +01:00
Shahram Najm 22501bf7dc Python examples: Had to remove six.moves. Bamboo build on opensuse131 broke! 2017-08-09 14:36:04 +01:00