Commit ee6c171c authored by luroth's avatar luroth
Browse files

cleanup

parent 46c2daf9
......@@ -3,7 +3,7 @@ from pathlib import Path
if __name__ == "__main__":
dates_done = [
dates = [
'20190322',
'20190324',
'20190327',
......@@ -21,10 +21,7 @@ if __name__ == "__main__":
'20190226',
'20190412',
'20190415',
'20190405'
]
dates = [
'20190405',
'20181105',
'20181109',
'20181112'
......@@ -47,11 +44,10 @@ if __name__ == "__main__":
GroundAerialCoverageSegmentation.process_multiview_images_generation(path_processed, design_label, nx=nx, ny=ny,
subplots=subplots, buffer=buffer, rmdest=True)
#GroundAerialCoverageSegmentation.process_CC_AC_calc(path_processed, design_label)
GroundAerialCoverageSegmentation.process_CC_AC_calc(path_processed, design_label)
# Others
design_labels = ['FPWW024_lot2', 'FPWW025_lot2', 'FPWW026_lot2', 'FPWW027_lot2', 'FPWW028_lot2', 'FPWW029_lot2', 'FPWWE03_lot2']
design_labels = ['FPWW024_lot2']
for design_label in design_labels:
......@@ -65,3 +61,18 @@ if __name__ == "__main__":
GroundAerialCoverageSegmentation.process_multiview_images_generation(path_processed, design_label, nx=nx, ny=ny , subplots=None, buffer=buffer)
GroundAerialCoverageSegmentation.process_CC_AC_calc(path_processed, design_label)
# small plots:
design_labels = ['FPWW025_lot2', 'FPWW026_lot2', 'FPWW027_lot2', 'FPWW028_lot2', 'FPWW029_lot2', 'FPWWE03_lot2']
for design_label in design_labels:
# input GSD and buffer
GSD = 0.003 # m
buffer = round(-0.3 / GSD) # 0.3 m buffer
# output image size
GSD_output = 0.001 # m
ny, nx = (round((2 - (2 * 0.3)) / GSD_output), round((1.5 - (2 * 0.3)) / GSD_output))
GroundAerialCoverageSegmentation.process_multiview_images_generation(path_processed, design_label, nx=nx, ny=ny , subplots=None, buffer=buffer)
GroundAerialCoverageSegmentation.process_CC_AC_calc(path_processed, design_label)
......@@ -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
CanopyAnalysis.process_NadirCC_LCCC_LA_AI(path_campaign, GSD)
\ No newline at end of file
......@@ -9,11 +9,6 @@ if __name__ == "__main__":
base_path_campaign = path_p / 'Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW024_lot2'
GSD = 0.001
# 2018
#plant_count_date_15 = "20180329"
#plant_count_date_10 = "20180404"
#plant_count_date_5 = "20180411"
# 2019
plant_count_date_15 = "20190329"
plant_count_date_10 = "20190402"
......@@ -25,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)
......@@ -26,6 +26,5 @@ if __name__ == "__main__":
CanopyAnalysis.process_tiller_count(path_campaign,
campaign_date, GSD,
path_plant_count_estimation,
path_BBCH30_estimation,
paths_BBCH30_measured)
\ No newline at end of file
......@@ -3,7 +3,7 @@ from pathlib import Path
if __name__ == "__main__":
dates_done = [
dates = [
'20190228',
'20190306',
'20190313',
......@@ -25,8 +25,6 @@ if __name__ == "__main__":
'20190226'
]
dates = []
for date in dates:
......@@ -36,7 +34,6 @@ if __name__ == "__main__":
path_processed = Path(r'O:\UAV\_Processed_\ETHZ_eschikon_FPWW024_lot4') / date / '28m_M600P'
# Others
design_labels = ['FPWW024_lot4', 'FPWW025_lot4', 'FPWW026_lot4', 'FPWW027_lot4', 'FPWW028_lot4', 'FPWW029_lot4', 'FPWWE03_lot4']
design_labels = ['FPWW024_lot4']
for design_label in design_labels:
......@@ -49,3 +46,17 @@ if __name__ == "__main__":
ny, nx = (round( (5.5 - (2 * 0.3) ) / GSD_output), round( ( 1.5 - (2 * 0.3) ) / GSD_output) )
GroundAerialCoverageSegmentation.process_multiview_images_generation(path_processed, design_label, nx=nx, ny=ny , subplots=None, buffer=buffer)
# Small plots
design_labels = ['FPWW025_lot4', 'FPWW026_lot4', 'FPWW027_lot4', 'FPWW028_lot4', 'FPWW029_lot4', 'FPWWE03_lot4']
for design_label in design_labels:
# input GSD and buffer
GSD = 0.003 # m
buffer = round(-0.3 / GSD) # 0.3 m buffer
# output image size
GSD_output = 0.001 # m
ny, nx = (round((2 - (2 * 0.3)) / GSD_output), round((1.5 - (2 * 0.3)) / GSD_output))
GroundAerialCoverageSegmentation.process_multiview_images_generation(path_processed, design_label, nx=nx, ny=ny , subplots=None, buffer=buffer)
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20190319", "20190322", "20190324", "20190329", "20190402", "20190409", "20190412", "20190415", "20190418"]
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW024_lot4"
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
......@@ -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
......@@ -9,11 +9,6 @@ if __name__ == "__main__":
base_path_campaign = path_p / 'Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW024_lot4'
GSD = 0.001
# 2018
#plant_count_date_15 = "20180329"
#plant_count_date_10 = "20180404"
#plant_count_date_5 = "20180411"
# 2019
plant_count_date_15 = "20190329"
plant_count_date_10 = "20190402"
......@@ -25,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)
\ 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