CLAWRIM Wiki

Computing Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


canopy:user_manual

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
canopy:user_manual [2020-01-30 09:15 pm] hchocanopy:user_manual [2020-04-19 08:46 pm] (current) hcho
Line 1: Line 1:
 ====== CanoPy user manual ====== ====== 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.+[[CanoPy:]] is the Python module for [[:GFC canopy assessment|the Georgia Canopy Analysis 2009 project]] sponsored by [[http://www.gfc.state.ga.us/|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]]. Also refer to the [[tutorial]].
  
 ===== Authors ===== ===== Authors =====
  
-  * Huidae Cho, Ph.D. +  * [[:Huidae Cho]], Ph.D. 
-  * Owen Smith+  * [[:Owen Smith]] 
 + 
 +===== Requirements ===== 
 + 
 +  * ArcGIS Desktop 10.x 
 +  * ArcPy 
 +  * Python 2 standard module: os 
 +  * Feature Analyst(tm) by the Textron Systems 
 +  * Automated Feature Extraction (AFE) models trained using Feature Analyst 
 + 
 +We are currently planning on developing a fully open source solution without using ArcGIS and Feature Analyst.
  
 ===== How to use the CanoPy module ===== ===== How to use the CanoPy module =====
Line 19: Line 31:
   - Add naip_ga_2009_1m_m4b.shp. Its layer name is ''naipqq_layer'' in ''canopy_config.py''   - Add naip_ga_2009_1m_m4b.shp. Its layer name is ''naipqq_layer'' in ''canopy_config.py''
   - Open the Python window from within ArcMap   - Open the Python window from within ArcMap
-  - Change the current directory to the canopy module folder<code python> +  - Import the canopy module<code python>
-import os +
-os.chdir('C:/path/to/the/canopy/module') +
-</code> or <code python>+
 import sys import sys
 sys.path.append('C:/path/to/the/canopy/module') sys.path.append('C:/path/to/the/canopy/module')
-</code> 
-  - Import the canopy module<code python> 
 import canopy import canopy
 </code> </code>
Line 36: Line 43:
 </code> </code>
   - Reproject original NAIP QQ tiles to the target projection<code python>   - Reproject original NAIP QQ tiles to the target projection<code python>
-canopy.reproject_input_tiles(phyreg_ids)+canopy.reproject_naip_tiles(phyreg_ids)
 </code> </code>
   - Run trained AFE models to classify canopy and non-canopy cells   - Run trained AFE models to classify canopy and non-canopy cells
Line 42: Line 49:
 canopy.convert_afe_to_canopy_tiff(phyreg_ids) canopy.convert_afe_to_canopy_tiff(phyreg_ids)
 </code> </code>
- 
-===== TODOs ===== 
- 
-<do hcho>Upload sample data</do> 
  
 {{tag>software}} {{tag>software}}
canopy/user_manual.1580444115.txt.gz · Last modified: 2020-01-30 09:15 pm by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki