Pygrib

Latest version: v2.1.6

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

Scan your dependencies

Page 4 of 7

1.9.5

================================
* avoid crashing when julianDay is miscoded (by just not setting analDate,
validDate keys).
* update g2clib source to version 1.4.0.
* fix compilation issue when jpeg/openjpeg or png not needed (issue 59).
* add __dealloc__ method that closes file handles when no more
references exist to the object.
* fix radius of the earth definition of WGS84 ellipsoid, use 'radius' key
to set earth radius if available (issue 58).
* change behaviour of select method (for index and open objects)
so that an error is raised if there are no matches.
This avoids a segfault that happens if the select method is
called for an index created from an empty file.

1.9.4

================================
* Added 'write' method to index, so grib index can be saved.
Saved grid index can be re-loaded using pygrib.index(filename)
(if no keys are specified, then filename is assumed to represent
a saved index instead of grib file).
* added MacPorts portfile (so it can be installed via MacPorts
on macosx using a "local Portfile repository").
* assume forecastTime=0 if missing when computing analDate, verifDate keys.
* reset iterator in rewind method (fixes issue 54).

1.9.3

================================
* workaround for bug in grib_api 1.9.16 (distinctLongitudes are
wrong when longitudeOfLastGridPoint < 0).
* exposed setdates function, which can be used to update analDate and
validDate keys when forecastTime and/or julianDay keys are changes.
* added "reload" function to update all keys in gribmessage instance
to be consistent with modified keys.
* update test.py so tests pass with grib_api 1.9.16.
* update NCEP grib lib (g2clib) to version 1.2.3.
* ncepgrib2.Grib2Encode.addfield now accepts masked arrays
(the bitmap is automatically created from the mask). bitmapflag and
bitmap keywords removed. scan order is now automatically taken care of.

1.9.2

================================
* python 3 fix for ncepgrib2.
* change behavior of open.select, so that it always searches
from beginning of file (not from where iterator is currently
positioned).
* fix calculation of longitudes for gridType='regular_ll', when
longitudeOfLastGridPoint < longitudeOfFirstGridPoint. For
example, for ECMWF grids sometimes longitudeOfFirstGridPoint = 0
and longitudeOfLastGridPoint = -0.5. In such cases,
longitudeOfLastGridPoint should be treated as 359.5 (issue 39)

1.9.1

================================
* validDate now correctly defined if forecast time units
is minutes or days, not just hours. If forecast time is
a range, validDate corresponds to the end of the range.
fcstimeunits gribmessage instance variable added.
* fix bug for reg lat/lon and gaussian grids introduced in 1.9.0.
* add type of forecast interval (max,accum,avg) to gribmessage.__repr__
* add forecast time units in gribmessage.__repr__
* fix bug in ncepgrib2 (issue 38)

1.9.0

================================
* use numpy.ma.isMA instead of hasattr(arr,'mask').
* include ncep grib2 lib and python interface (ncepgrib2 module). This
is used by pygrib to decode grib messages with packingType='grid_complex'
and 'grid_complex_spatial_differencing' since grib_api does not decode
these messages correctly. ncepgrib2.Grib2Encode also provides a way to
create grib2 messages from scratch.
* grb.__repr__ returns parameterName and parameterUnits, if name and units
keys don't exist (issue 36).
* regenerate with Cython 0.15.1, fix a couple of latent bugs found by new Cython
compiler.

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.