finalized dist archived dw - #16
Draft
conordoremus wants to merge 12 commits into
Draft
Conversation
* 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.
…le dw_variables.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Archived all work relating to Dynamic World in the
notebooks/archive/dynamic_worldfolder and updated the branch to reflect the status ofmain.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 worknotebooks/archive/dynamic_world: an archive folder containing all Dynamic World related work and the PSM attemptsdist_dw_psm.ipynb: a notebook that walks the user through the Dynamic World functions and attempts at integration into PSMdw_analysis: moved to archivedw_builders: moved to archivedw_results: moved to archivedw_variables: created to move variables to the archivedw_visualization: moved to archiveNotes for reviewers
The main notebook
DIST_ALERT.ipynbas 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 CLI • Give Feedback 💬