Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A ADEF Tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Luis Lopez
  • ADEF Tools
  • Merge requests
  • !12

feat: add ADEFINTG class and refactor functions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Luis Lopez requested to merge tif_with_phid into main Jun 04, 2025
  • Overview 0
  • Commits 8
  • Pipelines 6
  • Changes 18

Feat

  • adef_fn: add ADEFINTG class with methods for download, clip, mask, filter, and phid Implemented the ADEFINTG class in adef_fn.py, including methods for downloading alerts data, clipping rasters, masking by forest cover, filtering by confidence and date range, and adding PHID. This provides a high-level interface for common alert raster processing workflows.

Refactor

  • utils: modularize utils by moving raster and vector functions into dedicated modules

    • Moved raster-related functions from utils_adef.py to raster.py
    • Moved vector-related functions from utils_adef.py to vector.py
    • Adapted internal logic and imports to reflect the modular split
    • Reduced utils_adef.py to shared functions and WFS utilities only
  • workflows: move data files to workflows/data and remove unused notebook Data files bosque*_lzw.tif and phid_hn.tif were moved from data/ to workflows/data/ to better organize workflow-specific resources. The old notebook adef_intg.ipynb was removed as it is no longer needed.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: tif_with_phid