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

lot3 2018 processing done

parent effa95c5
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20180314", "20180322", "20180325", "20180329", "20180402", "20180404", "20180406", "20180411", "20180417", "20180419",
"20180420", "20180427"]
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW022_lot3"
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 campaign_date in campaign_dates:
print("Adding", campaign_date)
paths_campaigns.append(date_folder / "28m_M600P")
CanopyAnalysis.process_begin_stem_elongation(paths_campaigns)
\ No newline at end of file
......@@ -2,7 +2,7 @@ from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
path_p = Path("/home/luroth/public")
if __name__ == "__main__":
......@@ -16,10 +16,6 @@ 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)
if int(campaign_date) <= 20180420:
print("Processing", campaign_date)
......
......@@ -14,18 +14,15 @@ if __name__ == "__main__":
plant_count_date_10 = "20180404"
plant_count_date_5 = "20180411"
# 2019
#plant_count_date_15 = "20190329"
#plant_count_date_10 = "20190402"
#plant_count_date_5 = "20190409"
# Plant count estimate
path_plant_count_campaign_15 = base_path_campaign / plant_count_date_15 / '28m_M600P'
path_plant_count_campaign_10 = base_path_campaign / plant_count_date_10 / '28m_M600P'
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)
\ No newline at end of file
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
if __name__ == "__main__":
base_path_campaign = Path(r'P:\Evaluation\UAV\_Processed_\ETHZ_eschikon_FPWW022_lot3')
GSD = 0.001
plant_count_date = '20180329'
# 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