Skip to content

Releases: CNES/lenapy

Major release for JOSS

03 Dec 11:12

Choose a tag to compare

Performance improvement for climato functions
Typo correction in documentation, versions and README
Publication describing lenapy functionalities and applications to Journal of Open Source Software (JOSS)

Minor release

25 Aug 14:18

Choose a tag to compare

Climao bug correction

Minor release

01 Aug 10:38

Choose a tag to compare

Correction o a bug in the climato method : Nmin not properly taken into account

First official release

15 Jul 09:15

Choose a tag to compare

Lenapy is a python library based on xarray with several modules:

  • lenapy_ocean: encapsulation of the GSW library containing the main ocean thermodynamic calculation routines (TEOS10)
  • lenapy_geo: current operations on gridded data (longitude/latitude/depth)
  • lenapy_time: common operations on time series (filtering, climatology, regressions, etc.)
  • lenapy_harmo: operations related to spherical harmonics decomposition and their projections on latitude/longitude grids

This library is based on the principle of class extension, i.e. functions can be applied directly to Datasets or DataArrays, by adding the extension of the module concerned and the name of the method. Ex: ds.lntime.filter(...), ds.lngeo.mean(...), de.lnocean.gohc, etc.

Reading interfaces are implemented, enabling netcdf files to be opened with a compatible formalism from the lenapy library.

Scientific datasets in Earth observation and geophysics are often complex to process due to their multidimensional structure, diversity of formats, and the physical corrections required for proper interpretation.
While libraries like xarray and netCDF4 offer powerful tools to handle n-dimensional arrays, they do not natively support specific operations such as climatological decomposition, harmonic analysis, geodetic corrections, or thermodynamics computations.

Lenapy is designed to serve Earth scientists, oceanographers, geodesists, hydrologists, and climate researchers who work with global or regional observational datasets and require specific processing without reinventing the wheel.
It combines clarity, scientific rigor, and compatibility with the broader PyData ecosystem.

Insertion of lenapy Harmo

17 Dec 09:40

Choose a tag to compare

The lenapy_harmo module provides functionalities for spherical harmonics dataset (clm/slm) and
projections on latitude/longitude grids.

This module includes two classes:

  • HarmoSet: Provides methods for handling spherical harmonics decompositions, converting them to grid representations
    and performing operations such as changing reference frames and tide systems.
  • HarmoArray: Converts grid representation of a spherical harmonics dataset back to spherical harmonics.

The module is designed to work seamlessly with xarray datasets, enabling efficient manipulation and visualization.