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.6.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.6-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adef_tools-0.2.6.tar.gz
  • Upload date:
  • Size: 19.1 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.6.tar.gz
Algorithm Hash digest
SHA256 4cdb3a7c13f33df83aaac8252938151fe4c7f0129f4f2320e00637c9ef078f47
MD5 caf6446f6ef200799f41ca0ee630fb17
BLAKE2b-256 08784fd1c013393e38bfc55dcc637245fab7178159239aabb33487d9eede97b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adef_tools-0.2.6-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.12.8

File hashes

Hashes for adef_tools-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d508cd317a3066cc104b0d9469332ebdfd2e152e922feb76c716006fba0b67f3
MD5 2b4bdcb39a728ff844aa23434e1c756f
BLAKE2b-256 b4e1004a5e31b65d60250f3e08d446d0d39005387ede289711792fb4652f03ea

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