-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaster_variables.py
More file actions
40 lines (35 loc) · 2.05 KB
/
Copy pathmaster_variables.py
File metadata and controls
40 lines (35 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Anu Kramer - hakramer@wisc.edu
# Updated 6-9-2025
# PURPOSE: set the relevant global variables, paths, and thresholds to be used throughout each step in the code
# reference accompanying doc "Code descriptions" for more details on each layer
# cd Anu\MMI_x_FACTS_analysis\20241101_PARENT_CODE_DISTURBANCE\20250722_final_test\CODE
import arcpy
from arcpy import env
from arcpy.sa import *
import sys
import os
# variables - confirm that these are correct
fire_longevity_master = 3
MMI_min_year_master = 2002
# data paths - change these to match the paths for your computer / the specs for your data
base_folder_master = r"R:/Anu/MMI_x_FACTS_analysis/20241101_PARENT_CODE_DISTURBANCE/20250722_final_test/"
MMI_folder_master = "R:/Anu/GIS_Data/Drought/eDaRT-talk_with_Anu_before_using/20240423_fromAlex_eDaRT2.32/Mortality_Index_Sierra/"
tiles_master = ("sc303ns","sc304ns","sc305ns","sc307ns","sc308ns","sc309ns","sc401ss","sc402ss","sc403ss","sc404ss","sc405ss","sc406ss","sc408ss","sc409ss","sc410ss","sc411ss")
snap_path_master = "sc309ns"
coordinate_system_master = 'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'
geographic_transform_master = "WGS_1984_(ITRF00)_To_NAD_1983"
fires_path_master = base_folder_master+"DATA/cbi_CA_cat_rasters"
fire_perimeters_path_master = base_folder_master+"DATA/1950to2024_fire_perimeters.shp"
study_area_path_master = base_folder_master+"DATA/StudyArea_dissolve.shp"
ownership_path_master = base_folder_master+"DATA/USA Federal Lands_2024.shp"
FACTS_CommonAttribute_reduceCols_master = base_folder_master+"DATA/Actv_CommonAttribute_PL_Region05_ReducedCols_study_area_10km.shp"
# folder names - DON'T CHANGE THESE
step1_master = "1_prep_study_area"
step2_master = "2_prep_MMI"
step3_master = "3_prep_fires"
step4_master = "4_prep_ownership"
step5_master = "5_MMI_nofire"
step6_master = "6_FACTS_annual_rasters"
FINAL_1_master = "7_compile_annual_disturbance"
FINAL_2_master = "8_compile_annual_single_rasters"
FINAL_3_master = "9_final_disturbance_rasters"