Commit 46c2daf9 authored by luroth's avatar luroth
Browse files

cleanup

parent 73afd10f
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
if __name__ == "__main__":
base_path_campaign = Path(r'P:\Evaluation\UAV\_Processed_\DSP_genevey_DSWW001')
GSD = 0.001
# CC, LA
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_NadirCC_LCCC_LA_AI(path_campaign, campaign_date, GSD)
\ No newline at end of file
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20180322", "20180325", "20180402", "20180404", "20180406", "20180411", "20180417", "20180419",
"20180420", "20180427"]
if __name__ == "__main__":
base_path_campaign = path_p / 'Evaluation/UAV/_Processed_/DSP_genevey_DSWW001'
GSD = 0.001
paths_campaigns = []
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
if int(campaign_date) <= 20190411 and int(campaign_date) > 20190101:
campaign_date = date_folder.name
print("Adding", campaign_date)
paths_campaigns.append(date_folder / "28m_M600P")
CanopyAnalysis.process_begin_stem_elongation(paths_campaigns)
\ No newline at end of file
......@@ -20,8 +20,4 @@ if __name__ == "__main__":
path_campaign = base_path_campaign / campaign_date / '28m_M600P'
# Clean old files
patterns = ["*_CC_nadir.csv", "*_CC_LC.csv", "*_LA.csv", "*_AI.csv"]
CanopyAnalysis.clean_trait_folder(path_campaign, patterns)
CanopyAnalysis.process_NadirCC_LCCC_LA_AI(path_campaign, campaign_date, GSD)
\ No newline at end of file
......@@ -20,7 +20,9 @@ if __name__ == "__main__":
path_plant_count_campaign_5 = base_path_campaign / plant_count_date_5 / '28m_M600P'
CanopyAnalysis.process_plant_count(path_plant_count_campaign_5,
path_plant_count_campaign_10,
path_plant_count_campaign_15,
CanopyAnalysis.process_plant_count(path_plant_count_campaign_5, 5,
GSD)
CanopyAnalysis.process_plant_count(path_plant_count_campaign_10, 10,
GSD)
CanopyAnalysis.process_plant_count(path_plant_count_campaign_15, 15,
GSD)
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