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.3.tar.gz (18.8 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.3-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for adef_tools-0.2.3.tar.gz
Algorithm Hash digest
SHA256 92921f988e46bb577eb9975012e1498c15d32a26879037bcc5d4cda350c653fc
MD5 9558668a9be02064579670fb4b11865f
BLAKE2b-256 769f2a6b3fef0324efd2adbbc9f1d34b024c2c0335cf87e9efc7b9bf9047a2d7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for adef_tools-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 83f436be00775557d1e54c6007ded56fe7c7ce736d113615fb25fc31f8172f81
MD5 119e4db6fdb34946a1d64baad7175766
BLAKE2b-256 31fbad5a1667e16d0d6124ef97b85fd8e49bde157ccbbb283d13eca100f0974d

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