Documentation can be found here
To use Conda packages like lenapy
, you first need to install Miniconda or Anaconda. Miniconda is a lightweight option, while Anaconda includes many preinstalled data science packages.
To install Miniconda (recommended for minimal setup):
- Go to the Miniconda download page.
- Download the installer for your operating system (Windows, macOS, or Linux).
- Run the installer and follow the prompts. Make sure to:
- Add Conda to your system’s PATH (if asked).
- Allow the installer to initialize Conda automatically.
After installation, open a terminal (or Anaconda Prompt on Windows) and verify that Conda is installed by running:
conda --version
Once Conda is installed, you can install lenapy by following these steps:
conda create -n lenapy_env python=3.11
conda activate lenapy_env
conda install -c conda-forge lenapy
This installs lenapy and its dependencies from the conda-forge channel.
In your python code, simply import the library with ::
import lenapy
You can now use all the functionnalities of lenapy by adding the right suffixe after your Dataset or DataArray ::
import xarray as xr
import lenapy
ds = lenapy.utils.geo.rename_data(xr.tutorial.open_dataset('air_temperature'))
ds.air.lngeo.mean(['latitude','longitude'],weights=['latitude']).lntime.climato().plot()