Procedure to combine MicaSense data from multiple directories. Running this procedure will rename and copy images from the directories specified by dirs
and place them in the first directory in dirs
.The purpose of this procedure is to avoid the naming conflict that can be created by combining folders with 1000+ image groups. An image group for MicaSense data is this: IMG_000_1.tif, IMG_000_2.tif, IMG_000_3.tif, IMG_000_4.tif, IMG_000_5.tif.
See the example below for more information regarding the renaming mechanism.
If you want to reverse this procedure, see unjoin_rededge_datadir
.
Here is an example illustrating how to use this procedure:
dirs = ['C:\path\to\some\images', 'C:\path\to\other\images'] join_rededge_datadirs, dirs
In this case, all of the files in ‘C:’ will be copied into the folder ‘C:’ and renamed such that an image in ‘C:’ will go from “IMG_000_2.tif” to “IMG_001_1_2.tif” where the additional “1” comes from the directory index location in the dirs array.
join_rededge_datadirs, dirs
in, required, type=stringarr
This input in required and must be a string array. The first directory in the string array will be where renamed copies of the data in the other directories can be found.
Zachary Norman - GitHub: znorman-harris
Copyright © 2019 Harris Geospatial Solutions, Inc.
Licensed under MIT. See LICENSE.txt for additional details and information.