CLAWRIM Wiki

Computing Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


canopy:user_manual

This is an old revision of the document!


CanoPy user manual

CanoPy is the Python module for the Georgia Canopy Analysis 2009 project sponsored by the Georgia Forestry Commission (GFC). For further information about this project, please refer to the CanoPy page.

This document explains how to use the CanoPy module. For technical details, please read the technical manual.

Authors

  • Huidae Cho, Ph.D.
  • Owen Smith

How to use the CanoPy module

  1. Clone the CanoPy GitHub repository
    git clone https://github.com/HuidaeCho/canopy.git
  2. Copy canopy_config-example.py to canopy_config.py
  3. Edit canopy_config.py to recognize your layers and folder structures
  4. Start ArcMap
  5. Add Physiographic_Districts_GA.shp. Its layer name is phyregs_layer in canopy_config.py
  6. Add naip_ga_2009_1m_m4b.shp. Its layer name is naipqq_layer in canopy_config.py
  7. Open the Python window from within ArcMap
  8. Change the current directory to the canopy module folder
    import os
    os.chdir('C:/path/to/the/canopy/module')

    or

    import sys
    sys.path.append('C:/path/to/the/canopy/module')
  9. Import the canopy module
    import canopy
  10. Assign physiographic region IDs to the naipqq layer
    canopy.assign_phyregs_to_naipqq()
  11. Add physiographic region IDs to process to phyreg_ids
    phyreg_ids = [8, 7]
  12. Reproject original NAIP QQ tiles to the target projection
    canopy.reproject_input_tiles(phyreg_ids)
  13. Run trained AFE models to classify canopy and non-canopy cells
  14. Convert AFE output files to the final seamless canopy GeoTIFF file per physiographic region
    canopy.convert_afe_to_canopy_tiff(phyreg_ids)

TODOs

<do hcho>Upload sample data</do>

canopy/user_manual.1580449743.txt.gz · Last modified: 2020-01-30 10:49 pm by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki