Commit 6c777569 authored by luroth's avatar luroth
Browse files

Lo1 2018 processing done

parent b6072551
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
if __name__ == "__main__":
base_path_campaign = Path(r'P:\Evaluation\UAV\_Processed_\ETHZ_eschikon_FPWW022_lot1')
GSD = 0.001
plant_count_date = '20180402'
# Clean old files
patterns = ["*_plants.csv", "*_CC_nadir.csv", "*_CC_LC.csv", "*_LA.csv", "*_tillers.csv", "*_tiller_rates.csv"]
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
path_campaign = base_path_campaign / campaign_date / '28m_M600P'
CanopyAnalysis.clean_trait_folder(path_campaign, patterns)
# Plant count estimate
path_plant_count_campaign = base_path_campaign / plant_count_date / '28m_M600P'
CanopyAnalysis.process_plant_count(path_plant_count_campaign, plant_count_date, GSD)
# CC, LA and tiller estimates
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
path_campaign = base_path_campaign / campaign_date / '28m_M600P'
CanopyAnalysis.process_tiller_count(path_campaign, campaign_date, GSD, path_plant_count_campaign)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment