Skip to content

initial dist analysis - #14

Open
conordoremus wants to merge 10 commits into
mainfrom
initial_dist_analysis
Open

initial dist analysis#14
conordoremus wants to merge 10 commits into
mainfrom
initial_dist_analysis

Conversation

@conordoremus

@conordoremus conordoremus commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Description

Created the DIST_ALERT.ipynb and dist_analysis.py module

DIST_ALERT.ipynb

  • Accesses the DIST-ANN product
  • Creates and implements functions that quantify the disturbance rate within PAs
    • All of these functions mask or threshold the pixels based on values within their respective bands of interest to identify disturbed pixels. The number of disturbed pixels are then divided by the total number of pixels in each PA to get the disturbance rate.
    • Organized based on bands within DIST-ANN
      • VEG-DIST-STATUS
        • calculate_site_disturbance_rate()
        • calculate_all_sites_disturbance_rate()
        • visualize_site_disturbance()
      • VEG-ANOM-CONF + VEG-ANOM-MAX (AC)
        • maskAC()
        • calculate_site_AC_dist_rate()
        • calculate_all_sites_AC_dist_rate()
        • visualize_AC_site_dist()
  • Performs analysis for the years 2023, 2024, and 2025
  • Accesses and visualizes Dynamic World data for 2023, 2024, and 2025
  • Final sections document claude informed functions for building DW mode mosaics
    • At this stage the section labeled claude was pasted directly from claude but in future PRs gets reorganized

dist_analysis.py

  • A module containing variables and functions used to process, analyze, and visualize Dynamic World
    • All of these functions at this state were created by claude are updated, improved upon and moved in later commits and PRs
  • Used in the later section of the notebook - "claude"
  • Functions:
    • build_dist_mask()
    • build_dw_mode_composite()
    • build_monthly_dw_composites()
    • build_dist_month_image()
    • build_per_pixel_pre_post()
    • _parse_class_hist()
    • _parse_transition_df()
    • get_lc_change_all_sites()
    • get_lc_change_all_sites_sequential()
    • export_lc_change_all_sites()
    • load_lc_change_export()
    • results_to_summary_df()
    • results_to_transitions_df()
    • plot_lc_change()
    • visualize_dw_on_map()
    • get_transition_mask()

Created, updated, or replaced Files and/or tables

  • notebooks/DIST_ALERT.ipynb:
  • src/absolute_effectiveness/dist_analysis.py:
  • hello_world.py
    • remnant from when my github was being set up - gets deleted in later PR

Notes for reviewers

This PR is from an early state of this notebook where many problems in organization and documentation still existed. The later PRs clean and correct many problems that are present here.

Stack created with GitHub Stacks CLIGive Feedback 💬

@conordoremus
conordoremus marked this pull request as ready for review September 3, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant