A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of EPyGrAM

EPyGrAM - 2.0.4

What's Changed

Full Changelog: https://github.com/UMR-CNRM/EPyGrAM/compare/2.0.3...2.0.4

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 19 days ago

EPyGrAM - 2.0.3

What's Changed

  • Warning: cartopy and matplotlib dependencies are now optional : use pip install epygram[graphics] or epygram[all] to take the dependency into account. Makes a venv that doesn't need graphics (e.g. for Davai) lighter
  • remove footprint from make_vector mecanism, and replace numpy.bool by bool by @FlorianSuzat in https://github.com/UMR-CNRM/EPyGrAM/pull/49
  • Fix #52 (wind rotation error) by @SebastienRietteMTO in https://github.com/UMR-CNRM/EPyGrAM/pull/53
  • fix Southern Stereopolar projection reading from GRIB1
  • Miscellaneous fixes

Full Changelog: https://github.com/UMR-CNRM/EPyGrAM/compare/2.0.1...2.0.3

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 3 months ago

EPyGrAM - 2.0.1

Major release (breaks some compatibility, especially command-line tools) which main evolution is that epygram is now fully installable by pip, including the support for FA/LFI/LFA formats and spectral transforms. Many thanks to Walid Chikhi for the work on this topic.

Contents:

  • spectral transforms: switch to ectrans4py == same library but integrated into ectrans (may not be in ectrans main branch yet). ectrans4py is now on PyPI.
  • FA/LFI/LFA: switch to standalone package falfilfa4py from ACCORD-NWP/FALFILFA standalone project. falfilfa4py is now on PyPI.
  • Move command-line applicative tools to sub-module cli, properly installed by pip.
    WARNING: these epy_*.py tools have lost the .py extension and some have been slightly renamed.
    A new wrapping command epygram <sub-command> is available, cf. README.md or documentation.
  • Miscellaneous fixes (#41, #43)
  • Compatibility with new version of vtk for 3D plots
  • Add H2DField methods [indices|lonlat]_of_minmax_value
  • Remove Python2 compatibility
  • Compute spectra on Gauss grids and from GRIB files (#45, #47)
  • WARNING: Some internal modules have been reorganized within the package.

The README and documentation have of course been updated to take these changes into account.

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 3 months ago

EPyGrAM - 1.5.2

Contents:

  • fix h5py/netCDF (Issue #31) & simplify formats loading order, new shortcut epygram.open
  • set stack limit unlimited in init_env() (for FA/spectral transforms)
  • freeze version of eccodes until full externalisation of falfilfa4py, compiled with consistent eccodes
  • backwards compatibility of gauss_rgrid2namelists
  • Add uv2psikhi function (#32)
  • fix spectral property for vector fields

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 7 months ago

EPyGrAM - 1.5.1

Contents:

  • phasing w.r.t. Ubuntu24.04/Python3.12/numpy2.0 etc...
  • FA and spectral transforms .so libraries can be specified via env vars :
    • LD_LIBRARY_PATH (the directory they're in)
    • FALFILFA4PY_SO and IALSPTRANS4PY_SO (absolute path to .so files)
  • command line tools (e.g. epy_cartoplot.py) : default output is now png -- to activate GUI, use -o X

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 8 months ago

EPyGrAM - 1.5.0

This version contains important refactoring for the publication of EPyGrAM on PyPI and actual separation of FA/LFI/LFA and spectral transforms (though these are still part of epygram for now).

EPyGRAM is now available from:
pip3 install epygram

Note that the ctypesForFortran module has been externalised into a standalone package (https://github.com/UMR-CNRM/ctypesForFortran) and also published on PyPI.

For now, the separated underlying FA/LFI/LFA library (falfilfa4py.so) and IAL spectral transforms library (IALsptrans4py.so) still need to be compiled locally. On usual platforms in MF/ECMWF, they are available and EPyGrAM will find them automatically (note that on these HPCs, epygram is also now available as a module: module load epygram).
Further work is ongoing for publication of these libraries (pre-compiled) and their Python interfaces on PyPI as well. Stay tuned.

Many thanks to Walid Chikhi for this excellent work funded by ACCORD.

Edit: I noticed last minute that the FA/LFI/LFA support rearrangement in this version makes this functionality possible only at MF and ECMWF... To be fixed soon in the 1.5.1

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 11 months ago

EPyGrAM - 1.4.19

This is the last release (except bugfixes) in the series of versions 1.4.x

All new developments will now be carried out on version 1.5.0, which contains important refactoring and the publication of EPyGrAM on PyPI and actual separation of FA/LFI/LFA and spectral transforms. Cf. dedicated release.

Contents since 1.4.17:

  • Geometry:
    • Refactoring of geometry classes -- not footprints objects any more
    • Gauss domain making: take input in radians/sin instead of degrees
    • map factor averaged mean
  • Formats:
    • GRIB:
      • Support for 'lambert_lam' gridType
      • remove tests of geometry in GRIB1 : GRIB1 support is not tested anymore hence not supported/guaranteed !
    • netCDF:
      • add support of different field validity bases in writefield, provided that the dates match.
      • add support of slice type object as value of the only keyword argument of the readfield method.
      • change default value netCDF_default_behaviour[H1D_is_H2D_unstructured] to False
    • FA:
      • vertical geometry check compared to epsilon
      • Do not rely on sfxflddesc_mod for reading FA field any more
    • Update gribapi.def to v41
  • Prepare the split of arpifs4py into FA/LFI/LFA on one side and transforms on the other (later in ectrans)
  • Doc update
  • Miscellaneous fixes

Full Changelog: https://github.com/UMR-CNRM/EPyGrAM/compare/1.4.17...1.4.19

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary 11 months ago

EPyGrAM - 1.4.17

Contents since 1.4.16:

  • Fix deprecation issues
  • Fix resampling with Gauss grids
  • Bump gribapi.def to v.39

Full Changelog: https://github.com/UMR-CNRM/EPyGrAM/compare/1.4.16...1.4.17

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary over 1 year ago

EPyGrAM - 1.4.16

Contents since 1.4.15:

  • Miscellaneous bug fixes:
    • ij2ll
    • cartoplot with gaussian field on a projection hiding a part of the globe
    • selecting C zone of a LAM geometry
    • tests
    • epyweb/members
    • zoom with masked fields
    • epy_conv vs. independent version of taylorism
  • FA method to access raw header
  • Morphing example in gallery
  • Field method extract_contour: returns the intersection of a plan and the 2Dfield, as a list of (lon,lat) points.

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary about 2 years ago

EPyGrAM - 1.4.15

Contents since 1.4.14:

  • Doc generation reorganization (to docs/)
  • Externalise vgrid (to https://github.com/ACCORD-NWP/vgrid)
  • Bugfix for wfacilo call
  • new cartoplot argument colorbar_legend
  • Fix cartoplot contour labels colors

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary almost 3 years ago

EPyGrAM - 1.4.14

Contents since release 1.4.13:

  • Fixes:
    • Python3 / TIFFMF, epyweb
    • UTF8/ctypes, non-ASCII chars in path names
    • and many other small fixes
  • global_shift_center option added for epy_section (to shift before cutting section)
  • Truncation/subtruncation in domain_maker

Hydrosphere - Ocean and Hydrology Data Access - Python
Published by AlexandreMary about 3 years ago