You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These instructions are designed for the Above Science Cloud (ASC) environment, but you will need to install the required packages and conda env beforhand, regardless!
Workflow for extracting stats for all lakes observed by UAVSAR:
Run classification in Matlab and analysis/reclass_rasters.py
analysis/upscaleFromLandcover.ipynb
analysis/Raster2PercentageLakePoly.py (Polygonizes landcover map to lake polygons, with attributes for EM%, whether or not it is a border lake, and whether it was observed by AirSWOT CIR camera.)
Workflow for extracting stats for dozen or so visited lakes:
Run classification in Matlab and analysis/reclass_rasters.py
analysis/Raster2PercentagePoly.py (Convert a land cover raster to a shapefile, with attributes for fractional class coverage)
analysis/calcVegAreaFromPts.py (An automatic way of calculating littoral fraction from a shapefile of water bodies and a list of points)
analysis/Average_em.ipynb (Averages em_fraction for each site along all available dates)
Note: If running over maximum ROI, use the ROI file: 'ROI-analysis_albers.shp'. If running me under ROI common to all acquisition dates, use ROI file: 'ROI-analysis_albers-sub.shp'. When toggling between these two ROIs, be sure to to update vars 'file_basenames' and 3 others with tag #sub-roi.
Workflow for Polarimetric SAR decomposition using PolSAR Pro and Random Forests classification in Matlab
Run polsar pro workflow in parallel using the following command:
bash polsar_pro/parallel_cat_run.sh polsar_pro/psp_workflow_function.sh [path/to/textfile/with/input/IDs] [number of cores]
Number of cores: 2 recommended to conserve memory on ASC, since each function call will need ~40 GB of mem max dand cause un-noticed errors if memory limit is exceeded
If using slurm to run a batch job, substitute slurm for bash in the above command.