Giter VIP home page Giter VIP logo

random-wetlands's Introduction

DOI

Instructions for using these scripts

ASC

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!

ASC

Workflow for extracting stats for all lakes observed by UAVSAR:

  1. Run classification in Matlab and analysis/reclass_rasters.py
  2. analysis/upscaleFromLandcover.ipynb
  3. 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:

  1. Run classification in Matlab and analysis/reclass_rasters.py
  2. analysis/Raster2PercentagePoly.py (Convert a land cover raster to a shapefile, with attributes for fractional class coverage)
  3. analysis/calcVegAreaFromPts.py (An automatic way of calculating littoral fraction from a shapefile of water bodies and a list of points)
  4. 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 sensitivity figure:

Be sure to update file paths in python_env.py and filepath vars in Raster2PercentageLakePoly.py before running

Workflow for further analysis and plots:

  1. lake-histograms-multi-temporal.ipynb
  2. lake-bar-chart-time-series.ipynb
  3. lake-histogram-by-area-etc.ipynb

Workflow for Polarimetric SAR decomposition using PolSAR Pro and Random Forests classification in Matlab

  1. 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.

  1. In matlab: trainingImageImport.m

  2. If reclassifying raster, use python: analysis/reclass_rasters.py

Workflow for Look-up Table (LUT)-based classification

  • This method was used for the Daring Lake scenes (CSD) only.
  1. Activate conda environment. On ASC, the command would be:
conda activate base
  1. Move original GRD files to default_grd folder, using the script polsar_pro/psp_mv_hgt_slope_inc_function.sh.
  2. Run python script radiocal_example_script_ek.py located in an additional forked repo.
  3. Continue with step 1. of regular workflow, above.

random-wetlands's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.