Commit Graph

288 Commits

Author SHA1 Message Date
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
Stephan Siemen 052ea1dd58 Merge branch 'develop' of https://github.com/ecmwf/eccodes into develop 2019-05-09 17:16:18 +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 25595620b8 Python examples: Fix keys iterator argument 2019-03-11 12:24:43 +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 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 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 62f4893efc METAR: extend test 2018-08-02 13:09:09 +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 b136510fa1 ECC-616: BUFR operator 203YYY: added test for bufr_copy_data 2018-04-11 18:41:22 +01: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 d7027d09ce ECC-577: Add localYear, localMonth, localDay, localHour, localMinute and localSecond to bufr_dump 2017-11-02 16:46:02 +00:00
Shahram Najm 22501bf7dc Python examples: Had to remove six.moves. Bamboo build on opensuse131 broke! 2017-08-09 14:36:04 +01:00
Shahram Najm 8b73776785 Python examples: code reformatting using PyCharm 2017-08-09 14:31:29 +01:00
Shahram Najm ee6773717d Python examples: code reformatting using PyCharm 2017-08-09 14:16:58 +01:00
Shahram Najm 7897b8624c Python examples: extend tests 2017-08-09 13:53:15 +01:00
Shahram Najm 4fd7715e33 Python3: make examples work in both Python2 and Python3 2017-08-09 13:52:53 +01:00
Shahram Najm 17885b337f Performance: remove the label statements or use underscore so grib_push_accessor does not add them to cache 2017-06-14 15:33:37 +01:00
Shahram Najm b0270c53f9 Python: rename environment variable 2017-06-12 16:05:42 +01:00
Shahram Najm 2a40fc0e0f Fix broken test: new BUFR key has been added 2017-05-19 15:01:17 +01:00
Shahram Najm 8128d3fbe9 Message during cmake 2017-05-09 11:15:51 +01:00
Shahram Najm 13cedb45a7 ECC-461: more tests 2017-05-02 14:45:09 +01:00
Shahram Najm dbc49cc0e8 ECC-461: Python: GribMessage class to allow multiple keys to be set 2017-05-02 14:06:58 +01:00
Shahram Najm 06d01c2674 Pythonic interface for BUFR. User must call unpack() before key iterator 2017-04-25 11:52:11 +01:00
Shahram Najm 5fb2b84c0e ECC-451: new pythonic interface segv 2017-04-24 17:59:32 +01:00
Shahram Najm a2590c675c ECC-452: BUFR copy_data test (for now disabled) 2017-04-24 14:34:23 +01:00
Shahram Najm 65583ffa4a Examples: missingValue and GRIB lat/lon iterator 2017-04-19 13:58:39 +01:00
Shahram Najm 751db43e2e API Example: Python using ordered dict 2017-04-10 17:30:34 +01:00
Shahram Najm 10b4653c20 ECC-448: codes_new_from_message does not set product_kind on handle 2017-03-21 15:11:45 +00:00
Florian Rathgeber fad6f076d7 Remove trailing / from examples_src 2017-02-03 14:38:47 +00:00
Florian Rathgeber 79e277db1a Remove trailing / from examples_dir 2017-02-03 14:37:12 +00:00
Florian Rathgeber 710d01c7bc Remove trailing / from tools_dir 2017-02-03 14:34:13 +00:00
Florian Rathgeber 32c8dc9325 ECC-106 Use ECCODES_{DEFINITION,SAMPLES}_SUFF in example scripts 2017-02-03 13:50:40 +00:00
Shahram Najm 59ba37af8a ECC-418: Fortran and Python codes_bufr_keys_iterator (Part 4: High-level Python) 2017-01-26 18:17:06 +00:00
Shahram Najm c0165af67b ECC-418: Fortran and Python codes_bufr_keys_iterator (Part 2: Python) 2017-01-26 17:26:22 +00:00
Shahram Najm fb2d1e8bfd Remove codes_bufr_keys_iterator_get_next_attribute_name 2017-01-24 17:19:40 +00:00
Shahram Najm a7280e2069 Examples: Python Index 2017-01-23 11:14:40 +00:00
Shahram Najm ecb3f44076 CMake: print message only if Python enabled 2017-01-20 17:11:28 +00:00
Shahram Najm ae140b9fb6 Python examples 2017-01-03 11:24:37 +00:00
Shahram Najm cc73e100af Update copyright notices: 2016 -> 2017 2017-01-03 11:03:48 +00:00
Shahram Najm af5c303602 Python examples: use Context Manager 2016-12-30 17:19:44 +00:00
Shahram Najm 908de222c2 Python examples: cleanup 2016-12-30 17:19:21 +00:00
Shahram Najm 96c3fc0b97 Tests: Pythonic GribIndex error message 2016-12-30 15:56:15 +00:00
Shahram Najm 37820bc701 Improved comments 2016-12-29 15:53:10 +00:00
Shahram Najm 02927babe3 ECC-157: PythonicInterface. Missing values in GRIB and BUFR are very different 2016-12-29 15:03:55 +00:00
Shahram Najm 624ba213f0 ECC-402: codes_set does not set localLongitude in BUFR to correct value 2016-12-29 13:27:35 +00:00
Shahram Najm 829db739b1 Added Python function codes_new_from_samples which takes the product kind 2016-12-22 14:34:06 +00:00
Shahram Najm 4dd7984816 PEP8 compliance 2016-12-22 11:15:22 +00:00
Shahram Najm 05776fe132 Fix broken test related to ECC-402 2016-12-22 11:08:11 +00:00
Daniel Lee 1e5c817ead Merge branch 'develop' into feature/SUP-1862-high-level-python-bufr
Conflicts:
	examples/python/high_level_api.py
	python/eccodes/high_level/gribfile.py
	python/eccodes/high_level/gribmessage.py
2016-12-21 13:55:41 +01:00
Daniel Lee ce1279bc5b Add high-level BUFR interface. 2016-12-21 11:43:21 +01:00
Daniel Lee d063285b70 Make test robust to new keys 2016-12-21 10:13:38 +01:00
Shahram Najm 0b57ab90e6 Revert ECC-370: Now we have the high-level Python interface 2016-12-19 16:01:13 +00:00
Shahram Najm 8c49b4bc5d Testing: add test for grib_set_pv in Python 2016-12-19 16:00:06 +00:00
Shahram Najm 35d5bffa36 SUP-1861: High level Python API for GRIB in ecCodes 2016-12-19 14:53:34 +00:00
Shahram Najm 6140e70a7b Merge pull request #8 in ECCODES/eccodes from ~ERGET/eccodes:feature/SUP-1861-high-level-python-grib to develop
* commit 'f80d1d58a4928f88a23219aa217248152a1d79bf':
  Cleanup imports
  SUP-1861: Add high-level GRIB interface
2016-12-19 13:47:42 +00:00
Daniel Lee 613f5147ef Extract general GribFile functions into CodesFile class for reuse with BUFR 2016-12-15 20:05:13 +01:00
Daniel Lee c18644ffed Merge branch 'develop' into feature/SUP-1862-high-level-python-bufr 2016-12-15 18:13:15 +01:00
Daniel Lee ef2eddf009 SUP-1861: Add high-level GRIB interface 2016-12-15 14:27:44 +01:00
Shahram Najm c791ee1c82 Testing: add test for C ensemble index example 2016-11-04 17:11:30 +00:00
Shahram Najm 81ead52e81 ECC-370: Python: codes_set should handle both scalars and arrays 2016-10-27 17:44:38 +01:00
Shahram Najm 96f2015f0b ECC-357: Added Python example 2016-10-18 17:59:04 +01:00
Shahram Najm 9eba55f1c2 Examples clean up 2016-10-18 11:55:14 +01:00
Shahram Najm c434863021 Added Python example for grib_ls JSON output 2016-09-30 17:48:19 +01:00
Shahram Najm 5b77ec080f Python examples: use 'bufr' rather than 'gid' 2016-09-14 13:54:10 +01:00
Shahram Najm c3af7e550a ECC-320: bufr_dump -Dpython 2016-09-14 11:54:57 +01:00
Shahram Najm c9004a56b6 Fix spelling errors in example code 2016-09-13 17:48:52 +01:00
Shahram Najm 464052db63 ECC-200: Python links to confluence 2016-08-25 18:25:36 +01:00
Shahram Najm c38ecd0637 Testing: Added new python test 2016-08-03 14:10:15 +01:00
Shahram Najm 913d16629b Fix warning re off_t and size_t in Python wrapper 2016-08-03 14:09:57 +01:00
Shahram Najm c56d31b61c Print test output in verbose ctest mode 2016-08-02 17:18:26 +01:00