Skip to main content

A high level Line Integral Convolution (LIC) library, including post-processing and visualization

Project description

lick

PyPI pre-commit.ci status Ruff

Line Integral Convolution Knit : clothe a 2D field (ex: density field) with a LIC texture, given two vector fields (ex: velocity (vx, vy)).

This package builds on top of rLIC, adding post-processing and visualization functionalities.

Authors: Gaylor Wafflard-Fernandez, Clément Robert

Author-email: gaylor.wafflard@univ-grenoble-alpes.fr

Installation

Install with pip

pip install lick

To import lick:

import lick as lk

The important functions are lick_box and lick_box_plot. While lick_box interpolates the data and perform a line integral convolution, lick_box_plot directly plots the final image. Use lick_box if you want to have more control of the plots you want to do with the lic. Use lick_box_plot if you want to take advantage of the fine-tuning of the pcolormesh parameters.

Example

import numpy as np
import matplotlib.pyplot as plt
from lick import lick_box_plot

fig, ax = plt.subplots()
x = np.geomspace(0.1, 10, 128)
y = np.geomspace(0.1, 5, 128)
a, b = np.meshgrid(x, y)
v1 = np.cos(a)
v2 = np.sin(b)
field = v1 ** 2 + v2 ** 2
lick_box_plot(
    fig,
    ax,
    x,
    y,
    v1,
    v2,
    field,
    size_interpolated=256,
    xmin=1,
    xmax=9,
    ymin=1,
    ymax=4,
    niter_lic=5,
    kernel_length=64,
    cmap="inferno",
    stream_density=0.5
)
plt.show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lick-0.9.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lick-0.9.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file lick-0.9.0.tar.gz.

File metadata

  • Download URL: lick-0.9.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lick-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e06dd2f7dbcbe5c0af1af916253b90026c409564191504105c68b9e2e4edc455
MD5 05b43885e28635af89712981acc68011
BLAKE2b-256 4e1392fbc35a95dbf8bf25c1e38dbe97bba0cc2ea36dbfd1fdc72e6bc2c921c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lick-0.9.0.tar.gz:

Publisher: cd.yml on la-niche/lick

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lick-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: lick-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lick-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9df90725275619cafd8b068fcdbee8314d708b0ff8c99e1624b52a908e8d366a
MD5 c12274b4f698ff19e48f6fa989a2d346
BLAKE2b-256 60765590b7e956715ce9bf4785bc614010405f6ea07216102d0cad88978ead47

See more details on using hashes here.

Provenance

The following attestation bundles were made for lick-0.9.0-py3-none-any.whl:

Publisher: cd.yml on la-niche/lick

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page