Procedure that will process a folder containing directories of RedEdge data in an automated fashion. It joins directories that contain rededge data, generates, and applies reference tie points for the user. Note that the directories of data should all be with the same sensor and have the same height above the ground for the tie points to be valid.
Here is an example of how you can run this routine with the task UAVBatchRedEdge:
;start ENVI headlessly e = envi(/HEADLESS) ;initialize the uav_toolkit uav_toolkit ;specify our flight folder (contains data folder '000') flightdir = 'C:\data\rededge' ;create our batch task redEdgeTask = ENVITask('UAVBatchRedEdge') redEdgeTask.FLIGHTDIR = flightdir redEdgeTask.execute
Here is an example for how you can use this routine directly. Processing with the task is preferable:
;start ENVI headlessly e = envi(/HEADLESS) ;initialize the uav_toolkit uav_toolkit ;specify our flight folder (contains data folder '000') flightdir = 'C:\data\rededge' ;initialize our task alignTask = ENVITask('UAVBandAlignment') alignTask.APPLY_REFERENCE_TIEPOINTS = 1 ;generate the reference tiepoints batchRedEdge, FLIGHTDIR = flightdir, BAND_ALIGNMENT_TASK = alignTask
Here is an example of how you can use this routine and specify the percent reflectance of each band with the reflectance panels:
;start ENVI headlessly e = envi(/HEADLESS) ;initialize the uav_toolkit uav_toolkit ;specify our flight folder (contains data folder '000') flightdir = 'C:\data\rededge' ;create our batch task redEdgeTask = ENVITask('UAVBatchRedEdge') redEdgeTask.FLIGHTDIR = flightdir redEdgeTask.PANEL_REFLECTANCE = [67, 69, 68, 67, 61] redEdgeTask.execute
uavBatchRedEdge, [ BAND_ALIGNMENT_TASK = envitask ], FLIGHTDIR = string, [ PANEL_REFLECTANCE = float ]
in, optional, type=ENVITask
Custom task definition for processing the rededge data. A default task is used if none if provided. This allows for customizing any task parameters through a simple interface.
in, required, type=string
The directory that contains folders of RedEdge data. task is used if not specified.
in, optional, type=float, default=70.0
This represents the percent reflectance (0 to 100) of reflectance panel images that are provided in PANELDIR
. Specify a single value or an array of values that represents the percent reflectance of each band of the reflectance panel. The value should be between 0 and 100. If a scalar is provided, then it is assumed to be a constant value for each band. The order of this array should match the FILE_IDENTIFIERS
. If you are using Sequioa or RedEdge data, then it is from shortest to longest wavelength.
Zachary Norman - GitHub: znorman-harris
Copyright © 2019 Harris Geospatial Solutions, Inc.
Licensed under MIT. See LICENSE.txt for additional details and information.