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.2.4.tar.gz (19.1 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.2.4-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for adef_tools-0.2.4.tar.gz
Algorithm Hash digest
SHA256 176d3fb8dc9c3c647035fc6043dfc68d2bed53b6f28988f0ac6b7f6d84e797bf
MD5 325236e7aaa448b382ce29050ac591e6
BLAKE2b-256 c37ea4d89ce70b3b5513035bb620ccde87f9a30466d2534a18b4fb0250b4b776

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for adef_tools-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 513bf036f0363bdc5bc367c9bf798d14afd6adfa137b2370d3c5aebaff9a9b54
MD5 a130fc10f83f79d4f272b8e1853043e5
BLAKE2b-256 3a08cfbc9f80d4b41d703134cc2f34c7f55c4dc2d56969e863bf819bb6de038e

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