{"library":"pylerc","title":"pylerc","description":"Limited Error Raster Compression (LERC) library with Python bindings. Version 4.1 supports compression/decompression of rasters with a user-specified max error. Release cadence: approximately yearly, aligned with ArcGIS releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pylerc"],"cli":null},"imports":["from pylerc import Lerc"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import numpy as np\nfrom pylerc import Lerc\n\n# Create a sample 2D float array (height, width)\ndata = np.array([[1.0, 2.0], [3.0, 4.0]], dtype=np.float32)\n\n# Encode with max error 0.1\nencoder = Lerc()\nencoded = encoder.encode(data, maxzerror=0.1)\nprint(f\"Encoded size: {len(encoded)} bytes\")\n\n# Decode back\ndecoded = encoder.decode(encoded)\nprint(\"Decoded array:\", decoded)","lang":"python","description":"Encode and decode a 2D float array with LERC compression.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}