Skip to content

finalized dist archived dw - #16

Draft
conordoremus wants to merge 12 commits into
continued_dist_new_dwfrom
finalized_dist_archived_dw
Draft

finalized dist archived dw#16
conordoremus wants to merge 12 commits into
continued_dist_new_dwfrom
finalized_dist_archived_dw

Conversation

@conordoremus

@conordoremus conordoremus commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Description

Archived all work relating to Dynamic World in the notebooks/archive/dynamic_world folder and updated the branch to reflect the status of main.

All analysis and code written for Dynamic World (prefix dw_) was moved into the archive under notebooks/archive/dynamic_world. This code is flawed and the notebook contains errors, like broken data pipelines and unfinished analysis, that were not resolved at this point but are explicitly mentioned in the dist_dw_psm.ipynb. Leaving them in the archive means they will not be lost and can be returned to if Dynamic World or a similar data source is used in the future.

Created, updated, or replaced Files and/or tables

  • DIST_ALERT.ipynb: removed all dynamic world and propensity score matching - now only includes dist related work
  • notebooks/archive/dynamic_world: an archive folder containing all Dynamic World related work and the PSM attempts
    • dist_dw_psm.ipynb: a notebook that walks the user through the Dynamic World functions and attempts at integration into PSM
    • dw_analysis: moved to archive
    • dw_builders: moved to archive
    • dw_results: moved to archive
    • dw_variables: created to move variables to the archive
    • dw_visualization: moved to archive
  • Many other files are listed as changed but that stems from a merge performed attempting to align the branch with the current state of main.

Notes for reviewers

The main notebook DIST_ALERT.ipynb as it is in this PR should be production ready, so any feedback is most important and crucial at this point.

Stack created with GitHub Stacks CLIGive Feedback 💬

alanalutz and others added 12 commits April 2, 2026 13:49
* set up exponential kernel

* adjust kernel parameters

* convert test code to functions in HabitatConditionAnalyzer class

* adjust parameters to prevent computation timeouts
* added dir and code for creating test/control grids as an input for future propensity score steps

* added geopandas to toml

* set up psm testing notebook

* added archive directory locally, including it in the gitignore

* added geopandas

* added numpy

* updated to output parquet, gave option to save intermediate files

* added data dir for repo-based files

* added variables related to PSM grid creation

* add pyarrow to toml

---------

Co-authored-by: alanalutz <81712531+alanalutz@users.noreply.github.com>
* initialize PSM testing

* match treatment and control cells

* test global grid creation idea

* match cells using global propensity model

* Update src/psm/ps_grid_creation.py

Co-authored-by: Christian Thomas <christian@skytruth.org>

---------

Co-authored-by: Christian Thomas <christian@skytruth.org>
* sampling strategy for interior cells

* code to sample exterior cells

* convert exterior cell sampling to iterative .py file

* convert exterior cell sampling to iterative .py file

* run ps model using new control cells
* initialize relative effectiveness code

* standardize CRS to 6933 for absolute effectiveness

* standardize CRS and variables for psm scripts

* fix reprojection error in control cell sampling

* rename and organize files

* fix relative effectiveness code

* combine 2 relative effectiveness scripts into 1

* fix CRS in ps_model.ipynb

* calculate relative effectiveness
* add covariates

* rename file

* enforce min distance between sample points

* apply land mask

* stratify samples by biome

* export sample points to asset

* add comment for biome labels

---------

Co-authored-by: Alana Lutz <alana@skytruth.org>
* scale PSM globally

* save model

* update gitignore

* stop tracking psm_tile_state

* Update src/utils/variables.py

Co-authored-by: Will Lytle <wlytle89@gmail.com>

---------

Co-authored-by: Alana Lutz <alana@skytruth.org>
Co-authored-by: Will Lytle <wlytle89@gmail.com>
* archive notebooks

* match cells

* add newline to end of script

---------

Co-authored-by: Alana Lutz <alana@skytruth.org>
… a preference for changes incoming from main.
…rld which now includes a documentation notebook and all related modules and .py files.
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.

3 participants