FVSFromLidar

class lidar.FVSFromLidar(fuel, lidar_csv, keyword_file)[source]

Bases: object

Creates FVS tree lists (<example>.tre) and keyword files (<example>.key), runs FVS for each 64x64m (~1 acre) lidar plot and creates a tree list for CAPSIS.

Parameters:
  • fuel (object) – FVS fuels object. Specific to a single FVS variant.
  • lidar_csv (string) – path and file name of input text file (generated by the ConvertLidar class above (export_attributes_to_csv method)
  • keyword_file (string) – path and file name of the “master” FVS keyword file.

Methods:

  • run_fvs_lidar
  • create_capsis_csv
create_capsis_csv(xy_orig, fvs_csv)[source]

Creates a capsis input file from FVS subset/plot output files generated by the run_fvs_lidar method. Calculates adjusted xy coordinates for each tree (i.e. each plot’s coordinates need to be adjusted depending on its position amoungst all plots).

Parameters:
  • xy_orig (list of two floats) – xy origin of the original input lidar shapefile in UTM coordinates.
  • fvs_csv (string) – filename and path for the collated (from subsets/plots) FVS results file.

Each of the six 64x64m plots illustrated below were modeled seperately in FVS. As a consequence, they each have coordinates with a 0,0 origin in their lower left corners. This method adjusts the coordinates of plots 1-5 so their origin is now the lower left corner of plot 0 (original input lidar shapefile’s origin location).

Example:

    _____________________________
128|         |         |         |
   |    3    |    4    |    5    |
   |         |         |         |
   |_________|_________|_________|
 64|         |         |         |
   |    0    |    1    |    2    |
   |         |         |         |
   |_________|_________|_________|
   0        64        128       192
run_fvs_lidar()[source]

Creates FVS input files (.key and .tre) from lidar tree list generated in the export_attributes_to_csv method in the ConvertLidar class. Uses these files to run FVS for each lidar subset/plot.

Returns:filename and path for a collated (from subsets/plots) FVS results file. Only the filename is generated in this method. The file itself will be collated in the create_capsis_csv method.
Return type:string