Pygrib

Latest version: v2.1.6

Safety actively analyzes 687959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

1.8.4

================================
* make sure _set_projparams is called by fromstring (issue 33).
* add __enter__ and __exit__ methods so you can do "with pygrib.open(filename) as f:"
* set projparams instance variable when grib message is created, instead of
when latlons method called (issue 27).

1.8.3

================================
* repacked example grib files to prevent tests from failing. Test failures
ocurred for grib messages using second-order complex
packing, due to a bug introduced in the grib_api library in version 1.9.8.

1.8.2

================================
* Python 3 support.
* changed name of grib1to2 and grib2to1 to cnvgrib1to2 and cnvgrib2to1
to avoild conflict with scripts installed by grib_api-1.9.5 (fixes
issue 22).
* added utils grib1to2 and grib2to1 to MANIFEST (they were not included in
1.8.1).
* fix open.seek so it works for negative offsets when from_what=1.
* grib_api_version module var changed from int to string (10905 --> '1.9.5').

1.8.1

================================
* in grib_api 1.9.5, grib_count_in_file does not count
individual messages inside multi-part messages (as it did in previous
versions). So, instead of calling that routine pygrib now counts them
internally.
* open.select now puts iterator back in original position.
* fix bug in open.message (message(N) was advancing N messages, not
going to message number N).
* use julian_to_datetime to automatically create gribmessage analDate
and validDate attributes.
* added julian_to_datetime and datetime_to_julian functions.
* added "fromstring" function (reverse of gribmessage.tostring).
* regenerated C source with Cython 0.14.1
* print grib api version after running tests with test.py.
* readline() returns None if EOF encountered (instead of raising an exception).
* added grib1to2 and grib2to1 utilites.

1.8.0

================================
* make pygrib.open objects behave more like regular python file objects.
Added seek,tell,read,readline methods. 'filename' attribute changed to
'name', 'closed' attribute added.
* slicing the iterator using __getitem__ does not change position of
iterator.
* force 'paramId' to be a scalar integer, not an integer array.
* arrays initialized to zero (use np.zeros instead of np.empty). Now
values returned in "paramId" are repeatable, don't contain random garbage
in undefined elements.
* now verified to work with Python 2.4.

1.7.2

================================
* select method of open instance can now use functions to
filter keys based on conditional expressions. For example,
sel_grbs = grbs.select(shortName='gh',level=lambda l: l < 500 and l > 300)
returns geoptential height levels between 500 and 300.
* fix a couple of instances where PyString_AsString was used
incorrectly, replaced with PyString_FromString. Exposed by
cython 0.13 beta, but should have no user-visible effects.
* valid_key method added, tests to see if message has a key,
it's value is not missing and can be read. Now used in
gribmessage.__repr__, so it should never fail on a bad key.
* added new tpc tropical storm wind probability example.
* add more ensemble info, probability info to gribmessage.__repr__.
* gribmessage __repr__ provides more useful level information (including
units).

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.