Skip to main content

Script to work with Integrated Alert Deforestacion

Project description

Configuración y uso de adef-tools


1. Configurando el entorno de Python

En Linux/Mac (recomendado: uv)

Instala uv siguiendo la documentación del sitio:

curl -LsSf https://astral.sh/uv/install.sh | sh

Más opciones de instalación: https://docs.astral.sh/uv/getting-started/installation/

Crea y activa el entorno virtual:

uv venv
source .venv/bin/activate

Instala las dependencias principales (incluyendo ruedas especiales para GDAL y pyproj):

uv pip install --find-links https://girder.github.io/large_image_wheels gdal pyproj

En Windows (recomendado: Miniconda)

Instala Miniconda con winget:

winget install anaconda.miniconda3

Mas opciones de instalacion: https://www.anaconda.com/docs/getting-started/miniconda/install

Crea y activa el entorno:

conda create -n adef-tools python=3.12
conda activate adef-tools

Instala las dependencias principales:

conda install -c conda-forge gdal libgdal-arrow-parquet libgdal pip

2. Instalando el paquete

Con el entorno ya activado, instala la herramienta desde PyPI:

pip install adef-tools

Verifica la instalación:

adef-tools --help

3. Usando el paquete

Ejecución básica

adef-tools

Opciones predeterminadas

Si no proporcionas opciones, se usarán los siguientes valores:

  • --vector: Utilizá el límite HN por defecto.
  • --confidence: 1
  • --out-folder: ./results
  • --out-file: adef_intg.gpkg
  • --layer-name: alerts
  • --start-date y --end-date: No se aplicará filtrado por fechas.
  • --use-dask:

Ejemplo de uso personalizado

adef-tools --confidence 2 --out-folder ./custom_results --out-file custom_output.gpkg --layer-name custom_layer --start-date 2023-01-01 --end-date 2023-12-31

Créditos

Desarrollado por @lalgonzales | ICF/CIPF/UMF

Licencia

Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para más detalles.

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

adef_tools-0.6.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

adef_tools-0.6.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file adef_tools-0.6.1.tar.gz.

File metadata

  • Download URL: adef_tools-0.6.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for adef_tools-0.6.1.tar.gz
Algorithm Hash digest
SHA256 58f481cae119a88eb00593cf9d9e14973e9680bd9317f397a2da5c1005dbea01
MD5 e6fade428cafbec7d2f2f7f517983392
BLAKE2b-256 0a5338a41756d7efeba48f9d710b953630c0fd2b9045e06265995df2a08c49d4

See more details on using hashes here.

File details

Details for the file adef_tools-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: adef_tools-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for adef_tools-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31cce909165d34c66835c0b635b46b2e7142fa362ce173269f67c07ae8e4437b
MD5 117a41979a272f04cdde24959f3e33f2
BLAKE2b-256 86590ff8ad4cbaf210ee1785560bcdc7507a59e42d53c593f92d9c1d0742846d

See more details on using hashes here.

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